Repository navigation
Add Custom Actions support with periodic sync and UI integration #3
This file contains hidden or 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: AI PR Review | ||
|
Check warning on line 1 in .github/workflows/ai-review.yml
|
||
| on: | ||
| pull_request_target: | ||
| branches: [main] | ||
| types: [opened, synchronize, reopened, ready_for_review] | ||
| permissions: | ||
| contents: read | ||
| pull-requests: write | ||
| concurrency: | ||
| group: ai-review-${{ github.event.pull_request.number }} | ||
| cancel-in-progress: true | ||
| jobs: | ||
| review: | ||
| if: github.event.pull_request.draft == false | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 10 | ||
| steps: | ||
| # Match the trusted workflow revision, even when the PR base SHA predates | ||
| # installation of the review script. Never checkout the PR head. | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| ref: ${{ github.workflow_sha }} | ||
| persist-credentials: false | ||
| - name: Review PR | ||
| env: | ||
| GITHUB_TOKEN: ${{ github.token }} | ||
| OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }} | ||
| GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }} | ||
| DEEPSEEK_API_KEY: ${{ secrets.DEEPSEEK_API_KEY }} | ||
| OPENROUTER_MODEL: ${{ vars.AI_REVIEW_OPENROUTER_MODEL }} | ||
| GROQ_MODEL: ${{ vars.AI_REVIEW_GROQ_MODEL }} | ||
| DEEPSEEK_MODEL: ${{ vars.AI_REVIEW_DEEPSEEK_MODEL }} | ||
| run: python3 scripts/ai-review/review.py | ||