From 5462fd0588bdc75239f191378b61bfd790897c20 Mon Sep 17 00:00:00 2001 From: Shpingalet007 <22795961+shpingalet007@users.noreply.github.com> Date: Tue, 1 Aug 2023 11:15:08 +0200 Subject: [PATCH] Fix condition https://github.com/Khan/pull-request-comment-trigger/pull/46#discussion_r1278069752 --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 11616d2..e214a4b 100755 --- a/index.js +++ b/index.js @@ -52,7 +52,7 @@ async function run() { hasTrigger = regexTrigger.test(body); } - if ((prefixOnly && !hasTrigger) || !hasTrigger) { + if (!hasTrigger) { core.setOutput("triggered", "false"); return; }