chore: use GITHUB_TOKEN

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2022-01-18 21:46:43 +01:00
parent 2c2695cc1a
commit e2a8331c60
+3 -3
View File
@@ -1,9 +1,8 @@
# on a PR open on PR review or comment, assign the awaiting-review label if the actor is the author
name: Set Awaiting Review
on:
pull_request_target:
types: [opened, reopened, synchronize]
- pull_request_target
permissions:
issues: write
pull-requests: write
@@ -15,6 +14,7 @@ jobs:
- uses: actions/github-script@v5
id: fix-labels
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
// if it's the author, always add awaiting-review label
const isAuthor = context.payload.pull_request.user.login === context.actor