fix(release-plz): supersede release PR instead of force-pushing #115
No reviewers
Labels
No labels
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/emc!115
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
Ported from Slipstream/eventcore (PR #395), which hit this in CI.
release-plz updaterebuilds the release branch off the latestmaineach run, so updating an open release PR takes agit push --force-with-lease. The repo's*branch-protection rule blocks force-push (and deletion) on every branch, so once a release PR sits open while later commits land onmain, the update push is rejected:emc shares the identical script, so it has the same latent failure.
Fix
[package], title the PRchore(release): vX.Y.Z, body embeds the new CHANGELOG section.The script is now byte-identical to eventcore's canonical version. emc's release-plz workflow has no commit-message guards (jobs gate on repo + release-plz idempotency), so no workflow changes are needed here.
The PR updates the release script to avoid force-pushing by creating a new release branch and superseding the existing PR. This change aligns the script with the eventcore's version and ensures compatibility with branch protection rules. The changes appear safe to merge.
Walkthrough
Cargo.tomlfile, ensuring the PR title includes the version number.LLM usage and cost
Estimated total USD: $0.021576 via https://api.openai.com and https://api.openai.com