Skip to content
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/add user input code context #420

Open
wants to merge 4 commits into
base: dev
Choose a base branch
from

Conversation

welingtonsampaio
Copy link

Enhance Context Awareness for Commit Message Generation

OpenCommit now allows you to provide additional context when generating commit messages. This context is incorporated into the prompt given to the AI model, enabling it to create more tailored and relevant commit messages.

Usage

To provide additional context, simply pass the -- flag followed by your context after the OpenCommit command:

oco -- This commit updates the authentication flow to use JWT tokens

The AI model will consider the provided context when generating the commit message, incorporating relevant information when appropriate.

Benefits

  • Context-aware commit messages: By providing additional context, the generated commit messages will be more aligned with the specific changes made, resulting in clearer and more descriptive commit messages.
  • Improved relevance: The AI model can better understand the intent and purpose behind the changes, leading to commit messages that accurately reflect the modifications.
  • Customization: You can tailor the commit message generation process by providing context specific to your project or development environment.

This enhancement strengthens OpenCommit's ability to generate meaningful and accurate commit messages, facilitating better commit history management and code collaboration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants