ci(commit-validation): use git to walk commits #9291
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.