Skip to content

Commit

Permalink
fix(automerge): don't reassign failing PRs if assignAutomerge=true (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
rarkins committed Feb 7, 2022
1 parent d555c5c commit bc300b8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/workers/pr/index.ts
Expand Up @@ -358,6 +358,7 @@ export async function ensurePr(
!existingPr.hasAssignees &&
!existingPr.hasReviewers &&
config.automerge &&
!config.assignAutomerge &&
(await getBranchStatus()) === BranchStatus.red
) {
logger.debug(`Setting assignees and reviewers as status checks failed`);
Expand Down

0 comments on commit bc300b8

Please sign in to comment.