reviews.yml 544 B

12345678910111213141516171819
  1. name: "Request reviews"
  2. on:
  3. pull_request_target:
  4. types: [labeled, ready_for_review]
  5. jobs:
  6. request-reviewer:
  7. if: github.event.pull_request.state == 'open' && github.event.pull_request.draft == false
  8. runs-on: ubuntu-latest
  9. permissions:
  10. pull-requests: write
  11. steps:
  12. - uses: actions/checkout@v2
  13. - name: 'Request reviewers'
  14. uses: actions/github-script@v6
  15. with:
  16. script: |
  17. const script = require('./.github/scripts/reviews.js')
  18. await script({github, context})