Skip to content

Commit

Permalink
ci: Add presubmit AI reviews
Browse files Browse the repository at this point in the history
  • Loading branch information
iluwatar committed Jan 12, 2025
1 parent b419f84 commit 1bfdf21
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Presubmit.ai

permissions:
contents: read
pull-requests: write
issues: write

on:
pull_request:
pull_request_review_comment:
types: [created]

jobs:
review:
runs-on: ubuntu-latest
steps:
- name: Check required secrets
run: |
if [ -z "${{ secrets.LLM_API_KEY }}" ]; then
echo "Error: LLM_API_KEY secret is not configured"
exit 1
fi
- uses: presubmit/ai-reviewer@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
LLM_API_KEY: ${{ secrets.LLM_API_KEY }}
LLM_MODEL: "gemini-1.5-flash"

0 comments on commit 1bfdf21

Please sign in to comment.