File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 2121 if : inputs.copy_issue_labels == true || github.event_name != 'workflow_call'
2222 runs-on : ubuntu-latest
2323 steps :
24+ - name : Checkout
25+ uses : actions/checkout@v6
26+
2427 - name : Extract issue number from PR
2528 id : extract-issue
2629 env :
@@ -38,12 +41,13 @@ jobs:
3841 - name : Copy labels from issue to PR
3942 if : steps.extract-issue.outputs.issue_number != ''
4043 run : |
41- LABELS=$(gh issue view "$ISSUE_NUM" --json labels --jq '.labels[].name')
44+ LABELS=$(gh issue view "$ISSUE_NUM" --repo "$REPO" -- json labels --jq '.labels[].name')
4245
4346 for label in $LABELS; do
44- gh pr edit "$PR_NUM" --add-label "$label" 2>/dev/null || true
47+ gh pr edit "$PR_NUM" --repo "$REPO" -- add-label "$label" 2>/dev/null || true
4548 done
4649 env :
4750 ISSUE_NUM : ${{ steps.extract-issue.outputs.issue_number }}
4851 PR_NUM : ${{ github.event.pull_request.number }}
52+ REPO : ${{ github.repository }}
4953 GH_TOKEN : ${{ github.token }}
You can’t perform that action at this time.
0 commit comments