next-issue 6.6.95 → 6.6.96
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/handover.mjs +3 -1
- package/package.json +1 -1
package/dist/handover.mjs
CHANGED
|
@@ -176,7 +176,7 @@ function handOverComment(reason) {
|
|
|
176
176
|
return fitComment(`${HAND_OVER} ${reason}`, CUT);
|
|
177
177
|
}
|
|
178
178
|
export async function claimedError(context, log, issue, state, error, started) {
|
|
179
|
-
const
|
|
179
|
+
const reason = message(error);
|
|
180
180
|
try {
|
|
181
181
|
const earlier = error instanceof HandOverFailed ? error.pending : undefined;
|
|
182
182
|
await handOver(context, log, issue.number, state, handOverReason(error, reason), earlier);
|
|
@@ -184,6 +184,8 @@ export async function claimedError(context, log, issue, state, error, started) {
|
|
|
184
184
|
catch (failure) {
|
|
185
185
|
log.event('hand-over.error', { error: message(failure) }, 'quiet');
|
|
186
186
|
}
|
|
187
|
+
// The issue ends (and the waiting questions go out) only once the hand-over is done.
|
|
188
|
+
logIssueError(log, error, started);
|
|
187
189
|
await cleanUp(context, log, state.branch);
|
|
188
190
|
return issueReport(issue.number, 'error', state, started, reason);
|
|
189
191
|
}
|