Skip to content

Switch stable publish to PR-based version bump#46

Merged
JE-Chen merged 1 commit intomainfrom
dev
Apr 21, 2026
Merged

Switch stable publish to PR-based version bump#46
JE-Chen merged 1 commit intomainfrom
dev

Conversation

@JE-Chen
Copy link
Copy Markdown
Member

@JE-Chen JE-Chen commented Apr 21, 2026

Summary

  • Replace the direct-push-to-main version bump (blocked by branch protection: required signed commits + PR-only) with a PR flow
  • CI creates a release/bump-v<version> branch and pushes the bumped stable.toml + dev.toml via the GraphQL createCommitOnBranch mutation, producing a signed commit
  • Workflow then opens a PR with [skip ci] in title/body and tries gh pr merge --squash --auto --delete-branch; if auto-merge is unavailable the PR is left open for manual merge
  • The GitHub Release tag now targets the signed bump commit SHA so it survives whether or not the PR ever merges

Test plan

  • Merge this PR to main and confirm the publish job completes end-to-end
  • Verify the auto-generated bump PR is signed, has [skip ci], and either auto-merges or stays open cleanly
  • Confirm the PyPI upload and GitHub Release (tagged at the bump commit) succeed

Signed commit pushed to release/bump-v<ver> branch, PR opened against
main and auto-merged when possible. Release tag targets the bump
commit SHA so it survives branch deletion.
@codacy-production
Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

TIP This summary will be updated as you push new changes. Give us feedback

@sonarqubecloud
Copy link
Copy Markdown

@JE-Chen JE-Chen merged commit f2d1ad3 into main Apr 21, 2026
11 checks passed
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