26 lines
676 B
YAML
26 lines
676 B
YAML
name: "Gemini AI PR Review"
|
|
|
|
on:
|
|
pull_request:
|
|
types: [opened, synchronize, reopened]
|
|
|
|
permissions:
|
|
pull-requests: write
|
|
contents: read
|
|
|
|
jobs:
|
|
review:
|
|
name: "Code Review"
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout Repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Gemini AI Review
|
|
uses: petarzarkov/gemini-code-review-action@latest # Using latest version tag
|
|
with:
|
|
gemini_api_key: ${{ secrets.GEMINI_API_KEY }}
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
# You can add custom prompt instructions here if needed:
|
|
# prompt: "You are a senior software engineer. Review this PR..."
|