Skip to content

release.sh: land version bump via PR instead of pushing main#26

Merged
Ed-Barnes937 merged 1 commit into
mainfrom
fix-release-pr-flow
Jun 24, 2026
Merged

release.sh: land version bump via PR instead of pushing main#26
Ed-Barnes937 merged 1 commit into
mainfrom
fix-release-pr-flow

Conversation

@Ed-Barnes937

Copy link
Copy Markdown
Collaborator

main is protected (changes must go through a pull request), so the release script's direct git push origin main is rejected — as hit when cutting v0.5.1.

Reworks the tail of scripts/release.sh to:

  • push the version bump on a release-vX branch,
  • open a PR via gh and merge it (--merge --delete-branch),
  • fast-forward local main to the merged tip and tag that commit, then push the tag (still triggers release.yml).

Also adds a gh CLI precondition and a brief retry around the merge (PR mergeability can lag a moment after creation).

🤖 Generated with Claude Code

main is protected (changes must go through a pull request), so the direct
`git push origin main` in the release script is rejected. Instead push the
bump on a release-vX branch, open a PR with gh, merge it, then fast-forward
local main to the merged tip and tag that commit before pushing the tag.

Adds a gh-CLI precondition and a brief merge retry (PR mergeability can lag
a moment after creation).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@Ed-Barnes937 Ed-Barnes937 merged commit a4dfe36 into main Jun 24, 2026
4 checks passed
@Ed-Barnes937 Ed-Barnes937 deleted the fix-release-pr-flow branch June 24, 2026 17:59
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