[BRE-1815] Add PR mode to cherry-pick workflow#725
Conversation
|
Great job! No new security vulnerabilities introduced in this pull request |
|
8dd6113 to
d58327b
Compare
6c8b700 to
3cd2e0e
Compare
|
|
@claude Review this |
|
Claude finished @pixman20's task in 1m 54s —— View job Claude PR Review
SummaryNice, focused addition. The 🟡 Suggestions / Edge cases1. Cherry-pick branch collision on re-run — The branch is hardcoded as
2. Local cherry-pick branch is created before the cherry-pick step, but the conditional gating is split — Today the order is: 3. PR-mode failure path leaves no cleanup hook in non-test usage — If if ! new_pr_url=$(gh pr create ...); then
echo "::error::Failed to create PR."
git push origin --delete "$_CHERRY_PICK_BRANCH" || true
exit 1
fi4. Minor: 5. PR title interpolation is safe — verified —
6. Test ordering rationale is implicit — The comment from commit 7. Cleanup Existing 2-minute sleep is preserved. With the new cherry-pick branch also being cleaned, this is the right place. No change. 8. Cleanup ordering and idempotency look correct — The cherry-pick branch is deleted before the dest branch, so the PR closes cleanly (head removed). All 9. Wrapper action template — The pass-through for ✅ What's good
VerdictApproach is solid. The collision case (#1) and the orphan-branch case (#3) are the two items I'd want addressed before merge; the rest are minor. |




🎟️ Tracking
BRE-1815
📔 Objective
Feedback from testing of this workflow is that the workflow opening a PR into the dest branch, instead of a direct cherry-pick, would be helpful. This PR adds a PR mode to the workflow that does exactly this.