forked from scs-sandbox/VAmPI
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (35 loc) · 1.24 KB
/
review-copilot.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
44
45
name: Review Co-Pilot
on:
pull_request:
types: [reopened, opened, synchronize]
jobs:
review-copilot:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install GitHub API library
run: |
python -m pip install --upgrade pip
pip install PyGithub
- name: Install pipx
run: |
python -m pip install --upgrade pip
python -m pip install pipx
- name: Install Review Copilot
run: |
pipx install "git+https://${{ secrets.REVIEW_COPILOT_KEY }}@github.com/scs-sandbox/review-copilot.git@698c3d7c7f9a9ff3ce74e7eaf662f9c5584ba6b2"
- name: Run Review Copilot
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ACCESS_KEY: ${{ secrets.REVIEW_COPILOT_ACCESS_KEY }}
SECRET_ACCESS_KEY: ${{ secrets.REVIEW_COPILOT_SECRET_ACCESS_KEY }}
STAGE: "prod"
run: |
REPO_NAME="${{ github.repository }}"
PR_NUMBER="${{ github.event.pull_request.number }}"
review-copilot review $REPO_NAME $PR_NUMBER