Skip to content

High performance self-hosted photo and video management solution.

fix: explicitly specify repo in auto-close job (#27291)

bo0tzzc862163204ac
diff --git a/.github/workflows/auto-close.yml b/.github/workflows/auto-close.yml
index 559cb20e66..60371d1abb 100644
--- a/.github/workflows/auto-close.yml
+++ b/.github/workflows/auto-close.yml
@@ -66,7 +66,7 @@ jobs:
env:
GH_TOKEN: ${{ github.token }}
PR_NUMBER: ${{ github.event.pull_request.number }}
- run: gh pr edit "$PR_NUMBER" --add-label "auto-closed:template"
+ run: gh pr edit "$PR_NUMBER" --repo "${{ github.repository }}" --add-label "auto-closed:template"
close_llm:
runs-on: ubuntu-latest
@@ -113,7 +113,7 @@ jobs:
env:
GH_TOKEN: ${{ github.token }}
PR_NUMBER: ${{ github.event.pull_request.number }}
- run: gh pr edit "$PR_NUMBER" --remove-label "auto-closed:template" || true
+ run: gh pr edit "$PR_NUMBER" --repo "${{ github.repository }}" --remove-label "auto-closed:template" || true
- name: Check for remaining auto-closed labels
id: check_labels
@@ -121,7 +121,7 @@ jobs:
GH_TOKEN: ${{ github.token }}
PR_NUMBER: ${{ github.event.pull_request.number }}
run: |
- REMAINING=$(gh pr view "$PR_NUMBER" --json labels \
+ REMAINING=$(gh pr view "$PR_NUMBER" --repo "${{ github.repository }}" --json labels \
--jq '[.labels[].name | select(startswith("auto-closed:"))] | length')
echo "remaining=$REMAINING" >> "$GITHUB_OUTPUT"