From 836b18ae40e18a46d70aae833bd9519b64579d7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Molakvo=C3=A6?= Date: Fri, 26 Jan 2024 08:43:28 +0100 Subject: [PATCH] fix: ignore forced requests on merge MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ --- src/githubUtils.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/githubUtils.ts b/src/githubUtils.ts index 702cc15..a623bc4 100644 --- a/src/githubUtils.ts +++ b/src/githubUtils.ts @@ -216,6 +216,8 @@ export const getBackportRequestsFromPR = async (octokit: Octokit, task: Task): P return data // Filter out invalid comments .filter(comment => comment?.body?.trim().startsWith(COMMAND_PREFIX)) + // Filter out forced requests + .filter(comment => !comment?.body?.trim().startsWith(COMMAND_PREFIX + '!')) // Filter out comments from non-collaborators .filter(comment => comment?.author_association !== 'NONE') // Filter out comments that got rejected by the bot.