File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919name : LabelPrs
2020on : [pull_request_target]
2121permissions : read-all
22+ concurrency :
23+ group : pr-bot-labels-${{ github.event.pull_request.number || github.event.issue.number }}
24+ cancel-in-progress : false
2225jobs :
2326 label :
2427 runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 2020 issue_comment :
2121 types : [created]
2222permissions : read-all
23+ concurrency :
24+ group : pr-bot-labels-${{ github.event.pull_request.number || github.event.issue.number }}
25+ cancel-in-progress : false
2326jobs :
2427 process-pr-update :
2528 # Give GITHUB_TOKEN permissions to write pull request comments and to the state branch, and read PR related info
3033 issues : read
3134 statuses : read
3235
33- # Don't run on forks
34- if : github.repository == 'apache/beam'
36+ # Don't run on forks or non-PR issue comments
37+ if : github.repository == 'apache/beam' && (github.event_name != 'issue_comment' || github.event.issue.pull_request)
3538 runs-on : ubuntu-latest
3639
3740 steps :
Original file line number Diff line number Diff line change @@ -138,7 +138,8 @@ async function setNextActionReviewers(
138138 console . log ( "No reviewers assigned, dont need to manipulate attention set" ) ;
139139 return ;
140140 }
141- const existingLabels = payload . issue ?. labels || payload . pull_request ?. labels ;
141+ const existingLabels =
142+ pull . labels || payload . issue ?. labels || payload . pull_request ?. labels ;
142143 await nextActionReviewers ( pull . number , existingLabels ) ;
143144 let prState = await stateClient . getPrState ( pull . number ) ;
144145 prState . nextAction = REVIEWERS_ACTION ;
You can’t perform that action at this time.
0 commit comments