-
-
Notifications
You must be signed in to change notification settings - Fork 300
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
Add support for custom commit message #597
Add support for custom commit message #597
Conversation
This needs to be added for the config too, not just CLI flag. The default is not clear. It should not have an alias. It should be documented in the readme. It needs a test. |
Yeah this is why this is a draft. Sorry, maybe I misunderstood the draft PR feature? |
I'm not quite sure what you meant with that. The message flag implementation should work regardless of cli or config usage, right?
I hope the commits 3b94dd9 and 544075a made that clearer. I don't really know how I could make it more clear without making the inline description too long, any suggestions?
Alright, f975e1e.
fb56c72 adds that. Maybe there should be seperate section for the message flag in the readme though, because yarn and npm handle it wildly different and have different defaults too. And yarn 2 doesn't even support it, as far as I know. Any thoughts
I'm not quite sure, but since everything else is tested by either meow, npm or yarn, I think the only test we would need here is a check if the message flag adds I'll make this PR ready for review now, I hope that's okay. |
Some extra thoughts: A prompt for the commit message would be nice too, in a future pull request. We could either check if the message flag is added but empty, and if it is, prompt the user to input a commit message. Or we introduce a new flag if the user wants to get prompted for the commit message instead of using the current message flag. Something like |
I didn't mean to imply you didn't plan to do this. I was just trying to save you time by making it clear what needs to be done. |
Why? I'm fairly against that unless there's a very good use-case. I'm trying really hard to not end up with hundreds of flags like |
Alright, thanks for clearing that up, I was just a bit tired at that time and miserunderstood it.
That's okay, I appreciate that, was just brainstorming. What do you think about the discussion here: #597 (comment)? |
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
Co-authored-by: Govind S <gvind4@gmail.com>
Fixes #590