-
Notifications
You must be signed in to change notification settings - Fork 731
Add configuration for GCA and draft coding style. #481
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
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| # Gemini Configuration | ||
|
|
||
| This directory (`.gemini/`) contains configuration and context files for Google's Gemini tools, including: | ||
|
|
||
| - **`gemini-cli`**: The command-line interface for Gemini. | ||
| - **Gemini Code Assist**: An AI-powered assistant that integrates with GitHub and IDEs and provides for automated code reviews, among other features. | ||
|
|
||
| The files in this directory are used to customize the behavior of these tools for this specific repository. | ||
|
|
||
| - **`GEMINI.md`**: Provides project-specific context, instructions, and guidelines that are included in the context when using Gemini CLI and Code Assist. This helps the AI understand the project's conventions and requirements. | ||
| - **`config.yaml`**: Configuration for the Gemini for GitHub tools, such as settings for code review. | ||
| - **`styleguide.md`**: Contains the project's style guide, which is used by the Gemini for Github tools to ensure that generated reviews adhere to the project's conventions. | ||
| - **`commands/`**: A directory containing custom command definitions (e.g., `fix_code.toml`) for the Gemini CLI. | ||
|
|
||
| ## Documentation | ||
|
|
||
| - [Gemini CLI Documentation](https://github.com/google-gemini/gemini-cli) | ||
| - [Gemini Code Assist Documentation](https://cloud.google.com/products/gemini/code-assist) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| # Copyright 2025 Google LLC | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # https://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| # The bot is less goofy with this off. We don't need poems in the summary... | ||
| have_fun: false | ||
| code_review: | ||
| disable: false | ||
| # Set to -1 for unlimited comments. | ||
| max_review_comments: 6 | ||
| # For now, use the default of MEDIUM for testing. Based on desired verbosity, | ||
| # we can change this to LOW or HIGH in the future. | ||
| comment_severity_threshold: MEDIUM | ||
| pull_request_opened: | ||
| # Explicitly set help to false in case the default changes in the future, as | ||
| # having a help message on every PR would be spammy. | ||
| help: false | ||
| # These tend to be verbose, and since we expect PR authors to clearly | ||
| # describe their PRs this would be at best duplicative. | ||
| summary: false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| { | ||
| "context": { | ||
| "fileName": ["GEMINI.md"] | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| # A2UI Style Guide | ||
|
|
||
| ## Introduction | ||
|
|
||
| This style guide outlines the coding conventions for contributions to this repository. | ||
|
|
||
| ## Style Guides | ||
|
|
||
| Code should follow the relevant style guides, and use the correct | ||
| auto-formatter, for each language, as described in | ||
| [the repository contributing guide's Style section](../STYLE_GUIDE.md). | ||
|
|
||
| ## Best Practices | ||
|
|
||
| - Code should follow the guidance and principles described in | ||
| [the A2UI contribution guidelines](../CONTRIBUTING.md). | ||
| - If there are code changes, code should have tests. | ||
| - PR descriptions should include the Pre-Review Checklist from | ||
| [the PR template](https://github.com/flutter/genui/blob/main/.github/PULL_REQUEST_TEMPLATE.md), | ||
| with all of the steps completed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| # Description | ||
|
|
||
| _Replace this paragraph with a description of what this PR is changing or adding, and why. Consider including before/after screenshots._ | ||
|
|
||
| _List which issues are fixed by this PR. For larger changes, raising an issue first helps reduce redundant work._ | ||
|
|
||
| ## Pre-launch Checklist | ||
|
|
||
| - [ ] I signed the [CLA]. | ||
| - [ ] I read the [Contributors Guide]. | ||
| - [ ] I read the [Style Guide]. | ||
| - [ ] I have added updates to the [CHANGELOG]. | ||
| - [ ] I updated/added relevant documentation. | ||
| - [ ] My code changes (if any) have tests. | ||
|
|
||
| If you need help, consider asking for advice on the [discussion board]. | ||
|
|
||
| <!-- Links --> | ||
|
|
||
| [CHANGELOG]: ../CHANGELOG.md | ||
| [CLA]: https://cla.developers.google.com/ | ||
| [Contributors Guide]: ../CONTRIBUTING.md | ||
| [discussion board]: https://github.com/google/A2UI/discussions | ||
| [Style Guide]: ../STYLE_GUIDE.md | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
The link to the style guide appears to be incorrect. This pull request adds
CODING_STYLE.md, but this link points toSTYLE_GUIDE.md. Please update the link to point to the correct file to avoid confusion for contributors.