Skip to content

fix: use PR-based flow in release script#8

Merged
0xNyk merged 1 commit into
mainfrom
fix/release-pr-flow
Mar 2, 2026
Merged

fix: use PR-based flow in release script#8
0xNyk merged 1 commit into
mainfrom
fix/release-pr-flow

Conversation

@0xNyk

@0xNyk 0xNyk commented Mar 2, 2026

Copy link
Copy Markdown
Owner

Summary

  • Release script now uses PR-based flow instead of direct push to main
  • Works with GitHub Rulesets (GH013) that enforce PR requirements
  • commit_repo creates a release/* branch instead of committing on main
  • push_repo pushes the branch, creates a PR, squash-merges, cleans up, and syncs main
  • Fully automated — works with 0-approval rulesets (self-merge)

Test plan

  • Dry-run passes: bash scripts/release.sh --dry-run --allow-dirty --no-clawdhub --no-homebrew --no-report
  • Full release test on next version bump

The release script previously pushed directly to main, which fails
when GitHub Rulesets (GH013) enforce PR requirements. Now:

- commit_repo creates a release/* branch instead of committing on main
- push_repo pushes the branch, creates a PR via gh, squash-merges it,
  deletes the remote branch, and pulls main back to sync

This works with 0-approval rulesets (self-merge) and keeps the release
flow fully automated.
@0xNyk 0xNyk merged commit c8ddaf1 into main Mar 2, 2026
@0xNyk 0xNyk deleted the fix/release-pr-flow branch March 2, 2026 05:40
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