-
Notifications
You must be signed in to change notification settings - Fork 79
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
bug: Continually get unrelated commit messages #150
Comments
Experiencing similar issues, removed a single line print statement in some swift code, the generated commit included
|
I can confirm that this happens on short diffs. We should update the prompt to handle these cases. Open to PRs here |
Hello, I’m experiencing a similar issue where the commit messages generated by I believe this might be due to how the tool generates commit messages for small diffs. It could be helpful to modify the prompt logic for such cases, ensuring that it generates more relevant messages even for minor changes like renaming or single-line edits. I’d be happy to help with this! I can look into adjusting the prompt logic or any other areas that might be causing this behavior. Please let me know if I can assist further! Best regards, |
- Adjusted commit message generation logic to resolve relevance issue with commit titles and summaries. - Improved handling of diff summaries to ensure accurate commit messages based on actual code changes. - Fixed bug where commit messages were too generalized and did not reflect the specific changes made.
Describe the bug
When I try to commit, I regularly get a message that is mostly if not entirely unrelated to the changes. It seems to be basing the description more on the sample commit messages in the prompts. Below is an example with a very minor change, renaming the project in a CMakeLists.txt file. See how it added quite a number of irrelevant things, and doesn't address the one minor change in the file.
To Reproduce
Steps to reproduce the behavior:
git commit
Expected behavior
The program generates a relevant commit message.
Screenshots
System Info (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: