Skip to content

ci: recover a merged-but-untagged bump instead of double-bumping - #194

Merged
Larry-Osakwe merged 2 commits into
mainfrom
larry-osakwe/bump-recovery
Jul 16, 2026
Merged

ci: recover a merged-but-untagged bump instead of double-bumping#194
Larry-Osakwe merged 2 commits into
mainfrom
larry-osakwe/bump-recovery

Conversation

@Larry-Osakwe

@Larry-Osakwe Larry-Osakwe commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

What

Two fixes making the bump pipeline self-sufficient under the require-review ruleset:

1. Merge the bump PR directly as the bypass actor. The workflows app is on the ruleset bypass list, but the script armed auto-merge and waited, and auto-merge never exercises bypass: it only fires when every requirement (including the required review) is actually satisfied. Once checks are green the script now merges explicitly, which the bypass permits. Auto-merge stays armed as the fallback if a direct merge is refused (capped at 3 attempts).

2. Recover a merged-but-untagged bump instead of double-bumping. When the merge-wait times out and the bump PR merges later by hand, the version files end up ahead of the last release tag with nothing to trigger the publish, and re-running the job re-runs cz against the bumped files and opens a spurious next-version PR (#193 was this). The bump now checks for that state first and pushes the missing tag at the merged bump commit.

Together: releases merge themselves again, and if anything still strands one, a re-run recovers it instead of making it worse.

Verified against live state: the recovery check is a no-op with 0.21.0 tagged, the bump-commit lookup resolves bump: keycardai-oauth → 0.21.0 to #192's squash SHA, and checks_green unit cases pass. Twin PR: typescript-sdk#122.

🤖 Generated with Claude Code

When the merge-wait times out and the bump PR merges later, the version
files end up ahead of the last release tag with no tag to trigger the
publish. Re-running the job in that state re-runs cz against the bumped
version files and opens a spurious next-version PR. The bump now checks
for that state first and pushes the missing tag at the merged bump
commit instead.
The workflows app is on the ruleset bypass list, but auto-merge never
exercises bypass; it only fires when every requirement, including the
required review, is actually satisfied. Once the bump PR checks are
green the script now merges it explicitly, which the bypass permits.
Auto-merge stays armed as the fallback when a direct merge is refused.
@Larry-Osakwe
Larry-Osakwe merged commit 7fcffb5 into main Jul 16, 2026
5 checks passed
@Larry-Osakwe
Larry-Osakwe deleted the larry-osakwe/bump-recovery branch July 16, 2026 21:24
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.

3 participants