mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07:00
ef95174694
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".
19 lines
511 B
YAML
19 lines
511 B
YAML
name: "Remove reviewers"
|
|
on:
|
|
pull_request_target:
|
|
types: [converted_to_draft, closed]
|
|
jobs:
|
|
remove-reviewers:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
pull-requests: write
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- 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})
|