From 0c4c4885647f2619f279bb9890a4117649e695df Mon Sep 17 00:00:00 2001 From: Elmir Shamsutdinov <84476539+baslo2@users.noreply.github.com> Date: Mon, 19 Jan 2026 10:24:09 +0300 Subject: [PATCH] Update comments.js updated quard part --- comments.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/comments.js b/comments.js index fd8a7b5..480ec7b 100644 --- a/comments.js +++ b/comments.js @@ -4,7 +4,7 @@ const shared = require('./_shared'); exports.rule = entities.Issue.onChange({ title: "Send notification to Discord when an issue is commented", guard: (ctx) => { - return ctx.issue.comments; + return ctx.issue.comments.added.isNotEmpty(); }, action: (ctx) => { const comments = ctx.issue.comments; @@ -16,4 +16,4 @@ exports.rule = entities.Issue.onChange({ }, requirements: {} -}); \ No newline at end of file +});