File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ name: Issue and PR Triage
44' on ' :
55 issues :
66 types : [opened]
7- pull_request :
7+ pull_request_target :
88 types : [opened]
99 workflow_dispatch :
1010 inputs :
2020 issue_number : >-
2121 ${{
2222 (github.event_name == 'workflow_dispatch' && inputs.issue_number) ||
23- (github.event_name == 'pull_request ' && github.event.pull_request.number) ||
23+ (github.event_name == 'pull_request_target ' && github.event.pull_request.number) ||
2424 (github.event_name == 'issues' && github.event.issue.number) ||
2525 ''
2626 }}
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ permissions:
1919jobs :
2020 triage-new-item :
2121 name : Triage New Issue or PR
22- if : github.event_name == 'issues' || github.event_name == 'pull_request '
22+ if : github.event_name == 'issues' || github.event_name == 'pull_request_target '
2323 runs-on : ubuntu-latest
2424 steps :
2525 - name : Get available labels
3737
3838 - name : Set environment variables
3939 env :
40- ITEM_TITLE : ${{ github.event_name == 'pull_request ' && github.event.pull_request.title || github.event.issue.title }}
41- ITEM_BODY : ${{ github.event_name == 'pull_request ' && github.event.pull_request.body || github.event.issue.body }}
42- ITEM_TYPE : ${{ github.event_name == 'pull_request ' && 'pull request' || 'issue' }}
40+ ITEM_TITLE : ${{ github.event_name == 'pull_request_target ' && github.event.pull_request.title || github.event.issue.title }}
41+ ITEM_BODY : ${{ github.event_name == 'pull_request_target ' && github.event.pull_request.body || github.event.issue.body }}
42+ ITEM_TYPE : ${{ github.event_name == 'pull_request_target ' && 'pull request' || 'issue' }}
4343 LABELS_RESULT : ${{ steps.get-labels.outputs.result }}
4444 run : |
4545 {
You can’t perform that action at this time.
0 commit comments