aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2022-03-31 15:38:26 -0400
committerGitHub <noreply@github.com>2022-03-31 15:38:26 -0400
commitdbcb76bd7a803dff82bb12b4e452ee34d2a67c09 (patch)
tree9af8178f53a399847bd0fb1e51342ec438c8098e /.github/workflows
parent68c0e90189b54d14bf9f901e516ef90642d7fb74 (diff)
parentda3ef2a53801c6b4dea186000826e91de8494e1c (diff)
downloadrneovim-dbcb76bd7a803dff82bb12b4e452ee34d2a67c09.tar.gz
rneovim-dbcb76bd7a803dff82bb12b4e452ee34d2a67c09.tar.bz2
rneovim-dbcb76bd7a803dff82bb12b4e452ee34d2a67c09.zip
Merge pull request #17888 from dundargoc/ci/remove-reviewers-when-drafting
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/remove-reviewers-on-draft.yml17
1 files changed, 17 insertions, 0 deletions
diff --git a/.github/workflows/remove-reviewers-on-draft.yml b/.github/workflows/remove-reviewers-on-draft.yml
new file mode 100644
index 0000000000..64474618b8
--- /dev/null
+++ b/.github/workflows/remove-reviewers-on-draft.yml
@@ -0,0 +1,17 @@
+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@v2
+ - name: 'Remove reviewers'
+ uses: actions/github-script@v6
+ with:
+ script: |
+ const script = require('./.github/scripts/remove-reviewers.js')
+ await script({github, context})