[OPTIONAL - requires Gemini CLI] Get Gemini AI code review and post as PR comment
Uses Gemini CLI to review PR diffs and posts AI-generated feedback as comments.
/plugin marketplace add sharpner/claude-agents/plugin install workflow-core@sharpner-claude-agentsRun Gemini code review for the current PR using Gemini CLI.
BRANCH=$(git branch --show-current)
PR_NUMBER=$(gh pr list --head "$BRANCH" --json number --jq '.[0].number')
gh pr diff $PR_NUMBER
./scripts/gemini-review.sh $PR_NUMBER
Or manually with inline prompt:
gh pr diff $PR_NUMBER | gemini "Review this unified diff format. Note: 'diff --git a/file b/file' are headers, NOT code. Review for: security vulnerabilities, error handling, type safety, architecture issues. Be specific with file:line references. Format as markdown."
gh pr comment $PR_NUMBER --body "$(cat review-output.md)"
gemini) - Install: https://github.com/google-gemini/gemini-cli