smarkets / marge-bot

A merge-bot for GitLab
BSD 3-Clause "New" or "Revised" License
701 stars 136 forks source link

Add commit message check to marge bot #329

Open arvidj opened 3 years ago

arvidj commented 3 years ago

It would be convenient if marge-bot could be configured to disallow the merging MRs whose history contains commits matching a set of patterns. In our project, commits messages should always match "Component: action" and in particular we shall not merge fixups (i.e. "fixup!") nor applied suggestion commits (i.e. "Apply 9 suggestion(s) to 1 file(s)").

This is slightly related to #16 and #296.

dgroh commented 2 years ago

Use commitlint for that. You can configure your own pattern.