mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-14 08:18:23 +00:00
chore: Update presubmit.ai configuration
This commit is contained in:
1 parent
0ab60190ea
commit
08651d0a00
1 file changed
+4
-11
@@ -6,9 +6,9 @@ permissions:
|
|||||||
issues: write
|
issues: write
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request_target: # Handle forked repository PRs in the base repository context
|
pull_request_target:
|
||||||
types: [opened, synchronize]
|
types: [opened, synchronize]
|
||||||
pull_request_review_comment: # Handle review comments
|
pull_request_review_comment:
|
||||||
types: [created]
|
types: [created]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@@ -21,15 +21,8 @@ jobs:
|
|||||||
echo "Error: LLM_API_KEY secret is not configured"
|
echo "Error: LLM_API_KEY secret is not configured"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
- uses: presubmit/ai-reviewer@latest
|
||||||
- name: Check out PR code
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
with:
|
|
||||||
ref: ${{ github.event.pull_request.head.sha }}
|
|
||||||
|
|
||||||
- name: Run AI Reviewer
|
|
||||||
uses: presubmit/ai-reviewer@latest
|
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
LLM_API_KEY: ${{ secrets.LLM_API_KEY }}
|
LLM_API_KEY: ${{ secrets.LLM_API_KEY }}
|
||||||
LLM_MODEL: "gemini-1.5-flash"
|
LLM_MODEL: "gpt-5-nano"
|
||||||
Reference in new issue
Block a user