fix(release-plz): supersede release PR instead of force-pushing #395
No reviewers
Labels
No labels
adr
automated
bug
chore
dependencies
documentation
enhancement
epic
github-actions
P1-high
P2-medium
P3-low
release
research
rust
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Slipstream/eventcore!395
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/release-pr-no-force-push"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The Create/Update Release PR job fails on every run after the release PR is first created. Run #40 log:
release-plz updaterebuilds the release branch off the latestmaineach run, so updating an open release PR took agit push --force-with-lease. The repo's*branch-protection rule blocks force-push (and deletion) on every branch, so the update path always fails once more PRs merge while a release PR is open.Separately, the auto_review pre-merge PR metadata quality check rejected the bare
chore: releasetitle/body (no version, not descriptive).Fix
main.[workspace.package], title the PRchore(release): vX.Y.Z, and build a descriptive body embedding the new changelog sections.chore: releaseprefix tochore(release):.Merging this supersedes the stuck release PR #389 automatically.
It also improves PR metadata by including version information and changelog details. The changes appear safe to merge, with no major issues identified.
Walkthrough
Branch Management:
PR Metadata:
Workflow Updates:
publish.ymlandrelease-plz.ymlworkflows have been updated to recognize the new commit message format (chore(release):).Error Handling:
awk,curl, andgitcommands to ensure robustness against failures.LLM usage and cost
Estimated total USD: $0.027684 via https://api.openai.com and https://api.openai.com
New commits pushed, approval review dismissed automatically according to repository settings
The update to the release script now avoids force-pushing by creating a new branch for each release update, and improves PR metadata by deriving version information from the package manifest. The changes appear safe to merge.
Walkthrough
Δ since
bfa5408:[workspace.package]and[package]sections.LLM usage and cost
Estimated total USD: $0.012070 via https://api.openai.com and https://api.openai.com