next-issue 7.8.7 → 7.8.9

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
@@ -383,15 +383,17 @@ review.
383
383
 
384
384
  A halt that leaves a commit on the base, or a push or revert that may be on
385
385
  it, with checks nobody awaited (`checks error`, `push unknown`,
386
- `main checks timeout`, `main checks cancelled`, or an error or a failed setup
387
- on such a resume before the base is checked) is saved in the state file of
388
- its issue. The issue waits for a person, so later runs skip it, but no
389
- later run lands another change meanwhile: an issue that reaches the
390
- landing ends `stopped` with the reason `base unchecked`, keeps its state,
391
- branch and labels, and the run claims no more issues; the log holds a
392
- `land.blocked` event with the waiting issues. Runs take such a halted issue
393
- before the others, and a running one still resumes, so an older issue that
394
- reaches the landing first does not keep it from checking the base. Once a person answers or
386
+ `main checks timeout`, `main checks cancelled`, an error or a failed setup
387
+ on such a resume before the base is checked, or a stop or kill while the run
388
+ waits for the checks of a commit it landed) is saved in the state file of
389
+ its issue. A stopped issue resumes in the next run; any other waits for a
390
+ person, so later runs skip it. Either way, no later run lands another change
391
+ meanwhile: an issue that reaches the landing ends `stopped` with the reason
392
+ `base unchecked`, keeps its state, branch and labels, and the run claims no
393
+ more issues; the log holds a `land.blocked` event with the waiting issues.
394
+ Runs take such a halted issue before the others, and a running one still
395
+ resumes, so an older issue that reaches the landing first does not keep it
396
+ from checking the base. Once a person answers or
395
397
  takes the label off, the issue resumes, checks the base and waits for the
396
398
  checks of its commit; when those are known (the issue is done, or its
397
399
  commits are reverted or found not on the base), the issue drops the halt
package/dist/gate.mjs CHANGED
@@ -21,7 +21,10 @@ export async function checkGate(job, sha) {
21
21
  return unreadChecks(job, error);
22
22
  }
23
23
  // The checks are known now, so an earlier halt on this issue no longer holds back other landings.
24
- delete job.state.halted;
24
+ if (job.state.halted === true) {
25
+ delete job.state.halted;
26
+ await writeState(job.context.repo, job.state);
27
+ }
25
28
  if (checks === 'pass' || checks === 'none') {
26
29
  return GATE_PASSED;
27
30
  }
package/dist/git.mjs CHANGED
@@ -53,7 +53,7 @@ export function branchName(issue) {
53
53
  return String(issue);
54
54
  }
55
55
  export async function isDirty(cwd) {
56
- const status = await git(cwd, ['status', '--porcelain']);
56
+ const status = await git(cwd, ['status', '--porcelain', '--untracked-files=normal']);
57
57
  return status.length > 0;
58
58
  }
59
59
  export async function diff(cwd, base, remote) {
package/dist/land.mjs CHANGED
@@ -140,6 +140,7 @@ async function pushChange(job) {
140
140
  state.pushing = undefined;
141
141
  if (pushed) {
142
142
  state.landed = [...(state.landed ?? []), sha];
143
+ state.halted = true;
143
144
  }
144
145
  await writeState(repo, state);
145
146
  if (pushed) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-issue",
3
- "version": "7.8.7",
3
+ "version": "7.8.9",
4
4
  "description": "Autonomous issue harness driven by the pi SDK",
5
5
  "keywords": [
6
6
  "github",