1.6 KiB
1.6 KiB
The Core Commands
/reviewAsks Gemini to read the entire PR diff and provide a structured summary, score the PR, identify potential bugs, and suggest high-level fixes./describeAutomatically rewrites the PR's title and description based on the actual code changes. (Great for when you just want to push code and not write documentation)./improveScans the code and provides actionable, copy-pasteable snippets to improve the code, focusing on performance, security, and best practices./ask "<your question>"Turns the PR comment section into a chat window. It uses the PR diff as context. Example:/ask "Did I properly handle the null pointer edge cases in the new database function?"
Specialized Tools
/testAsks the AI to generate unit tests specifically tailored for the new or modified code in the PR./update_changelogAutomatically drafts an update for yourCHANGELOG.mdfile based on the PR's contents./generate_labelsAnalyzes the code changes and recommends appropriate labels for the PR (e.g.,bug,enhancement,refactor)./helpForces the bot to reply with a quick cheat sheet of all available commands and usage instructions in case you forget them.
Pro-Tip: Steering the AI
You can actually pass arguments directly to the commands to give Gemini specific instructions for that specific run.
For example, if you want a review but want it to be hyper-paranoid about security, you can type:
/review --pr_reviewer.extra_instructions="Focus heavily on potential security vulnerabilities and SQL injection risks."