Skip to content

Commit

Permalink
ci: allow triggers from any user when ci:approved label exists
Browse files Browse the repository at this point in the history
fixes #1900
  • Loading branch information
nickofthyme committed Dec 14, 2022
1 parent de3dc5a commit 2ba2911
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export function setupBuildTrigger(app: Probot) {
});
}

if (!(await isValidUser(ctx))) {
if (!labelCheck('ciApproved') && !(await isValidUser(ctx))) {
await createIssueReaction(ctx, '-1');
return;
}
Expand Down

0 comments on commit 2ba2911

Please sign in to comment.