next-issue 6.6.81 → 6.6.82
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 +5 -1
- package/dist/handover.mjs +6 -4
- package/dist/pending.mjs +3 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -176,7 +176,11 @@ the run handles one issue. For each issue:
|
|
|
176
176
|
times. When the checks pass, the harness marks the state file as closing,
|
|
177
177
|
sets `status:done` and closes the issue. When a run stops or dies before
|
|
178
178
|
the close, the next run sees the mark, sets `status:done` and closes the
|
|
179
|
-
issue, with no new push, revert or hand-over.
|
|
179
|
+
issue, with no new push, revert or hand-over. When a run stops or dies
|
|
180
|
+
after the close, before the state file goes away, the next run finds the
|
|
181
|
+
closed issue through its state file and removes the worktree, the local
|
|
182
|
+
branches and the state file, with no new push, revert, label, close or
|
|
183
|
+
hand-over. A label or close that fails
|
|
180
184
|
for another reason hands the issue over, and it then waits for a person
|
|
181
185
|
like any other hand-over. Then the harness fetches the remote and
|
|
182
186
|
fast-forwards the local base branch to the landed commit when that is
|
package/dist/handover.mjs
CHANGED
|
@@ -28,10 +28,12 @@ export async function escalateAndFinish(job, note, reason) {
|
|
|
28
28
|
}
|
|
29
29
|
export async function finishDone(job) {
|
|
30
30
|
const { context, issue } = job;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
if (issue.closed !== true) {
|
|
32
|
+
job.state.closing = true;
|
|
33
|
+
await writeState(context.repo, job.state);
|
|
34
|
+
await setStatus(context, issue.number, context.config.labels.done);
|
|
35
|
+
await context.ports.closeIssue(context.repo, issue.number);
|
|
36
|
+
}
|
|
35
37
|
await updateLocalBase(job);
|
|
36
38
|
return { done: true, report: await finish(job, 'done') };
|
|
37
39
|
}
|
package/dist/pending.mjs
CHANGED
|
@@ -33,6 +33,9 @@ async function savedIssue(context, number) {
|
|
|
33
33
|
if (saved === 'broken' || open) {
|
|
34
34
|
return { open, issue };
|
|
35
35
|
}
|
|
36
|
+
if (saved?.closing === true && saved.handedOver !== true) {
|
|
37
|
+
return { open, issue: { ...issue, closed: true } };
|
|
38
|
+
}
|
|
36
39
|
return { open };
|
|
37
40
|
}
|
|
38
41
|
catch (error) {
|