next-issue 7.8.0 → 7.8.1
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 +1 -1
- package/dist/watch.mjs +0 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -838,7 +838,7 @@ The watch stops:
|
|
|
838
838
|
|
|
839
839
|
## Hunt for bugs
|
|
840
840
|
|
|
841
|
-
With `next-issue start --hunt`, which turns on `--watch`, the harness runs a hunter agent at the same time as the issues. Before each hunt it reads the open issues with the `labels.ready` label and counts those that are ready to claim and are not running. An issue that failed earlier in the run does not count, since the watch does not try it again. It counts a blocked issue only when each of its open blockers is in the same repository and is running or ready to claim, since those blockers can land and close; a blocker that cannot move, such as one with `labels.needsHuman`, `labels.skip` or `labels.done`, one without `labels.ready`, or one in another repository, leaves it out. It looks only at the direct blockers, and reads them one issue at a time, so it runs one `gh` call at a time. It hunts only while that count is less than `huntCap`, 1 by default. Otherwise it waits and checks again, with the same back-off as the watch: 1, 2, 3, 5, 10, then 10 minutes,
|
|
841
|
+
With `next-issue start --hunt`, which turns on `--watch`, the harness runs a hunter agent at the same time as the issues. Before each hunt it reads the open issues with the `labels.ready` label and counts those that are ready to claim and are not running. An issue that failed earlier in the run does not count, since the watch does not try it again. It counts a blocked issue only when each of its open blockers is in the same repository and is running or ready to claim, since those blockers can land and close; a blocker that cannot move, such as one with `labels.needsHuman`, `labels.skip` or `labels.done`, one without `labels.ready`, or one in another repository, leaves it out. It looks only at the direct blockers, and reads them one issue at a time, so it runs one `gh` call at a time. It hunts only while that count is less than `huntCap`, 1 by default. Otherwise it waits and checks again, with the same back-off as the watch: 1, 2, 3, 5, 10, then 10 minutes. After a hunt that files an issue, it waits 1 minute before it checks the count again, even when the count is still less than `huntCap`, for example when `labels.hunt` shares a name with `labels.skip` so the filed issues never count. Each wait writes a `hunt.wait` event with the `minutes` to the run log. A hunt that files nothing backs off like a failed one. When the harness claims an issue, the hunter wakes: it ends its wait at once, or skips the wait after a hunt that is going, and checks the count again. A wake keeps the back-off where it was. The hunter:
|
|
842
842
|
|
|
843
843
|
- works in its own worktree at `.worktrees/hunt`, on a detached `HEAD` at the remote base branch, which the harness fetches and checks out before each hunt. A branch that the hunter checks out keeps its commits, and an issue that resumes never uses the hunt worktree as its own;
|
|
844
844
|
- follows `next-issue.hunt.md` in the repository root, or a short built-in prompt when the file is missing;
|
package/dist/watch.mjs
CHANGED
|
@@ -74,7 +74,6 @@ async function huntIssues(hunter, hunting, running, failed, claims, refreshes, s
|
|
|
74
74
|
if (waiting !== undefined && waiting < hunter.cap && hunting.on()) {
|
|
75
75
|
if (await hunter.hunt(hunter.cap - waiting)) {
|
|
76
76
|
step = 0;
|
|
77
|
-
continue;
|
|
78
77
|
}
|
|
79
78
|
}
|
|
80
79
|
if (claims.take() || stopped() || !hunting.on()) {
|