diff options
| author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2022-12-15 20:40:30 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-15 20:40:30 +0100 |
| commit | ef95174694d705e921ee0271d62badd45f00deaa (patch) | |
| tree | 57e745efa2e2fcf561f1e98ca6a006f19ecbe089 /.github/workflows | |
| parent | 3091fa778a4f4fe6ff48527c6a29e3be874f46c7 (diff) | |
| download | rneovim-ef95174694d705e921ee0271d62badd45f00deaa.tar.gz rneovim-ef95174694d705e921ee0271d62badd45f00deaa.tar.bz2 rneovim-ef95174694d705e921ee0271d62badd45f00deaa.zip | |
ci: add team reviewers (#21434)
Using team reviewers when possible reduces the churn on the git history
as we'll be able to add or remove reviewers without needing to change
the workflow files.
This requires using Github fine-grained personal access tokens with Pull
Requests set to "Read and write" and Members to "Read-only".
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/add-reviewers.yml | 1 | ||||
| -rw-r--r-- | .github/workflows/labeler.yml | 1 | ||||
| -rw-r--r-- | .github/workflows/remove-reviewers.yml | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/.github/workflows/add-reviewers.yml b/.github/workflows/add-reviewers.yml index 6c8c7ff8ed..f1abab5c53 100644 --- a/.github/workflows/add-reviewers.yml +++ b/.github/workflows/add-reviewers.yml @@ -13,6 +13,7 @@ jobs: - name: 'Request reviewers' uses: actions/github-script@v6 with: + github-token: ${{ secrets.TEAM_REVIEW }} script: | const script = require('./.github/scripts/reviews.js') await script({github, context}) diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index f85f9d0cda..60689029a3 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -44,6 +44,7 @@ jobs: - name: 'Request reviewers' uses: actions/github-script@v6 with: + github-token: ${{ secrets.TEAM_REVIEW }} script: | const script = require('./.github/scripts/reviews.js') await script({github, context}) diff --git a/.github/workflows/remove-reviewers.yml b/.github/workflows/remove-reviewers.yml index f707f79737..7ab3ef568c 100644 --- a/.github/workflows/remove-reviewers.yml +++ b/.github/workflows/remove-reviewers.yml @@ -12,6 +12,7 @@ jobs: - name: 'Remove reviewers' uses: actions/github-script@v6 with: + github-token: ${{ secrets.TEAM_REVIEW }} script: | const script = require('./.github/scripts/remove-reviewers.js') await script({github, context}) |