remove-reviewers-on-draft.yml 460 B

123456789101112131415161718
  1. name: "Remove reviewers"
  2. on:
  3. pull_request_target:
  4. types: [converted_to_draft, closed]
  5. jobs:
  6. remove-reviewers:
  7. runs-on: ubuntu-latest
  8. permissions:
  9. pull-requests: write
  10. steps:
  11. - uses: actions/checkout@v3
  12. - name: 'Remove reviewers'
  13. uses: actions/github-script@v6
  14. with:
  15. script: |
  16. const script = require('./.github/scripts/remove-reviewers.js')
  17. await script({github, context})