68
68
- name : ' Add "First-time Contributor" label if PR is from a first-time contributor'
69
69
if : ${{ github.event.action == 'opened' || github.event.action == 'reopened' }}
70
70
# Pin action to full-length commit SHA
71
- uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7 .0.1
71
+ uses : actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 .0.0
72
72
with :
73
73
github-token : ${{ secrets.STDLIB_BOT_PAT_REPO_WRITE }}
74
74
script : |
93
93
- name : ' Add "Needs Review" label if PR is opened and not draft'
94
94
if : ${{ github.event.action == 'opened' && github.event.pull_request.draft == false }}
95
95
# Pin action to full length commit SHA
96
- uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7 .0.1
96
+ uses : actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 .0.0
97
97
with :
98
98
github-token : ${{ secrets.STDLIB_BOT_PAT_REPO_WRITE }}
99
99
script : |
@@ -108,7 +108,7 @@ jobs:
108
108
- name : ' Add "Needs Review" label if PR is ready for review or review is requested'
109
109
if : ${{ github.event.action == 'ready_for_review' || github.event.action == 'review_requested' }}
110
110
# Pin action to full length commit SHA
111
- uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7 .0.1
111
+ uses : actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 .0.0
112
112
with :
113
113
github-token : ${{ secrets.STDLIB_BOT_PAT_REPO_WRITE }}
114
114
script : |
@@ -123,7 +123,7 @@ jobs:
123
123
- name : ' Remove "Needs Review" label if PR is converted to draft or closed'
124
124
if : ${{ github.event.action == 'converted_to_draft' || github.event.action == 'closed' }}
125
125
# Pin action to full length commit SHA
126
- uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7 .0.1
126
+ uses : actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 .0.0
127
127
with :
128
128
github-token : ${{ secrets.STDLIB_BOT_PAT_REPO_WRITE }}
129
129
script : |
@@ -141,7 +141,7 @@ jobs:
141
141
# Remove "Needs Review" and "Needs Changes" labels when "Ready To Merge" is assigned:
142
142
- name : ' Remove "Needs Review" and "Needs Changes" labels when "Ready To Merge" is assigned'
143
143
if : ${{ github.event.action == 'labeled' && github.event.label.name == 'Ready To Merge' }}
144
- uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7 .0.1
144
+ uses : actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 .0.0
145
145
with :
146
146
github-token : ${{ secrets.STDLIB_BOT_PAT_REPO_WRITE }}
147
147
script : |
@@ -163,7 +163,7 @@ jobs:
163
163
- name : ' Remove "First-time Contributor" label from other open PRs of same author if PR is merged'
164
164
if : ${{ github.event.action == 'closed' && github.event.pull_request.merged == true }}
165
165
# Pin action to full length commit SHA
166
- uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7 .0.1
166
+ uses : actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 .0.0
167
167
with :
168
168
github-token : ${{ secrets.STDLIB_BOT_PAT_REPO_WRITE }}
169
169
script : |
0 commit comments