conventionalcommit / commitlint

commitlint checks if your commit messages meets the conventional commit format
MIT License
56 stars 2 forks source link

Permit `--fixup` and `--squash` commits #8

Open danbernier opened 1 year ago

danbernier commented 1 year ago

commitlint currently fails the messages auto-generated by git for --fixup and --squash commits.

I think commitlint should always permit these commit messages.

Since the point of these commits is to be rebased into other commits, their messages won't be in the commit history for terribly long. And they're already an established part of the git ecosystem.

I'm currently working around this by using -n every time I --fixup, but it's a friction point each time I forget.

gumbo2k commented 4 days ago

Seems like this will have the same solution as #10 .. a whitelist of regex that, when matching the commit's first line, mark this commit message as OK.