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

fix: only use prepared commit message if run as hook #141

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

webdevian
Copy link
Contributor

Problem: The prepared commit message feature added in #122 sometimes sets a default from the COMMIT_EDITMSG file when I run git cz. As this message is from a previous commit it is annoying to see it there. It's not a huge problem in the subject as I will always overwrite a new subject, but in the body when I hit enter to leave the body empty it fills it with the default.

Solution: Only set the default when cz-customizable has been run as a hook or in standalone mode

I couldn't think of a better way to detect whether to turn this feature on but I think this a safe solution and won't break it for anyone that is reliant on it

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.

None yet

2 participants