conform icon indicating copy to clipboard operation
conform copied to clipboard

Allow for fixup! commits

Open blaggacao opened this issue 2 years ago • 5 comments

When using conventional commits, allow the use of fixup! <sha> or fixup! <header> syntax, which are both recognized by git rebase --autosquash later on.

blaggacao avatar Jul 30 '22 04:07 blaggacao

Agreed, fixup! and squash! prefixes should be ignored as those mechanisms are part of the base features Git offers.

sdurrheimer avatar Oct 27 '22 10:10 sdurrheimer

@blaggacao I did'n try this, but I think this could be solved by a setting in the .conform.yaml, just adding allowed types:

conventional:
      types: ["fixup!,"wip", "chore","docs","perf","refactor","style","test","release"]

janderssonse avatar Feb 22 '23 07:02 janderssonse

That's a good idea, however we eneded up wrapping with a regex condition.

That gives more flexibility to the actual header and thereby less restriction to the end use: https://github.com/divnix/std/commit/2f047e0707ef15e89582d51e46dec796b582a520

blaggacao avatar Feb 25 '23 14:02 blaggacao

Any way that works is the right way! :) Sidenote, I really like this tool, but would love to see more documentation, and more responses to the issues from the maintainer.

janderssonse avatar Feb 25 '23 16:02 janderssonse