From da57ccc5a73f85c5d1b804f912c1c12a6857db44 Mon Sep 17 00:00:00 2001 From: Joe Harrison <53116754+sudo-kraken@users.noreply.github.com> Date: Sat, 27 Sep 2025 12:20:45 +0100 Subject: [PATCH] Update support.yml fixed the gh -R issue (#1928) --- .github/workflows/support.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/support.yml b/.github/workflows/support.yml index a8da61446..2a351482d 100644 --- a/.github/workflows/support.yml +++ b/.github/workflows/support.yml @@ -19,6 +19,7 @@ jobs: issues: write env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_REPO: ${{ github.repository }} NUMBER: ${{ github.event.issue.number }} ISSUE_AUTHOR: ${{ github.event.issue.user.login }} steps: @@ -35,21 +36,21 @@ jobs: - [Discord](https://discord.gg/ckbvBtDJgC) run: | retry() { n=0; until "$@"; do n=$((n+1)); [ $n -ge 3 ] && break; echo "retry $n: $*" >&2; sleep 2; done; } - retry gh issue comment "$NUMBER" -b "$BODY" || true - retry gh issue close "$NUMBER" || true - gh issue lock "$NUMBER" -r "off_topic" || true + retry gh issue comment "$NUMBER" -R "$GH_REPO" -b "$BODY" || true + retry gh issue close "$NUMBER" -R "$GH_REPO" || true + gh issue lock "$NUMBER" -R "$GH_REPO" -r "off_topic" || true - name: Reopened or label removed, unlock issue if: github.event.action == 'unlabeled' && github.event.label.name == 'support' shell: bash run: | retry() { n=0; until "$@"; do n=$((n+1)); [ $n -ge 3 ] && break; echo "retry $n: $*" >&2; sleep 2; done; } - retry gh issue reopen "$NUMBER" || true - gh issue unlock "$NUMBER" || true + retry gh issue reopen "$NUMBER" -R "$GH_REPO" || true + gh issue unlock "$NUMBER" -R "$GH_REPO" || true - name: Remove support label on manual reopen if: github.event.action == 'reopened' shell: bash run: | - gh issue edit "$NUMBER" --remove-label "support" || true - gh issue unlock "$NUMBER" || true + gh issue edit "$NUMBER" -R "$GH_REPO" --remove-label "support" || true + gh issue unlock "$NUMBER" -R "$GH_REPO" || true