Skip to content

perf improve

perf improve #30

name: Polka Codes Review PR Handler
on:
pull_request:
types: [opened]
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_gemini:
name: Review With Gemini 2.5 Pro
timeout-minutes: 40
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Google Auth
uses: google-github-actions/auth@v2
with:
credentials_json: ${{ secrets.GOOGLE_CREDENTIALS }}
- name: Run Polka Codes (Gemini)
uses: polka-codes/action@master
with:
pr_number: ${{ github.event.inputs.pr_number || github.event.number }}
review: true
env:
POLKA_API_PROVIDER: google-vertex
POLKA_MODEL: gemini-2.5-pro
GITHUB_TOKEN: ${{ github.token }}
GOOGLE_VERTEX_LOCATION: us-central1
GOOGLE_VERTEX_PROJECT: ${{ secrets.GOOGLE_VERTEX_PROJECT }}
review_gpt5:
name: Review With GPT-5
timeout-minutes: 40
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Run Polka Codes (GPT-5)
uses: polka-codes/action@master
with:
pr_number: ${{ github.event.inputs.pr_number || github.event.number }}
review: true
env:
POLKA_API_PROVIDER: openai
POLKA_MODEL: gpt-5-2025-08-07
GITHUB_TOKEN: ${{ github.token }}
POLKA_API_KEY: ${{ secrets.OPENAI_API_KEY }}
# Generated by polka.codes