Skip to content

Commit

Permalink
action.cjs: retrigger only if the comments after are more than the co…
Browse files Browse the repository at this point in the history
…mments before
  • Loading branch information
thypon committed May 29, 2024
1 parent 02dfdfa commit 2b97f55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 2b97f55

Please sign in to comment.