Generate smart pull request titles and descriptions from your Git diff using Google Gemini ✨
- Instantly generate concise, meaningful pull request titles and detailed descriptions from your current Git diff.
- Uses Google Gemini (via the official API) for high-quality, context-aware summaries.
- Ignores changes related only to environment variable values for cleaner PRs.
- Output is shown in a dedicated VS Code Output panel for easy copy-paste.
- Open a Git repository in VS Code.
- Make your code changes and commit as usual.
- Run the command:
PatchMind: Generate Pull Request Summary(search in Command Palette). - View your AI-generated PR title and description in the "PatchMind PR Summary" output panel.
-
Node.js v18 or later
-
A Google Gemini API key (get one for free)
-
Add your API key to a
.envfile at the root of your project:GEMINI_API_KEY=your-key-here
No custom settings. All configuration is via your .env file.
- Only works in Git repositories.
- Requires a remote branch named
dev(or edit the code to change the base branch). - Large diffs may hit Gemini API limits.
- Initial release: Generate PR summaries with Gemini.
Enjoy using PatchMind!