Skip to content

Commit

Permalink
fix: do not fail the full backport if assigning reviewers failed
Browse files Browse the repository at this point in the history
Signed-off-by: John Molakvoæ <[email protected]>
  • Loading branch information
skjnldsv committed Jan 31, 2024
1 parent 2036caa commit 06fe71d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export const backport = (task: Task) => new Promise<void>((resolve, reject) => {
await requestReviewers(octokit, task, prNumber, [task.author])
info(task, `Requested reviews from ${[...reviewers, task.author].join(', ')}`)
} catch (e) {
throw new Error(`Failed to request reviews: ${e.message}`)
error(task, `Failed to request reviews: ${e.message}`)

Check warning on line 77 in src/backport.ts

View check run for this annotation

Codecov / codecov/patch

src/backport.ts#L77

Added line #L77 was not covered by tests
}
} catch (e) {
throw new Error(`Failed to create pull request: ${e.message}`)
Expand Down

0 comments on commit 06fe71d

Please sign in to comment.