|
55 | 55 | - name: Apply labels based on branch prefix and PR title |
56 | 56 | uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 |
57 | 57 | with: |
58 | | - github-token: ${{ secrets.GH_PAT_TOKEN }} |
| 58 | + github-token: ${{ secrets.GITHUB_TOKEN }} |
59 | 59 | script: | |
60 | 60 | const branch = context.payload.pull_request.head.ref; |
61 | 61 | const prTitle = context.payload.pull_request.title; |
@@ -179,7 +179,7 @@ jobs: |
179 | 179 | - name: Assign default assignee if none assigned |
180 | 180 | uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 |
181 | 181 | with: |
182 | | - github-token: ${{ secrets.GH_PAT_TOKEN }} |
| 182 | + github-token: ${{ secrets.GITHUB_TOKEN }} |
183 | 183 | script: | |
184 | 184 | const pr = context.payload.pull_request; |
185 | 185 | const assignees = pr.assignees || []; |
@@ -226,7 +226,7 @@ jobs: |
226 | 226 | - name: Welcome new contributor |
227 | 227 | uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 |
228 | 228 | with: |
229 | | - github-token: ${{ secrets.GH_PAT_TOKEN }} |
| 229 | + github-token: ${{ secrets.GITHUB_TOKEN }} |
230 | 230 | script: | |
231 | 231 | const author = context.payload.pull_request.user.login; |
232 | 232 | const repoName = context.repo.repo; |
@@ -270,13 +270,14 @@ jobs: |
270 | 270 | permissions: |
271 | 271 | contents: read |
272 | 272 | pull-requests: write |
| 273 | + |
273 | 274 | if: github.event.action == 'opened' |
274 | 275 |
|
275 | 276 | steps: |
276 | 277 | - name: Add size label based on changes |
277 | 278 | uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 |
278 | 279 | with: |
279 | | - github-token: ${{ secrets.GH_PAT_TOKEN }} |
| 280 | + github-token: ${{ secrets.GITHUB_TOKEN }} |
280 | 281 | script: | |
281 | 282 | const pr = context.payload.pull_request; |
282 | 283 | const additions = pr.additions || 0; |
|
0 commit comments