next-issue 7.8.3 → 7.8.5

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
@@ -53,7 +53,7 @@ the run handles one issue. For each issue:
53
53
  `status:in-progress` or `status:in-review` label. A `status:done`,
54
54
  `status:needs-human` or `status:blocked` label always stops the claim, a
55
55
  resume too, except a `status:needs-human` issue with an answer to its
56
- hand-over, and except an issue whose finish a stop cut short and that
56
+ hand-over that the run made, and except an issue whose finish a stop cut short and that
57
57
  was not handed over (see step 7 below). An issue that GitHub lists as
58
58
  blocked by an open issue waits,
59
59
  because its blocker closes only when the change of the blocker lands.
@@ -747,7 +747,9 @@ the mark and keeps the branch and the step that the last run reached, so the
747
747
  work carries on where it stopped. After a revert, the branch holds the change
748
748
  again on top of the revert, so the change goes back to the review. An issue
749
749
  that still has the label is not claimed, unless it has an answer to the
750
- hand-over: then the run claims it and takes the label off. When the label of a
750
+ hand-over: then the run claims it and takes the label off. A label that a
751
+ person adds to a stopped issue that is not handed over holds the issue, even
752
+ when an earlier hand-over has an answer. When the label of a
751
753
  hand-over reaches GitHub but its comment does not, an answer to an earlier
752
754
  hand-over does not count: the issue waits, and the worker lists it, until a
753
755
  person takes the label off or a writer comments after that hand-over. Either
package/dist/skip.mjs CHANGED
@@ -74,6 +74,9 @@ async function hasAnswer(context, issue, saved) {
74
74
  if (!hasLabel(issue.labels, context.config.labels.needsHuman)) {
75
75
  return false;
76
76
  }
77
+ if (saved !== undefined && saved.handedOver !== true && saved.pendingHandOver === undefined) {
78
+ return false;
79
+ }
77
80
  return (await handOverReply(context, issue.number, saved?.pendingHandOver)).length > 0;
78
81
  }
79
82
  function readError(log, issue, saved, error, started) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-issue",
3
- "version": "7.8.3",
3
+ "version": "7.8.5",
4
4
  "description": "Autonomous issue harness driven by the pi SDK",
5
5
  "keywords": [
6
6
  "github",