Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45227,7 +45227,9 @@ async function enforceRequiredLabels(octokit, context, target, options = {}) {
await apply(octokit, context, issueNumber, rule, labels);
}
catch (e) {
errors.push(`${rule.missing_label}: ${e instanceof Error ? e.message : e}`);
// every await in apply() rewraps its rejection in new Error (labelIssue, removeLabels, createComment,
// botCommentsWithMarker, deleteMissingComments), so only an Error reaches this catch from the bundle
errors.push(`${rule.missing_label}: ${e instanceof Error ? e.message : /* v8 ignore next -- non-Error arm unreachable from dist/index.js; requireMatchingLabel.test.ts drives it */ e}`);
}
}
if (errors.length > 0) {
Expand Down
4 changes: 3 additions & 1 deletion src/plugins/requireMatchingLabel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,9 @@ export async function enforceRequiredLabels(octokit: Octokit, context: Context,
await apply(octokit, context, issueNumber, rule, labels)
}
catch (e) {
errors.push(`${rule.missing_label}: ${e instanceof Error ? e.message : e}`)
// every await in apply() rewraps its rejection in new Error (labelIssue, removeLabels, createComment,
// botCommentsWithMarker, deleteMissingComments), so only an Error reaches this catch from the bundle
errors.push(`${rule.missing_label}: ${e instanceof Error ? e.message : /* v8 ignore next -- non-Error arm unreachable from dist/index.js; requireMatchingLabel.test.ts drives it */ e}`)
}
}

Expand Down
Loading