2022-02-10 04:04:41 -07:00
|
|
|
name: "Request reviews"
|
|
|
|
on:
|
|
|
|
pull_request_target:
|
2022-11-06 17:42:59 -07:00
|
|
|
types: [labeled, ready_for_review, reopened]
|
2022-02-10 04:04:41 -07:00
|
|
|
jobs:
|
|
|
|
request-reviewer:
|
2022-02-13 03:45:18 -07:00
|
|
|
if: github.event.pull_request.state == 'open' && github.event.pull_request.draft == false
|
2022-02-10 04:04:41 -07:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions:
|
|
|
|
pull-requests: write
|
|
|
|
steps:
|
2022-05-20 20:45:10 -07:00
|
|
|
- uses: actions/checkout@v3
|
2022-02-11 07:09:50 -07:00
|
|
|
- name: 'Request reviewers'
|
2022-02-12 03:08:42 -07:00
|
|
|
uses: actions/github-script@v6
|
2022-02-10 04:04:41 -07:00
|
|
|
with:
|
|
|
|
script: |
|
2022-02-17 08:29:28 -07:00
|
|
|
const script = require('./.github/scripts/reviews.js')
|
2022-02-13 15:15:20 -07:00
|
|
|
await script({github, context})
|