-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
31 lines (31 loc) · 1.04 KB
/
pr-18.yaml
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
on:
pull_request:
#types:
# - opened
branches:
- "18.0"
permissions: write-all
#pull-requests: write
jobs:
run:
runs-on: ubuntu-22.04
steps:
- name: Create PR review request
continue-on-error: true
env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ github.token }}
# GH_TOKEN: ${{ github.token }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# GH_TOKEN: ${{ secrets.AUTOMATION_TOKEN }}
url: ${{ github.event.pull_request.html_url }}
run: |
# https://cli.github.com/manual/gh_api
gh api \
--method POST \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/requested_reviewers \
-f "reviewers[]=eldy"
#gh pr edit "$url" --add-assignee lvessiller-opendsi,rycks --add-reviewer lvessiller-opendsi,rycks
#gh pr merge "$url" --merge --auto