-
-
Notifications
You must be signed in to change notification settings - Fork 2k
How to add a Conventional commit specification before committing #4414
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
Comments
I'm strongly opposed to adding conventional commits functionality to lazygit. Conventional commits is a misguided attempt at encouraging better commits; I think it does more harm than good. I don't want to encourage its use by adding it to lazygit. If you need to use conventional commits because your workplace demands it, then custom commands are the way to go (instead of generating the prompts yourself as shown in your screenshot you can also run one of the many command line tools that prompt you in the console). If it's your own choice to use them, consider just not doing it. |
To add a differing opinion, I am a fan of conventional commits. I find it useful to indicate to future people "This should just be a clean refactor, if you find a behavioral change, I did not intend it". But I am also not seeing any utility in a lazygit integration. The prefixes are all very short, so it's pretty easy to type. Such as Do you have some other flow that I'm not imagining that means you're seeing substantial gains from your custom command? |
This would be a great addition to lazygit. Conventional commit have become the defacto standard for good commit messages not only in most open source, but also commercial projects. |
I can only repeat what I said above:
Now, I didn't explain why I think so. The main reasons for this opinion are:
I do realize that I'm probably fighting an uphill battle though.
This doesn't need emphasizing; in any sane commit history it should be a matter of course. |
Thanks for your explanation, I think we agree in general that conventional commits do not decrease the quality of commit messages, in the worst case, they would stay the same with some additional metadata information. To not go off topic too much, I think they would be a valuable addition to lazygit, especially as they are so broadly adopted throughout the whole open source ecosystem. |
@itpropro I hear your points about the benefits of conventional commits, but I'm still not hearing a product oriented description of what is being asked to be introduced. What could Lazygit add that would help a user of conventional commits? If @stefanhaller were to wake up tomorrow and have a fire burning inside of him to help maintain a deep integration with conventional commits (emphasis on if 😆 ), what would that feature look like? I'm still hung up on my original point:
|
@ChrisMcD1 I would see the following features as part of optional conventional commit support
The flow would basically be to select a type and scope, write a descriptive title, if needed write a description and optionally append a footer. |
I used custome command to create a Conventional commit option, but I need to create an input for the information myself, which is very bloated. I want to let this Conventional commit option box go directly to lazygit's original commit input box after selecting it, and add feat(test.js): to the front of the subject, and I will add detailed information later
The text was updated successfully, but these errors were encountered: