Skip to content

ci(release): merge a release pull request only while main is unchanged - #901

Merged
kvlonge merged 1 commit into
mainfrom
ci/release-pr-current-main
Oct 1, 2026
Merged

kvlonge merged 1 commit into
mainfrom
ci/release-pr-current-main

Conversation

@kvlonge

@kvlonge kvlonge commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

Why

Twice today a release pull request was merged after a newer commit had landed on main (CHI-462). That commit's Release Please run was still queued behind the running release checks, so the released package contained the commit but its changelog did not, and Release Please then treated it as released.

Changes

  • Before enabling release pull request auto-merge, compare main's head with the commit this run processed. If main has moved, auto-merge is disabled and left to the queued run, which refreshes the pull request and re-runs the checks.
  • No change when main has not moved.

Verification

  • actionlint on the workflow.
  • Behaviour follows from the existing release-please concurrency group (cancel-in-progress: false): a newer push always has a queued run that updates the release pull request after this one finishes.

@kvlonge
kvlonge enabled auto-merge (squash) October 1, 2026 16:37
@kvlonge
kvlonge merged commit d18745f into main Oct 1, 2026
16 checks passed
@kvlonge
kvlonge deleted the ci/release-pr-current-main branch October 1, 2026 16:46
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