We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bfdf21 commit fee3c43Copy full SHA for fee3c43
1 file changed
.github/workflows/presubmit.yml
@@ -6,8 +6,9 @@ permissions:
6
issues: write
7
8
on:
9
- pull_request:
10
- pull_request_review_comment:
+ pull_request_target: # Handle forked repository PRs in the base repository context
+ types: [opened, synchronize]
11
+ pull_request_review_comment: # Handle review comments
12
types: [created]
13
14
jobs:
@@ -20,7 +21,14 @@ jobs:
20
21
echo "Error: LLM_API_KEY secret is not configured"
22
exit 1
23
fi
- - uses: presubmit/ai-reviewer@latest
24
+
25
+ - name: Check out PR code
26
+ uses: actions/checkout@v3
27
+ with:
28
+ ref: ${{ github.event.pull_request.head.sha }}
29
30
+ - name: Run AI Reviewer
31
+ uses: presubmit/ai-reviewer@latest
32
env:
33
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34
LLM_API_KEY: ${{ secrets.LLM_API_KEY }}
0 commit comments