mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
fix: explicitly specify repo in auto-close job (#27291)
This commit is contained in:
@@ -66,7 +66,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ github.token }}
|
GH_TOKEN: ${{ github.token }}
|
||||||
PR_NUMBER: ${{ github.event.pull_request.number }}
|
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:
|
close_llm:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -113,7 +113,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ github.token }}
|
GH_TOKEN: ${{ github.token }}
|
||||||
PR_NUMBER: ${{ github.event.pull_request.number }}
|
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
|
- name: Check for remaining auto-closed labels
|
||||||
id: check_labels
|
id: check_labels
|
||||||
@@ -121,7 +121,7 @@ jobs:
|
|||||||
GH_TOKEN: ${{ github.token }}
|
GH_TOKEN: ${{ github.token }}
|
||||||
PR_NUMBER: ${{ github.event.pull_request.number }}
|
PR_NUMBER: ${{ github.event.pull_request.number }}
|
||||||
run: |
|
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')
|
--jq '[.labels[].name | select(startswith("auto-closed:"))] | length')
|
||||||
echo "remaining=$REMAINING" >> "$GITHUB_OUTPUT"
|
echo "remaining=$REMAINING" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user