next-issue 7.8.17 → 7.8.18

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
@@ -404,7 +404,8 @@ it, with checks nobody awaited (`checks error`, `push unknown`,
404
404
  `main checks timeout`, `main checks cancelled`, an error or a failed setup
405
405
  on such a resume before the base is checked, or a stop or kill while the run
406
406
  pushes a change to the base, waits for the checks of a commit it landed, or
407
- fixes the failed checks of that commit before the fix lands) is
407
+ fixes the failed checks of that commit before the fix lands or the revert of
408
+ that commit ends) is
408
409
  saved in the state file of its issue. A stopped issue resumes in the next
409
410
  run; any other waits for a person, so later runs skip it. Either way, no
410
411
  later run lands another change meanwhile: an issue that reaches the landing
package/dist/revert.mjs CHANGED
@@ -9,14 +9,18 @@ export async function revertFailedFix(job) {
9
9
  job.repairing = false;
10
10
  return revertFailedChecks(job);
11
11
  }
12
- /** Hands over a fix of failed checks; with no stop, its saved halt gives way, so the run halt alone holds back other landings. */
12
+ /** Hands over a fix of failed checks; once the revert ends with no stop, its saved halt gives way, so the run halt alone holds back other landings. */
13
13
  export async function revertFailedChecks(job) {
14
+ const reverted = await revertOrReport(job);
14
15
  const { context, state } = job;
15
- if (state.halted === true && state.pushing === undefined && !runStopped()) {
16
+ if (state.halted === true &&
17
+ state.pushing === undefined &&
18
+ state.reverting === undefined &&
19
+ !runStopped()) {
16
20
  delete state.halted;
17
21
  await writeState(context.repo, state);
18
22
  }
19
- return revertOrReport(job);
23
+ return reverted;
20
24
  }
21
25
  export async function revertOrReport(job) {
22
26
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-issue",
3
- "version": "7.8.17",
3
+ "version": "7.8.18",
4
4
  "description": "Autonomous issue harness driven by the pi SDK",
5
5
  "keywords": [
6
6
  "github",