Skip to content

Commit

Permalink
fix: remove automerge from queue if case is unchecked
Browse files Browse the repository at this point in the history
  • Loading branch information
christophehurpeau committed Jun 28, 2019
1 parent 241fb0d commit 8601e00
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pr-handlers/actions/editOpenedPR.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ export const editOpenedPR = async (
await context.github.issues.removeLabel(
context.issue({ name: automergeLabel.name }),
);
repoContext.removePrFromAutomergeQueue(context, pr.number);
}
if (options.autoMerge && !prHasAutoMergeLabel) {
const result = await context.github.issues.addLabels(
Expand All @@ -188,8 +189,8 @@ export const editOpenedPR = async (
context.payload.pull_request,
result.data,
);
return { skipAutoMerge: true };
}
return { skipAutoMerge: true };
}
}

Expand Down

0 comments on commit 8601e00

Please sign in to comment.