Skip to content

Commit 256c196

Browse files
authored
Add Gemini PR reviewer to GitHub workflows (#7507)
1 parent 6447532 commit 256c196

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/code-review.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Gemini Code Review
2+
3+
on:
4+
pull_request_target:
5+
types: [opened, synchronize] # Only run on pull requests that are opened or updated
6+
7+
jobs:
8+
review:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: read
12+
pull-requests: write
13+
id-token: write
14+
steps:
15+
- name: Checkout pull request branch
16+
uses: actions/checkout@v4
17+
with:
18+
ref: ${{ github.event.pull_request.head.sha }} # Use the head SHA of the pull request
19+
- uses: sshnaidm/gemini-code-review-action@v1
20+
with:
21+
gemini-key: ${{ secrets.GEMINI_API_KEY }}

0 commit comments

Comments
 (0)