Skip to content

chore: use admin PR merge instead of direct push to main#29

Merged
SachaMorard merged 1 commit intomainfrom
chore/auto-merge-version-bump
Mar 24, 2026
Merged

chore: use admin PR merge instead of direct push to main#29
SachaMorard merged 1 commit intomainfrom
chore/auto-merge-version-bump

Conversation

@SachaMorard
Copy link
Member

Summary

  • Replaces the failed direct-push-to-main approach with a create-then-immediately-merge PR flow
  • Uses gh pr merge --admin which bypasses branch protection rules for org admins
  • Keeps BYPASS_TOKEN (org admin PAT) for the merge step

Why the previous approach failed

Direct push to main was rejected by the ruleset even with the admin PAT — the bypass only applies to PR merges, not direct pushes.

Test plan

  • Push a tag v0.1.X
  • Verify a PR is created and immediately merged into main
  • Verify build-release-binaries and update-homebrew-tap jobs complete normally

🤖 Generated with Claude Code

Replace direct push to main (which was blocked by ruleset) with a create-then-immediately-merge PR flow using `gh pr merge --admin`, which bypasses branch protection rules for org admins. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@SachaMorard SachaMorard requested a review from a team as a code owner March 24, 2026 14:43
@SachaMorard SachaMorard merged commit 4e103be into main Mar 24, 2026
3 checks passed
@SachaMorard SachaMorard deleted the chore/auto-merge-version-bump branch March 24, 2026 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant