Skip to content

ci(semver): compare with the merge commit's base, not the event's base.sha (#873) - #919

Merged
DrunkOnJava merged 1 commit into
mainfrom
ci/semver-gate-merge-base
Oct 23, 2026
Merged

DrunkOnJava merged 1 commit into
mainfrom
ci/semver-gate-merge-base

Conversation

@DrunkOnJava

Copy link
Copy Markdown
Owner

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] on Error as #912's own unannounced break: a false red (run 39976383794).

actions/checkout checks out the pull request's merge commit, and its first parent is main as GitHub merged the branch into it. The script now takes BASE=$(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 checks run (no API change, so it must pass), then #912 re-run after this lands.

@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) October 23, 2026 15:21
@DrunkOnJava
DrunkOnJava merged commit ae6779e into main Oct 23, 2026
28 checks passed
@DrunkOnJava
DrunkOnJava deleted the ci/semver-gate-merge-base branch October 23, 2026 15:27
Repository owner deleted a comment from chatgpt-codex-connector Bot Oct 31, 2026
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.

1 participant