All checks were successful
Code Review / review (pull_request) Successful in 28s
37 lines
993 B
YAML
37 lines
993 B
YAML
name: Code Review
|
|
|
|
on:
|
|
pull_request:
|
|
types: [opened, synchronize]
|
|
|
|
permissions:
|
|
contents: read
|
|
pull-requests: write
|
|
|
|
jobs:
|
|
review:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.12'
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install requests py-gitea openai anthropic google-generativeai
|
|
|
|
- name: Run Code Review
|
|
env:
|
|
CLAUDE_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
|
|
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
|
|
DEEPSEEK_API_KEY: ${{ secrets.DEEPSEEK_API_KEY }}
|
|
GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }}
|
|
PR_NUMBER: ${{ github.event.pull_request.number }}
|
|
FULL_CONTEXT_MODEL: o1
|
|
SINGLE_CHUNK_MODEL: gpt-4o
|
|
EXCLUDE: "*.yml,*.yaml"
|
|
run: python .github/scripts/code_review.py
|