-
Notifications
You must be signed in to change notification settings - Fork 286
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
[Feature]: Custom Commit Messages with OpenAI Enhancement (-m Flag) #294
Comments
Stale issue message |
great idea, sometimes it cant understand why the change was made, this can solve it |
Great feature. @JumpLink would you like to propose a PR? I've outlined a few things to consider and implementation steps to get you started. To implement the new -m flag feature in OpenCommit, which allows users to specify their own commit message for enhancement by an LLM, you'll need to follow several steps. This feature involves integrating a new command-line flag, processing the user's input, and leveraging the LLM to enhance the commit message. Here's a guide to help you get started: Understanding the Current Architecture
Integrating the -m Flag
Leveraging Existing Functionality
Testing and Compatibility
Initial Steps
You should be able to successfully implement the new -m flag feature in OpenCommit. We'll provide you with assistance once you (or someone else) creates a PR. |
Description
TAdd a new flag,
-m
, which allows users to specify their own commit message as a basis. OpenCommit will then enhance and improve this user-provided message using the LLM.Suggested Solution
The addition of the -m flag would provide users with greater control and personalization over their commit messages while still benefiting from OpenAI's powerful language capabilities. Here's how the proposed feature would work:
oco -m "Implement feature X"
OpenCommit will accept the user-provided message as the initial commit message.
The LLM will then be utilized to enhance and optimize the message. The LLM will analyze the content and context of the commit, making it more concise, clear, and in accordance with established commit message best practices.
The final commit message, which is an improved version of the user's input after LLM processing, will be used for the commit.
This feature would provide users with the flexibility to convey their intentions while benefiting from AI-powered improvements to create informative and coherent commit messages.
Alternatives
While the proposed
-m
flag is a direct way to allow users to specify their own commit message, there are alternatives to consider:Enhanced Prompt: Instead of a flag, users could input their custom commit message as a prompt. OpenCommit could then process this prompt and generate an enhanced commit message based on it.
User Feedback Loop: Allow users to review and refine the commit message generated by OpenCommit, creating a feedback loop for continuous improvement.
Additional Context
The ability to specify a custom commit message with the -m flag would be valuable for developers who have specific terminology or conventions within their project or team. It would also cater to scenarios where the commit message requires personalization beyond what automated generation provides. This feature would enhance the utility of OpenCommit and make it even more adaptable to various development workflows and preferences.
The text was updated successfully, but these errors were encountered: