-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (38 loc) · 1.53 KB
/
request_review.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Request Review on PR Open
on:
pull_request:
types: [opened]
jobs:
automate-review:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: Get PR Author
id: pr_author
run: echo "::set-output name=author::${{ github.event.pull_request.user.login }}"
- name: Request Review
if: steps.pr_author.outputs.author == 'stardustmeg'
uses: octokit/[email protected]
with:
route: POST /repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/requested_reviewers
mediaType: '{"previews":["luke-cage"]}'
token: ${{ secrets.GITHUB_TOKEN }}
reviewers: '["Kleostro", "YulikK"]'
- name: Request Review
if: steps.pr_author.outputs.author == 'Kleostro'
uses: octokit/[email protected]
with:
route: POST /repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/requested_reviewers
mediaType: '{"previews":["luke-cage"]}'
token: ${{ secrets.GITHUB_TOKEN }}
reviewers: '["stardustmeg", "YulikK"]'
- name: Request Review
if: steps.pr_author.outputs.author == 'YulikK'
uses: octokit/[email protected]
with:
route: POST /repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/requested_reviewers
mediaType: '{"previews":["luke-cage"]}'
token: ${{ secrets.GITHUB_TOKEN }}
reviewers: '["stardustmeg", "Kleostro"]'