next-issue 17.2.13 → 17.2.14
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/dist/shared/handover.mjs +4 -1
- package/package.json +1 -1
package/dist/shared/handover.mjs
CHANGED
|
@@ -8,7 +8,7 @@ import { revertFailedFix } from './revert.mjs';
|
|
|
8
8
|
import { logIssueError } from './skip.mjs';
|
|
9
9
|
import { dropState, writeState } from './state.mjs';
|
|
10
10
|
import { COMMENT_CUT, fitComment } from './text.mjs';
|
|
11
|
-
import { UnsettledBase } from './unsettled.mjs';
|
|
11
|
+
import { blocksLanding, heldOnBase, UnsettledBase } from './unsettled.mjs';
|
|
12
12
|
export async function escalateAndFinish(job, note, reason) {
|
|
13
13
|
const reverted = await revertFailedFix(job);
|
|
14
14
|
try {
|
|
@@ -68,6 +68,9 @@ export async function finishClosing(context, issue, log, state, started) {
|
|
|
68
68
|
}
|
|
69
69
|
export async function dropClosed(context, log, issue, saved) {
|
|
70
70
|
log.event('issue.drop', { title: issue.title, reason: 'closed' });
|
|
71
|
+
if (saved !== undefined && blocksLanding(saved, context.base)) {
|
|
72
|
+
log.event('land.released', { held: heldOnBase(saved, context.base), reason: 'closed' });
|
|
73
|
+
}
|
|
71
74
|
try {
|
|
72
75
|
if (openedOwnWorktree(saved)) {
|
|
73
76
|
await cleanUp(context, log, saved.branch);
|