From 2b97f552e5e2bda1f320ca0dd728df2472aa7cd8 Mon Sep 17 00:00:00 2001 From: Andrea Brancaleoni Date: Wed, 29 May 2024 16:29:58 +0200 Subject: [PATCH] action.cjs: retrigger only if the comments after are more than the comments before --- action.cjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.cjs b/action.cjs index dd70a2ac..3221aef8 100644 --- a/action.cjs +++ b/action.cjs @@ -133,7 +133,7 @@ module.exports = async ({ github, context, inputs, actionPath, core, debug }) => debugLog('Description contains hotwords:', descriptionContainsHotwords) // add should-trigger label step - const shouldTrigger = reviewdogEnabledPr && !assigneeRemovedLabel && ((commentsBefore !== commentsAfter) || descriptionContainsHotwords) + const shouldTrigger = reviewdogEnabledPr && !assigneeRemovedLabel && ((commentsBefore < commentsAfter) || descriptionContainsHotwords) debugLog('Should trigger:', shouldTrigger) if (shouldTrigger) {