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

ci(commit-validation): use git to walk commits #9291

Merged
merged 1 commit into from
Dec 27, 2023
Merged

Conversation

edwintorok
Copy link
Contributor

The PR event doesn't include the actual commits, just a count and a URL to fetch it.
But we've already checked out the entire git history, so we might as well use git itself to walk the commit history.
(Using the remote commits URL would be useful only if we'd want to do a shallow clone because we have too many commits)

We can revisit this once pandoc's commit history grows large enough that this takes too long. For now it should unblock the CI.

The PR event doesn't include the actual commits, just a count and a URL
to fetch it.
But we can checkout the entire git history, we don't have so many
commits that we need to optimize this just yet.
And then we might as well use `git` itself to walk the commit history.

(Using the remote commits URL would be useful only if we'd want to do a
shallow clone because we have too many commits)

Signed-off-by: Edwin Török <[email protected]>
@jgm jgm merged commit 56df2f1 into jgm:main Dec 27, 2023
9 of 12 checks passed
@jgm
Copy link
Owner

jgm commented Dec 27, 2023

Thank you!

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.

2 participants