- Notifications
You must be signed in to change notification settings - Fork199
feat(gemini): add support for gemini code assist#51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Hello@fmind, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!
Summary of Changes
This pull request introduces support for Gemini Code Assist, an AI assistant designed to increase coding productivity, provide code suggestions, and reduce code review time. It includes a configuration file (.gemini/config.yaml) to customize Gemini's behavior and updates theREADME.md file to document the new feature, its motivations, limitations, and alternatives.
Highlights
- Gemini Code Assist Integration: Adds initial configuration and documentation for Gemini Code Assist.
- Configuration File: Introduces
.gemini/config.yamlto configure Gemini Code Assist's behavior, including disabling code reviews, setting comment severity thresholds, and enabling/disabling features for pull request events. - README Update: Updates
README.mdto include a section on Gemini Code Assist, outlining its motivations, limitations, and alternatives.
Changelog
Click here to see the changelog
- .gemini/config.yaml
- Creates a new configuration file to customize Gemini Code Assist behavior.
- Configures code review settings, including disabling reviews and setting comment severity thresholds.
- Enables summary and code review features for pull request opened events.
- README.md
- Adds a section for Gemini Code Assist under the 'Tools' -> 'Automation' section.
- Describes the motivations for using Gemini Code Assist, such as increased productivity and code suggestion.
- Outlines the limitations of Gemini Code Assist, including the potential for generating incorrect code or reviews.
- Adds a section for Dependabot under the 'Tools' -> 'Automation' section.
- Describes the motivations for using Dependabot, such as avoiding security issues and breaking changes.
- Outlines the limitations of Dependabot, including the potential for breaking code.
Using Gemini Code Assist
The full guide for Gemini Code Assist can be found on ourdocumentation page, here are some quick tips.
Invoking Gemini
You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either/gemini <command> or@gemini-code-assist <command>. Below is a summary of the supported commands.
| Feature | Command | Description |
|---|---|---|
| Code Review | /gemini review | Performs a code review for the current pull request in its current state. |
| Pull Request Summary | /gemini summary | Provides a summary of the current pull request in its current state. |
| Comment | @gemini-code-assist | Responds in comments when explicitly tagged, both in issue comments and review comments. |
| Help | /gemini help | Displays a list of available commands. |
Customization
To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a.gemini/ folder in the base of the repository. Detailed instructions can be foundhere.
Limitations & Feedback
Gemini Code Assist is currently in preview and may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on@gemini-code-assist comments to provide feedback.
You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with theGemini Code Assist IDE Extension.
Trivia time!
What company developed Gemini Code Assist?
Click here for the answer
Google developed Gemini Code Assist.
Footnotes
Review thePrivacy Notices,Generative AI Prohibited Use Policy,Terms of Service, and learn how to configure Gemini Code Assist in GitHubhere. Gemini can make mistakes, so double check it anduse code with caution.↩
b0cf212 intov4.1.0Uh oh!
There was an error while loading.Please reload this page.
Warning Gemini encountered an error creating the review. You can try again by commenting |
Closes#48