next-issue 7.8.8 → 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 +11 -9
- package/dist/gate.mjs +4 -1
- package/dist/land.mjs +1 -0
- package/package.json +1 -1
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`,
|
|
387
|
-
on such a resume before the base is checked
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
`
|
|
393
|
-
|
|
394
|
-
|
|
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
|
-
|
|
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/land.mjs
CHANGED