forked from scs-sandbox/VAmPI
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (32 loc) · 1.21 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
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 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"
- name: Run Review Copilot
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.REVIEW_COPILOT_ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.REVIEW_COPILOT_SECRET_ACCESS_KEY }}
BEDROCK_KNOWLEDGE_BASE_ID: ${{ secrets.REVIEW_COPILOT_BEDROCK_KNOWLEDGE_BASE_ID }}
LANGCHAIN_API_KEY: ${{ secrets.REVIEW_COPILOT_LANGSMITH_API_KEY }}
run: |
REPO_NAME="${{ github.repository }}"
PR_NUMBER="${{ github.event.pull_request.number }}"
review-copilot review $REPO_NAME $PR_NUMBER