next-issue 6.6.86 → 6.6.87

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -329,7 +329,8 @@ Press `Ctrl-C` to stop the run step by step:
329
329
  commit reached the base branch, the next run drops those edits and any
330
330
  unfinished merge of the base branch, then lands the change with no new
331
331
  review round. A hand-over of the issue cancels that approval, so the
332
- issue resumes in review.
332
+ issue resumes in review. A revert of the landed change cancels it too,
333
+ even when the hand-over after it does not finish.
333
334
 
334
335
  Signals that arrive within 100 ms of the last counted one count as one press,
335
336
  because `npx` and `npm exec` pass on a press as a second signal.
package/dist/revert.mjs CHANGED
@@ -31,6 +31,9 @@ export function restoreChange(state) {
31
31
  state.landed = undefined;
32
32
  state.title = state.changeTitle ?? state.title;
33
33
  state.changeTitle = undefined;
34
+ if (state.phase === 'approved') {
35
+ state.phase = 'review';
36
+ }
34
37
  }
35
38
  export async function revert(job) {
36
39
  const { context, issue, log, state, branch, worktree } = job;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-issue",
3
- "version": "6.6.86",
3
+ "version": "6.6.87",
4
4
  "description": "Autonomous issue harness driven by the pi SDK",
5
5
  "keywords": [
6
6
  "github",