updata ga tag #20
Workflow file for this run
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: PR Tool Review | |
on: | |
pull_request_target: | |
types: [labeled] | |
jobs: | |
review: | |
if: github.event.label.name == 'run-tests' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out base repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
- name: Install poetry | |
run: | | |
curl -sSL https://install.python-poetry.org | python3 | |
poetry --version | |
poetry install --all-extras | |
- name: Run PR Review Tool | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
OPENAI_BASE_URL: ${{ vars.OPENAI_BASE_URL }} | |
OPENAI_MODEL_NAME: ${{ vars.OPENAI_MODEL_NAME }} | |
PR_NUMBER: ${{ github.event.pull_request.number }} | |
REPO_NAME: ${{ github.repository }} | |
# Optionally, specify a custom review checks file: | |
# PR_REVIEW_CHECKS_PATH: ".github/scripts/my_custom_checks.py" | |
run: | | |
poetry run python .github/scripts/review_pr.py |