Review-copilot action tests #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |