Commit 17d13cb
fix(revert): never close an Onto-branch (mode=stacked) PR — not harness-created
Codex review (#159, P1): an `Onto branch` (#54) contribution records mode="stacked" against a PRE-EXISTING PR the harness only appended a commit to. The OPEN path called _withdraw -> `gh pr close --delete-branch`, which would close AND delete that collaborator's whole PR branch. Gate withdraw to harness-created PRs (new-pr / stacked-pr); for mode=stacked, refuse and tell the human to revert the specific commit by hand. The merged path is unaffected (it opens a NEW revert PR). Adds a regression test.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent ffb95aa commit 17d13cb
2 files changed
Lines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
51 | 60 | | |
52 | 61 | | |
53 | 62 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
114 | 129 | | |
115 | 130 | | |
116 | 131 | | |
0 commit comments