-
Notifications
You must be signed in to change notification settings - Fork 12
feat: integrate Gemini with GitHub #3228
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
🤖 Gemini 2.5 Flash Code ReviewAs a Senior Software Engineer, I've reviewed the proposed changes for integrating a Gemini AI Code Review into your GitHub Actions workflow. Overall, this is a well-structured and promising addition. Here are my observations focusing on potential bugs, security, and readability: General CommentsThe setup is quite clean, and the script handles API interactions and basic error checking effectively. The idea of truncating large diffs is a practical approach to avoid hitting API limits.
|
3d68f96 to
bba4ba3
Compare
scripts/review_pr.py
Outdated
| Format your response in Markdown. Be concise and constructive. | ||
|
|
||
| Diff: | ||
| {diff_text} |
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.
Does it make much sense to review only the "diff" without having the whole codebase as context?
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.
Yes, but we have many limitation to send all codebase, lets try this "light" option as "Super Linter" with advances
Later we cantry The Official Integration:
If you have a Google Cloud or Gemini Code Assist license, you can simply install the official app.
Go to the GitHub Marketplace.
Search for Gemini Code Assist.
Install it on your organization or repository.
It will automatically start adding "Summaries" to your Pull Requests and allow you to use /gemini commands in comments.
e9bfad7 to
52845b7
Compare
d78d2b1 to
a36c016
Compare
|
|
||
| # Files to completely ignore (won't be sent to Gemini) | ||
| IGNORE_PATTERNS = [ | ||
| "**/*.g.dart", |
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.
hmmm, maybe add svgs as well?
| - Ensure async callbacks do not update state after dispose (mounted checks) | ||
|
|
||
| 2. **Null Safety & Error Handling** | ||
| - Verify null-aware operators (?., ??) are used correctly |
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.
I think linters already do that
a36c016 to
1c960d4
Compare
Description
integrate Gemini with GitHub
Additional Notes
Task ID
Type of Change
Screenshots (if applicable)