next-issue 6.6.57 → 6.6.58

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
@@ -157,7 +157,11 @@ the run handles one issue. For each issue:
157
157
  even when another check (such as a release workflow) ends `success`:
158
158
  the harness hands the issue to a person with the reason
159
159
  `main checks cancelled` and halts, and the issue stays open. A repository
160
- that reports no check keeps asking for `checkGraceSeconds`. A pending state
160
+ that reports no check keeps asking for `checkGraceSeconds`. When every
161
+ check passes, the harness keeps asking until `checkGraceSeconds` have gone
162
+ by since it first read the checks, since GitHub can add a check a few
163
+ seconds after the others; a check that shows up in that time counts, and
164
+ one that shows up later does not. A pending state
161
165
  waits again, up to `checkTimeoutMinutes`. A read that fails is tried three
162
166
  times. When the checks pass, the harness closes the issue and sets
163
167
  `status:done`, fetches the remote and fast-forwards the local base branch
@@ -457,7 +461,7 @@ because no pull request is opened.
457
461
  | `maxCommitFixes` | `10` | The budget for fixes of a commit that a git hook stopped, per issue |
458
462
  | `maxReviewRounds` | `5` | The budget for review rounds per issue |
459
463
  | `checkIntervalSeconds` | `15` | The time between two check states, at most `2147483` |
460
- | `checkGraceSeconds` | `60` | The time to wait for the first check to show |
464
+ | `checkGraceSeconds` | `60` | The time to wait for the first check to show, and for more checks after they all pass |
461
465
  | `checkTimeoutMinutes` | `60` | The limit for one check wait, at most `35791` |
462
466
  | `agentTimeoutMinutes` | `30` | The limit for one agent call, at most `35791` |
463
467
  | `setupTimeoutMinutes` | `15` | The limit for the setup command, at most `35791` |
@@ -46,8 +46,8 @@ export async function pollChecks(probe, options, clock = REAL_CLOCK) {
46
46
  }
47
47
  }
48
48
  function settled(state, waitedMs, graceMs) {
49
- if (state === 'none') {
50
- return waitedMs >= graceMs ? 'none' : undefined;
49
+ if (state === 'none' || state === 'pass') {
50
+ return waitedMs >= graceMs ? state : undefined;
51
51
  }
52
52
  return state === 'behind' || state === 'pending' ? undefined : state;
53
53
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-issue",
3
- "version": "6.6.57",
3
+ "version": "6.6.58",
4
4
  "description": "Autonomous issue harness driven by the pi SDK",
5
5
  "keywords": [
6
6
  "github",