aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/labeler.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/labeler.yml')
-rw-r--r--.github/workflows/labeler.yml19
1 files changed, 11 insertions, 8 deletions
diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml
index 08f0ce1763..736b8ae630 100644
--- a/.github/workflows/labeler.yml
+++ b/.github/workflows/labeler.yml
@@ -31,14 +31,17 @@ jobs:
- name: "Extract commit scope and add as label"
run: gh pr edit "$PR_NUMBER" --add-label "$(echo "$PR_TITLE" | sed -E 's|[[:alpha:]]+\((.+)\)!?:.*|\1|')" || true
- upload-pr-number:
+ request-reviewer:
+ if: github.event.pull_request.state == 'open' && github.event.pull_request.draft == false
runs-on: ubuntu-latest
+ needs: ["triage", "type-scope"]
+ permissions:
+ pull-requests: write
steps:
- - name: Save PR number
- run: |
- mkdir -p pr
- echo ${{ github.event.number }} > pr/pr_number
- - uses: actions/upload-artifact@v2
+ - run: wget https://raw.githubusercontent.com/neovim/neovim/master/ci/reviews.js
+ - name: 'Request reviewers'
+ uses: actions/github-script@v6
with:
- name: pr_number
- path: pr/
+ script: |
+ const script = require('./reviews.js')
+ await script({github, context})