Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

commiter_date: fix github api request fallback #478

Merged
merged 2 commits into from
Nov 19, 2024

Conversation

crazy-max
Copy link
Member

@crazy-max crazy-max commented Nov 19, 2024

fixes #476

cc @trim21

@trim21
Copy link
Contributor

trim21 commented Nov 19, 2024

I think it's same API we are using

@crazy-max
Copy link
Member Author

I think it's same API we are using

Yes I was looking to have types handled so response schema matches.

@crazy-max crazy-max force-pushed the commit-date-request branch 2 times, most recently from dd5bc23 to 6c97e81 Compare November 19, 2024 16:17
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
@crazy-max crazy-max changed the title commiter_date: fallback to current date if committer not available commiter_date: fix github api request fallback Nov 19, 2024
@crazy-max crazy-max marked this pull request as ready for review November 19, 2024 16:23
@crazy-max
Copy link
Member Author

@trim21 I'm going to get this one in if you don't mind. I prefer to avoid raw request. LGTY?

@trim21
Copy link
Contributor

trim21 commented Nov 19, 2024

it's not raw request now, it will have typing after my PR

@crazy-max
Copy link
Member Author

it's not raw request now, it will have typing after my PR

Still this is a generic request and using the specific method provided by the Octokit REST API client for fetching a commit provides better type safety and autocompletion

@crazy-max crazy-max merged commit 8cb0002 into docker:master Nov 19, 2024
35 checks passed
@crazy-max crazy-max deleted the commit-date-request branch November 19, 2024 16:54
@trim21
Copy link
Contributor

trim21 commented Nov 19, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot read properties of null (reading 'date')
2 participants