From 2ba2911662458f2a3ca763b212548456f59a7a07 Mon Sep 17 00:00:00 2001 From: nickofthyme Date: Wed, 14 Dec 2022 11:39:11 -0700 Subject: [PATCH] ci: allow triggers from any user when ci:approved label exists fixes #1900 --- github_bot/src/github/events/issue_comment/trigger_build.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/github_bot/src/github/events/issue_comment/trigger_build.ts b/github_bot/src/github/events/issue_comment/trigger_build.ts index 5ef1b80d4c..306b38782d 100644 --- a/github_bot/src/github/events/issue_comment/trigger_build.ts +++ b/github_bot/src/github/events/issue_comment/trigger_build.ts @@ -37,7 +37,7 @@ export function setupBuildTrigger(app: Probot) { }); } - if (!(await isValidUser(ctx))) { + if (!labelCheck('ciApproved') && !(await isValidUser(ctx))) { await createIssueReaction(ctx, '-1'); return; }