@@ -42,6 +42,7 @@ keywords = ["add", "rem", "ref", "fix", "undo", "release"]
4242modifiers = [" ?" , " !" , " !!" ]
4343separator = " :"
4444modifier-sequence = " pre" # before the enclosures, or "post"
45+ default-ignores = true # skip machine-generated headers
4546
4647# Scopes; omit `allowed` to accept anything between the delimiters.
4748[[commit .enclosures ]]
@@ -57,6 +58,24 @@ allowed = [
5758]
5859```
5960
61+ ### Default ignores
62+
63+ Headers that git and forges generate on their own are exempt from
64+ linting, mirroring [ commitlint's default
65+ ignores] ( https://commitlint.js.org/reference/configuration.html#defaultignores ) :
66+
67+ - merges: ` Merge pull request ... ` , ` Merge branch '...' ` ,
68+ ` Merge tag '...' ` , ` Merge x into y ` ,
69+ ` Merge remote-tracking branch '...' ` , ` Merged x in(to) y ` ,
70+ ` Merged PR 1: ... ` , ` Automatic merge ... ` , ` Auto-merged x into y `
71+ - reverts and reapplies: ` Revert "..." ` , ` Reapply "..." `
72+ - autosquash markers: ` fixup! ... ` , ` squash! ... ` , ` amend! ... `
73+ - release bumps: a semver version, optionally behind a ` chore: `
74+ prefix and a ` [skip ci] ` -style marker, e.g. ` chore(release): v1.2.3 `
75+
76+ Set ` default-ignores = false ` in the ` [commit] ` section to lint these
77+ like any other header.
78+
6079### As a ` commit-msg ` hook
6180
6281With [ husky] ( https://typicode.github.io/husky/ ) , in ` .husky/commit-msg ` :
0 commit comments