summaryrefslogtreecommitdiff
path: root/tools/verifygitlog.py
AgeCommit message (Collapse)Author
2022-10-07tools/verifygitlog.py: Add additional help for subject line issues.Jim Mussared
This check used to just show the regular expression that failed to match, but the rules are pretty subtle and hard to interpret from the regular expression alone. Add some basic checks for the main things that go wrong: - Missing capitalisation. - Missing full-stop. - Missing path. - Single-word subject. This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2022-10-07tools/verifygitlog.py: Ignore comment lines in commit messages.Jim Mussared
The "signed-off" check assumes that the Signed-off-by: line is the last, but there may me many lines of comments after this. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2022-10-04tools: Add pre-commit support.Angus Gratton
Tweak the existing codeformat.py and verifygitlog.py to allow them to be easily called by pre-commit. (This turned out to be easier than using any existing pre-commit hooks, without making subtle changes in the formatting.) This work was funded through GitHub Sponsors. Signed-off-by: Angus Gratton <angus@redyak.com.au>
2022-02-18tools/verifygitlog.py: Ignore line length in body if it's a URL.David Lechner
This changes the git commit message line length check to ignore lines that contain URLs, since these cannot be wrapped without breaking tools that detect URLs and create a link. Signed-off-by: David Lechner <david@pybricks.com>
2021-02-21tools/verifygitlog.py: Show required format regexp in error message.iTitou
Signed-off-by: iTitou <moiandme@gmail.com>
2021-01-30tools/verifygitlog.py: Add script for verifying commit message format.stijn
The main rules enforced are: - At most 72 characters in the subject line, with a ": " in it. - At most 75 characters per line in the body. - No "noreply" email addresses.