Skip to content

AI PR Reviewer

AI PR Reviewer #5

Workflow file for this run

name: AI PR Reviewer
permissions:
contents: read
pull-requests: write
on:
pull_request:
types: [opened, synchronize, reopened]
pull_request_review_comment:
types: [created]
concurrency:
group:
${{ github.repository }}-${{ github.event.number || github.head_ref ||
github.sha }}-${{ github.workflow }}-${{ github.event_name ==
'pull_request_review_comment' && 'pr_comment' || 'pr' }}
cancel-in-progress: ${{ github.event_name != 'pull_request_review_comment' }}
jobs:
review:
runs-on: ubuntu-latest
steps:
- name: Generate installation token
id: generate-token
uses: tibdex/github-app-token@v1
with:
app_id: 800935
private_key: ${{ secrets.CODE_REVIEW_APP_PRIVATE_KEY }}
installation_id: 46310774
- name: AI PR Reviewer
uses: Onigam/[email protected]
env:
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
OPENAI_API_KEY: ${{ secrets.MISTRAL_API_KEY }}
with:
debug: false
openai_base_url: 'https://api.mistral.ai/v1'
openai_light_model: 'mistral-small'
openai_heavy_model: 'mistral-small'