Skip to content

Commit 1bfdf21

Browse files
committed
ci: Add presubmit AI reviews
1 parent b419f84 commit 1bfdf21

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/presubmit.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Presubmit.ai
2+
3+
permissions:
4+
contents: read
5+
pull-requests: write
6+
issues: write
7+
8+
on:
9+
pull_request:
10+
pull_request_review_comment:
11+
types: [created]
12+
13+
jobs:
14+
review:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Check required secrets
18+
run: |
19+
if [ -z "${{ secrets.LLM_API_KEY }}" ]; then
20+
echo "Error: LLM_API_KEY secret is not configured"
21+
exit 1
22+
fi
23+
- uses: presubmit/ai-reviewer@latest
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26+
LLM_API_KEY: ${{ secrets.LLM_API_KEY }}
27+
LLM_MODEL: "gemini-1.5-flash"

0 commit comments

Comments
 (0)