Skip to content

Commit 3dea049

Browse files
authored
[GH] Add required perms to comment (#20060)
1 parent 958b450 commit 3dea049

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/pr.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,14 @@ jobs:
3131
- name: External comment
3232
run: gh pr comment "$NUMBER" --body "Howdy and thanks for contributing to our repo.\n\nWe generally get around to reviewing new, external PRs within **2 weeks**.\n\nIf it's been longer than then without any movement, try tagging the **Assignees** in a comment."
3333
if: steps.check_if_contributor_is_external.outputs.is_external == 'true'
34+
env:
35+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36+
GH_REPO: ${{ github.repository }}
37+
NUMBER: ${{ github.event.pull_request.number }}
3438
- name: Internal comment
3539
run: gh pr comment "$NUMBER" --body "Howdy and thanks for contributing to our repo.\n\nWe generally get around to reviewing internal PRs with **1 week**. If it's something urgent or has been sitting without any movement for more than that, start a thread in the `Developer Docs` space internally."
3640
if: steps.check_if_contributor_is_external.outputs.is_external == 'false'
41+
env:
42+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43+
GH_REPO: ${{ github.repository }}
44+
NUMBER: ${{ github.event.pull_request.number }}

0 commit comments

Comments
 (0)