-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Feat/ai gen commit #2173
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
Feat/ai gen commit #2173
Conversation
|
|
@samhvw8 so you have to paste it in? |
17f32b4 to
22b8edc
Compare
|
Hello @samhvw8, Thank you for your contribution! The pull request introduces a new feature for commit suggestions, along with tests and localization updates across multiple languages. To facilitate a more focused review process, could you please consider splitting the localization changes into a separate pull request? This will help us review and merge the changes more efficiently. Thank you for your understanding and cooperation! |
22b8edc to
0593198
Compare
@hannesrudolph sad but yes, i try to use SourceControlInputBox but don't now how to use it :( |
Ahh ok thanks for the explination sir. |
|
i have worked on an ai commit, this seems like a long winded way to get the change. see below a repo i worked on, https://github.com/sitoi/ai-commit you can look at rebuilding it and registering the button to perform the task of reviewing the changes in the code base. |
Yes please! |
f3eea55 to
dc865a4
Compare
|
@bramburn @hannesrudolph i just update can you review this pr again, now i can set directly into input field |
|
Oh NICE |
|
looks good, I was implementing it too. One thing to do is add the additional settings to allow the user to use a different model to do the ai commit. Thats a bug bear of mine i don't want to use say claude 3.7 to do an AI commit. |
package.json
Outdated
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.
nice
src/activate/registerCommands.ts
Outdated
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 this pick up the right repo?
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 we can make follow up pr for this
bramburn
left a comment
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.
needs to check for instance of multi repo workspaces.
|
here is a sample patch for the settings page. |
|
Other than that, it looks like a better implementation of what I've done. I was focusing on the settings first. |
|
@bramburn cool, let me apply that Update i cannot apply it :( |
- Implemented commit message generation logic using staged diffs and file statuses. - Added error handling and progress notification during commit suggestion generation. - Updated support-prompt template to include commit message format and considerations.
…internationalization support
…and improve commit message setting logic
49a5c63 to
7234d1f
Compare
|
Thanks for your PR! We're closing this one because we'd prefer the commit message suggestion feature to be embedded directly into the "Generate Commit Message" button rather than implemented indirectly. For future contributions, please follow our issue-first approach. This helps us clearly discuss and approve changes before implementation. We appreciate your effort and would be happy to see more contributions from you! |
Context
follow up with PR #827
Implementation
Video
https://www.loom.com/share/d037e22619c84de78f51b84c22c88edf?sid=6b402038-097b-4353-b494-9568f3a6b92e
How to Test
Get in Touch
Important
Adds a new command to generate commit messages based on staged changes, with supporting functionality, tests, and localization updates.
roo-cline.commitSuggestioncommand inpackage.jsonandregisterCommands.tsto generate commit messages based on staged changes.scmProviderisgitandgit.stateisinitialized.generateCommitSuggestion()incommitSuggestion.tsto create commit messages using staged diffs and status.supportPrompt.create()withCOMMITtype to format commit messages.commitSuggestion.test.tsforgenerateCommitSuggestion()covering scenarios like no staged changes, successful generation, and error handling.git.test.tsforgetStagedDiff()andgetStagedStatus()functions.prompts.jsonfiles in multiple locales to include descriptions for the newCOMMITfeature.This description was created by
for 17f32b401cb6384a1e79a4c70985bb5f0c0020c1. It will automatically update as commits are pushed.