From b87abbdabf29f4ed2236f128702b62f29c45b82f Mon Sep 17 00:00:00 2001 From: Christian Tatu <65356484+chr-tatu@users.noreply.github.com> Date: Tue, 6 Aug 2024 20:24:48 +0200 Subject: [PATCH] Adding 'wrong' keyword to the regex that triggers Joule to remind people of the workflow --- app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.js b/app.js index 21939b1..5dbd05d 100644 --- a/app.js +++ b/app.js @@ -137,7 +137,7 @@ async function processThreadMessagesForGratitude(client, event) { async function processTopMessagesForBugWorkflowReminder(client, event) { if (!CHANNELS_FOR_BUGS_WORKFLOW_REMINDER.includes(event.channel)) return; - const issueWordsRegex = /(bug|issue|error|reproduce|complain|replicate)/i; + const issueWordsRegex = /(bug|issue|error|reproduce|complain|replicate|wrong)/i; const ignoreWordsRegex = /feedback/i; const reminderMessage = `Oops! 🐞\nIt seems you found a bug, <@${event.user}>. Please use the 'Report a Bug' workflow. Thanks! 🙌`;