Skip to content

Commit

Permalink
fix: update status check when approved added and no other labels exists
Browse files Browse the repository at this point in the history
  • Loading branch information
christophehurpeau committed Feb 18, 2019
1 parent 4df8e04 commit 6815c90
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/context/repoContext.js
Expand Up @@ -135,7 +135,10 @@ const initRepoContext = async (context, config) => {

if (toAdd.has('needsReview')) {
createInProgressStatusCheck(context);
} else if (toDelete.has('needsReview')) {
} else if (
toDelete.has('needsReview') ||
(prLabels.length === 0 && toAdd.size === 1 && toAdd.has('approved'))
) {
updateStatusCheckFromLabels(
context,
[...newLabels]
Expand Down

0 comments on commit 6815c90

Please sign in to comment.