File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 33
33
# Define job name:
34
34
name : ' Add "Needs Changes" Label when Reviewer Requests Changes'
35
35
36
- # Only run this job if the reviewer requested changes:
37
- if : ${{ github.event.review.state == 'changes_requested' }}
36
+ # Only run this job if the reviewer requested changes (but do not run on forks due to missing permissions) :
37
+ if : ${{ github.repository == 'stdlib-js/stdlib' && github. event.review.state == 'changes_requested' }}
38
38
39
39
# Define job permissions:
40
40
permissions :
52
52
# Pin action to a known commit SHA for reproducibility:
53
53
uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
54
54
with :
55
+ github-token : ${{ secrets.CHATBOT_GITHUB_TOKEN }}
55
56
script : |
56
57
await github.rest.issues.addLabels({
57
58
'owner': context.repo.owner,
You can’t perform that action at this time.
0 commit comments