fork-dev / TrackerWin

Bug and issue tracker for Fork for Windows
465 stars 10 forks source link

[Feature Request] Allow custom merge commit messages #2018

Open lkster opened 1 year ago

lkster commented 1 year ago

In case of eg. squash merge with conventional commits approach commit messages should have specific structure such as feat(scope): some desc. It's currently not possible because of commit message being not possible to be changed.

Current workaround is merging and then amending commit message.

DanPristupov commented 1 year ago

You can merge with --no-commit option and Fork will bring you to the message editing.

https://github.com/fork-dev/TrackerWin/issues/244

lkster commented 1 year ago

Yes, but this is not applicable in case of squash merge. I.e. there will be two parents while squash merge is about dumping working branch to have linear history. Unless I just didn't catch the option to perform --no-commit --squash

DanPristupov commented 1 year ago

No, selecting two options in the dropdown is not possible. So, using amend is the only option to edit message for squash merge.

lkster commented 1 year ago

So is there any chance to have custom message textbox or anything reconsidered?

DanPristupov commented 1 year ago

Oh, no, most likely not. This will make merge look too complicated to anyone who doesn't need custom messaging. I want to keep the UI simple.

ddbtrmatic commented 1 year ago

FWIW, the maintainers of conventional commits recommend not using merge commits at all.

https://github.com/conventional-commits/conventionalcommits.org/issues/454#issuecomment-1136024464

lkster commented 1 year ago

Oh, no, most likely not. This will make merge look too complicated to anyone who doesn't need custom messaging. I want to keep the UI simple.

Actually simple "Custom commit message" checkbox which after checking would show up textarea below (prefilled with default mesage) shouldn't make look & feel more complicated in any way. So everyone not insterested in changing commit message would just have that checkbox unchecked (which would be it's default state). Eg. Azure DevOps has it this way