From 8714b4990278162db0fb87717dd4a1e56fbd7a36 Mon Sep 17 00:00:00 2001 From: Orta Therox Date: Mon, 28 Feb 2022 08:41:42 +0000 Subject: [PATCH] Skips lgtm but --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 3d05b2a3..1d53ce31 100644 --- a/index.js +++ b/index.js @@ -17,7 +17,7 @@ async function run() { // Merge if they say they have access if (context.eventName === "issue_comment" || context.eventName === "pull_request_review") { const bodyLower = getPayloadBody().toLowerCase(); - if (bodyLower.includes("lgtm")) { + if (bodyLower.includes("lgtm") && !bodyLower.includes("lgtm but")) { new Actor().mergeIfHasAccess(); } else if (bodyLower.includes("@github-actions close")) { new Actor().closePROrIssueIfInCodeowners();