-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
32 lines (28 loc) · 1 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
32
on:
pull_request:
types: [opened, synchronize, reopened]
branches:
- "18.0"
jobs:
run:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install GitHub CLI
run: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key C99B11DEB97541F0 && \
sudo apt-add-repository https://cli.github.com/packages && \
sudo apt update && \
sudo apt install gh -y
- name: Authenticate GitHub CLI
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: gh auth login --with-token <<< "$GH_TOKEN"
- name: Assign reviewer
env:
REVIEWER: "rycks" # Remplacez par le nom d'utilisateur GitHub du reviewer
run: |
pr_number=$(jq --raw-output .number < $GITHUB_EVENT_PATH)
gh pr edit $pr_number --add-reviewer "$REVIEWER"
#gh pr edit "$url" --add-assignee lvessiller-opendsi,rycks --add-reviewer lvessiller-opendsi,rycks
#gh pr merge "$url" --merge --auto