From 745155a325fa354751491227185c10aff0db6df5 Mon Sep 17 00:00:00 2001 From: Justine Geffen Date: Fri, 6 Feb 2026 15:49:55 +0200 Subject: [PATCH] fix: Add --repo flag to gh pr comment in workflow The acknowledge command was failing with "fatal: not a git repository" because gh CLI requires either a checkout or explicit --repo flag. Fixes /editorial-review PR comment trigger failing on acknowledgment step. Co-Authored-By: Claude Sonnet 4.5 --- .github/workflows/docs-review.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docs-review.yml b/.github/workflows/docs-review.yml index 9b0fcb1b5..03b35366e 100644 --- a/.github/workflows/docs-review.yml +++ b/.github/workflows/docs-review.yml @@ -60,7 +60,7 @@ jobs: - name: Acknowledge command if: steps.check.outputs.should_run == 'true' run: | - gh pr comment ${{ github.event.issue.number }} --body "🔍 Editorial review started! [View workflow run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})" + gh pr comment ${{ github.event.issue.number }} --repo ${{ github.repository }} --body "🔍 Editorial review started! [View workflow run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})" env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}