From 5d30dd965d082b7592462454ae29837478f62b9c Mon Sep 17 00:00:00 2001 From: Ilya Shatalov Date: Wed, 4 Feb 2026 23:27:45 +0100 Subject: [PATCH] Use REST API for PR comments --- .github/workflows/ai-gatekeeper.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ai-gatekeeper.yaml b/.github/workflows/ai-gatekeeper.yaml index a5d98ed..0a8a532 100644 --- a/.github/workflows/ai-gatekeeper.yaml +++ b/.github/workflows/ai-gatekeeper.yaml @@ -8,7 +8,7 @@ on: permissions: contents: read - pull-requests: read + pull-requests: write issues: write checks: write @@ -168,5 +168,5 @@ jobs: if [ -n "${COMMENT_ID:-}" ]; then gh api --method PATCH "repos/$REPO/issues/comments/$COMMENT_ID" -f body="$MSG" else - gh pr comment "$PR" --repo "$REPO" --body "$MSG" + gh api --method POST "repos/$REPO/issues/$PR/comments" -f body="$MSG" fi