Skip to content

Commit

Permalink
fix(automerge): don’t delete if pr-comment
Browse files Browse the repository at this point in the history
Closes #7786
  • Loading branch information
rarkins committed Nov 23, 2020
1 parent 88ad847 commit 29bea61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/workers/branch/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@ export async function processBranch(
}
}
const prAutomerged = await checkAutoMerge(pr, config);
if (prAutomerged) {
if (prAutomerged && config.automergeType !== 'pr-comment') {
await deleteBranchSilently(config.branchName);
return ProcessBranchResult.Automerged;
}
Expand Down

0 comments on commit 29bea61

Please sign in to comment.