Skip to content

Cut Release: advance main via admin-merged PR - #35

Merged
adborbas merged 1 commit into
mainfrom
chore/cut-release-advance-main-via-pr
Jul 18, 2026
Merged

Cut Release: advance main via admin-merged PR#35
adborbas merged 1 commit into
mainfrom
chore/cut-release-advance-main-via-pr

Conversation

@adborbas

Copy link
Copy Markdown
Owner

Changes

  • fastlane/Fastfile (cut_release): instead of direct-pushing the main version bump, put it on a chore/bump-main-<next> branch, open a PR, and admin-merge it (gh pr merge --squash --admin --delete-branch).
  • .github/workflows/cut-release.yml: add pull-requests: write, and run the Cut step with GH_TOKEN: ${{ secrets.RELEASE_PAT }}.
  • RELEASING.md: document the RELEASE_PAT secret and update the manual cut steps to advance main via a PR.

Why

main is a protected branch (changes must go through a PR; a review + the "Unit Tests" check are required). The cut_release lane's direct push to main is rejected by that protection — the reason the last cut half-failed and needed a manual bump PR (#34). The default GITHUB_TOKEN is write-only and cannot bypass protection, so an admin PAT is required to merge the bump PR. Admin-merge is safe here because the change is a single-line MARKETING_VERSION bump and enforce_admins is off.

Notes

  • Action required before the next cut: add a RELEASE_PAT repo secret — a PAT owned by a repo admin with contents: write + pull requests: write (or a classic repo-scope token). Without it, the Cut Release workflow's admin-merge step will fail.
  • Opening the bump PR with the PAT means CI ("Unit Tests") will trigger on it, but the admin-merge doesn't wait for it.

main is protected — the cut_release lane's direct push to main was rejected
(PR + review + Unit Tests required). Advance main on a short-lived branch,
open a PR, and admin-merge it instead. Requires a RELEASE_PAT secret (admin
PAT) since the default GITHUB_TOKEN cannot bypass protection. Documents the
secret and the manual PR flow in RELEASING.md.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@adborbas
adborbas merged commit 7d49dbc into main Jul 18, 2026
1 check passed
@adborbas
adborbas deleted the chore/cut-release-advance-main-via-pr branch July 18, 2026 08:51
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