Skip to content
This repository has been archived by the owner on May 4, 2022. It is now read-only.

Commit

Permalink
Fix auto-merge on checks with no checks
Browse files Browse the repository at this point in the history
[changelog:fixed]
  • Loading branch information
cdupuis committed Sep 10, 2020
1 parent ca65521 commit dd3250a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions lib/autoMerge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,11 @@ const CheckAutoMergeRule: AutoMergeRule = {
return false;
}
}
return true;
return !isPrTagged(
pr,
AutoMergeCheckSuccessLabel,
AutoMergeCheckSuccessTag,
);
},
};

Expand Down Expand Up @@ -340,7 +344,7 @@ export async function executeAutoMerge(
if (pr.state !== "open") {
await ctx.audit.log(`Pull request auto-merge ignoring closed ${slug}`);
return status
.success(`Pull request auto-merge ignoring closed ${slug}`)
.success(`Pull request auto-merge ignoring closed ${link}`)
.hidden();
}

Expand Down Expand Up @@ -401,7 +405,7 @@ export async function executeAutoMerge(
)}`,
);
return status.success(
`Pull request auto-merge not enabled for ${slug}.`,
`Pull request auto-merge not enabled for ${link}.`,
);
}

Expand Down

0 comments on commit dd3250a

Please sign in to comment.