From a5621326f71df06b155a226979d0f296226a8474 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Mon, 30 Mar 2026 16:36:48 +0200 Subject: [PATCH] Fix existing comment check in workflow YAML --- .github/workflows/on_issues_ping_submitter.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/on_issues_ping_submitter.yml b/.github/workflows/on_issues_ping_submitter.yml index f3fab55e1..b13e05312 100644 --- a/.github/workflows/on_issues_ping_submitter.yml +++ b/.github/workflows/on_issues_ping_submitter.yml @@ -42,7 +42,7 @@ jobs: comments_url="https://api.github.com/repos/${REPO}/issues/${ISSUE_NUMBER}/comments" export GH_TOKEN="${GITHUB_TOKEN}" - existing="$(gh issue view "$ISSUE_NUMBER" --repo "$REPO" --json comments --jq '[.comments[] | select(.body | contains($marker))] | length')" + existing="$(gh issue view "$ISSUE_NUMBER" --repo "$REPO" --json comments | jq --arg marker "$marker" '[.comments[] | select(.body | contains($marker))] | length')" if [ "$existing" -eq 0 ]; then body=$(jq -cn --arg marker "$marker" --arg addon "$addon" --arg user "$user" '{body: ($marker + "\nHeads up @" + $user + ": this issue appears to mention `" + $addon + "`.")}')