Skip to content

chore: add automated Gemini PR review workflow - #10

Draft
robertoDiaz wants to merge 2 commits into
masterfrom
chore/gemini-pr-review
Draft

chore: add automated Gemini PR review workflow#10
robertoDiaz wants to merge 2 commits into
masterfrom
chore/gemini-pr-review

Conversation

@robertoDiaz

Copy link
Copy Markdown
Collaborator

Summary

  • Adds .github/workflows/gemini-review.yml: runs google-github-actions/run-gemini-cli with the official code-review extension on every PR (opened/reopened/synchronize), posting an automated review comment.
  • Uses org-level secret GEMINI_PR_REVIEWER (Gemini API key).
  • Skips forked PRs (head.repo.fork == false) for security.
  • .gitignore: added .gemini/ and gha-creds-*.json per upstream setup docs.

Adapted from the official google-github-actions/run-gemini-cli examples/workflows/pr-review template — trimmed the dispatch/triage/invoke/approve machinery since only automatic PR review was requested, and dropped the GCP/Vertex/Workload-Identity/GitHub-App inputs since this setup uses a plain Gemini API key + default GITHUB_TOKEN.

Test plan

  • Open/update a PR and confirm the Gemini review comment appears within a few minutes
  • Confirm workflow is skipped on PRs from forks

Triggers on pull_request (opened/reopened/synchronize), runs
google-github-actions/run-gemini-cli with the code-review extension
to post an automated review on every PR. Requires GEMINI_API_KEY
(already set at the CartAI-Labs org level).
@robertoDiaz robertoDiaz reopened this Jul 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant