From 09b182eda7dbf5fd2ba89e27241526ffe3acdf84 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Fri, 6 Mar 2026 10:14:38 +0100 Subject: [PATCH] Update on_issues_ping_submitter.yml --- .github/workflows/on_issues_ping_submitter.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/on_issues_ping_submitter.yml b/.github/workflows/on_issues_ping_submitter.yml index d59a26451..f3fab55e1 100644 --- a/.github/workflows/on_issues_ping_submitter.yml +++ b/.github/workflows/on_issues_ping_submitter.yml @@ -41,7 +41,8 @@ jobs: marker="" comments_url="https://api.github.com/repos/${REPO}/issues/${ISSUE_NUMBER}/comments" - existing="$(curl -sS -H "Authorization: Bearer ${GITHUB_TOKEN}" -H 'Accept: application/vnd.github+json' "$comments_url" | jq -r --arg marker "$marker" '[ .[] | select(.body | contains($marker)) ] | length')" + export GH_TOKEN="${GITHUB_TOKEN}" + existing="$(gh issue view "$ISSUE_NUMBER" --repo "$REPO" --json comments --jq '[.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 + "`.")}')