AI PR Review #2
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 | |
| on: | |
| # pull_request: # enable this when we think this is ready | |
| # types: [opened, ready_for_review] | |
| workflow_dispatch: | |
| inputs: | |
| pr_number: | |
| description: 'PR number to review' | |
| required: true | |
| type: number | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| concurrency: | |
| group: review-pr-${{ github.event.inputs.pr_number || github.event.number }} | |
| cancel-in-progress: true | |
| jobs: | |
| review: | |
| timeout-minutes: 10 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Process PR | |
| uses: polka-codes/action@v2 | |
| with: | |
| pr_number: ${{ github.event.inputs.pr_number || github.event.number }} | |
| review: true | |
| config: .config/review.polkacodes.yml | |
| env: | |
| POLKA_API_PROVIDER: google | |
| POLKA_MODEL: gemini-3-pro-preview | |
| GITHUB_TOKEN: ${{ github.token }} | |
| POLKA_API_KEY: ${{ secrets.GEMINI_API_KEY }} | |
| POLKA_BUDGET: 5 | |