Some merge#6
Conversation
Experimental agent
Added permissions for issues and pull requests.
Updated AI Review Agent to use the new Client from google.genai and improved initialization comments.
Added a new section on 'Nit Picking' to address the use of keywords.
Ai test/testing rules
Removed unnecessary comments from TestView class.
/gemini
Summary of ChangesHello @cj-radcliff, 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! This pull request primarily focuses on modernizing the AI review agent script by integrating it with the latest Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Changelog
Ignored Files
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
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 Limitations & Feedback Gemini Code Assist 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. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
| @@ -4,6 +4,11 @@ class TestView extends StatefulWidget { | |||
| // Violation 1: Missing 'const' on constructor for a stateless-style widget | |||
| TestView({Key? key}) : super(key: key); | |||
There was a problem hiding this comment.
Violation of 1. Widget Performance & Lifecycle - Const Constructors: The TestView constructor should be marked const as it only takes a Key? key parameter, which is a constant expression. Marking constructors const for widgets with immutable parameters allows Flutter to optimize rebuilds.
| // Violation 1: Missing 'const' on constructor for a stateless-style widget | ||
| TestView({Key? key}) : super(key: key); | ||
|
|
||
| // stupid comment. okease delete |
There was a problem hiding this comment.
This comment ('// stupid comment. okease delete') is unprofessional and adds no value to the codebase. Please remove it entirely.
| // stupid comment. okease delete | ||
| // todo | ||
|
|
||
| // some other commit |
There was a problem hiding this comment.
This comment ('// some other commit') appears to be a leftover from development or version control and should be removed to maintain code clarity and professionalism.
|
✅ AI Review complete. Reassigning to @cj-radcliff for final review. |
There was a problem hiding this comment.
Code Review
The pull request updates the AI review agent to use the new google-genai SDK and modifies the project's AI standards. While the migration to the new SDK is a positive step, there are several issues that need to be addressed: an invalid model name is used in the API call, debug code was left in the script, and placeholder comments were added to the Flutter code. Additionally, some unprofessional and incomplete content was added to the documentation.
| model = genai.GenerativeModel('gemini-1.5-pro') | ||
| response = model.generate_content(prompt) | ||
| response = client.models.generate_content( | ||
| model='gemini-2.5-flash', |
There was a problem hiding this comment.
| * ** | ||
|
|
||
| ## 6. Nit Picking | ||
| * **Foo:** Use of foo or Bar as keywords is offensive to the FooBar people and should be avoided at all costs. |
| // stupid comment. okease delete | ||
| // todo | ||
|
|
||
| // some other commit | ||
|
|
| for model in client.models.list(): | ||
| print(f"Name: {model.name}") | ||
| print(f"Description: {model.description}\n") |
/gemini