2023-11-12 13:40:24 -07:00
|
|
|
name: "reviewers: add"
|
2022-02-10 04:04:41 -07:00
|
|
|
on:
|
|
|
|
pull_request_target:
|
2022-11-06 17:42:59 -07:00
|
|
|
types: [labeled, ready_for_review, reopened]
|
2023-04-22 14:28:39 -07:00
|
|
|
workflow_call:
|
2022-02-10 04:04:41 -07:00
|
|
|
jobs:
|
|
|
|
request-reviewer:
|
2024-09-13 04:24:44 -07:00
|
|
|
if: github.event.pull_request.state == 'open' && github.event.pull_request.draft == false && !endsWith(github.actor, '[bot]')
|
2022-02-10 04:04:41 -07:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions:
|
|
|
|
pull-requests: write
|
|
|
|
steps:
|
2023-09-04 05:51:40 -07:00
|
|
|
- uses: actions/checkout@v4
|
2022-02-11 07:09:50 -07:00
|
|
|
- name: 'Request reviewers'
|
2023-11-14 21:57:54 -07:00
|
|
|
uses: actions/github-script@v7
|
2022-02-10 04:04:41 -07:00
|
|
|
with:
|
|
|
|
script: |
|
2023-11-12 13:40:24 -07:00
|
|
|
const script = require('./.github/scripts/reviewers_add.js')
|
2022-02-13 15:15:20 -07:00
|
|
|
await script({github, context})
|