Repository navigation
fix(release): stop merging master into develop so the version bump lands - #8398
Conversation
develop requires linear history, so the final "merge master into develop" step in bin/release.ts produced a merge commit that the push rejected. push-after-release.sh ignored the failure (no set -e), so master and the tags shipped while develop stayed on the previous version (3.3.10 after 3.3.11, 3.3.11 after 3.3.12). Drop the merge-back: develop keeps its "bump version" commit and is pushed as a fast-forward. Push all refs with --atomic under set -euo pipefail so a rejected ref fails the job instead of half-shipping. Also bump develop to 3.3.12 to match the release that just shipped. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01V4cYEvi9Y4BTPntnkV9tzh
|
ⓘ Qodo reviews are paused because the subscription is no longer active. Ask your workspace admin to reactivate the subscription to resume reviews. Manage billing |
PR Summary by QodoPrevent release pushes from leaving develop behind
AI Description
Diagram
High-Level Assessment
Files changed (6)
|
Code Review by Qodo🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)
Great, no issues found!Qodo reviewed your code and found no material issues that require reviewTip of the day💡 Did you know, you can turn on the rule miner and Qodo learns your standards from review history |
develop has required linear history, but
bin/release.tsended by merging master back into develop. The push of that merge commit was rejected ("This branch must not contain merge commits", see the 3.3.12 release run), andpush-after-release.shhad noset -e, so the job went green with master and the tags pushed but develop still on the old version. That's why develop sat at 3.3.10 after 3.3.11 and at 3.3.11 after 3.3.12, and each next release had to be bumped by hand.bin/release.ts: drop the merge-back. develop keeps its own "bump version" commit and is pushed as a fast-forward; the next release's develop→master merge picks it up as before.bin/push-after-release.sh:set -euo pipefailand a singlegit push --atomicfor master, develop and both tags, so a rejected ref fails the job and nothing is half-shipped.The release bot (etherpad-release-bot) is already a bypass actor for the develop required-checks ruleset, so the fast-forward push is allowed.
Tests:
bash -non the script; simulated the release git steps against a local bare repo (bump on develop,--no-ffmerge into master, tags, then the new push script): all four refs pushed and develop has no merge commits.🤖 Generated with Claude Code
https://claude.ai/code/session_01V4cYEvi9Y4BTPntnkV9tzh