Skip to content

Commit

Permalink
rename branch automerge option
Browse files Browse the repository at this point in the history
  • Loading branch information
rarkins committed Mar 10, 2020
1 parent cb9d755 commit 2c34c15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/workers/pr/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export async function addAssigneesReviewers(config, pr: Pr): Promise<void> {
}

export enum PrResult {
AutomergeBranchInstead = 'automerge-branch-instead',
AwaitingBranchAutomerge = 'awaiting-branch-automerge',
AwaitingApproval = 'awaiting-approval',
AwaitingGreenBranch = 'awaiting-green-branch',
AwaitingNotPending = 'awaiting-not-pending',
Expand Down Expand Up @@ -145,7 +145,7 @@ export async function ensurePr(
logger.debug(`Branch tests failed, so will create PR`);
} else {
// Branch should be automerged, so we don't want to create a PR
return { result: PrResult.AutomergeBranchInstead };
return { result: PrResult.AwaitingBranchAutomerge };
}
}
if (config.prCreation === 'status-success') {
Expand Down

0 comments on commit 2c34c15

Please sign in to comment.