Repository navigation
ci(semver): compare with the merge commit's base, not the event's base.sha (#873) - #919
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 semver gate compared #912 with
github.event.pull_request.base.sha, 7c4e87f, while main was at 6af75c9. #912 had merged main since that sha, so cargo-semver-checks reported #898's#[non_exhaustive]onErroras #912's own unannounced break: a false red (run 39976383794).actions/checkoutchecks out the pull request's merge commit, and its first parent is main as GitHub merged the branch into it. The script now takesBASE=$(git rev-parse HEAD^1), and the workflow no longer passes the event's sha. Under the strict up-to-date rule that parent is main's tip, so the gate judges exactly the change the merge would make.Verification: this PR's own
semver checksrun (no API change, so it must pass), then #912 re-run after this lands.