summaryrefslogtreecommitdiffstats
path: root/.gommit.toml
diff options
context:
space:
mode:
authorGeorg Pfuetzenreuter2023-02-19 19:48:59 +0100
committerGeorg Pfuetzenreuter2023-02-19 20:43:09 +0100
commitd082729a664b479ca020e81596db06ae34fd00d4 (patch)
treea706ca4fe54bd31e5cea2cebc1714322f5dbefcc /.gommit.toml
parent51da14de69ac98ddd49cae393a76d64bded041b0 (diff)
downloadsalt-d082729a664b479ca020e81596db06ae34fd00d4.tar.gz
salt-d082729a664b479ca020e81596db06ae34fd00d4.tar.bz2
salt-d082729a664b479ca020e81596db06ae34fd00d4.zip
Add commit linting
- add gommit configuration - add wrapper script Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
Diffstat (limited to '.gommit.toml')
-rw-r--r--.gommit.toml23
1 files changed, 23 insertions, 0 deletions
diff --git a/.gommit.toml b/.gommit.toml
new file mode 100644
index 0000000..eaffd69
--- /dev/null
+++ b/.gommit.toml
@@ -0,0 +1,23 @@
+[config]
+exclude-merge-commits=true
+check-summary-length=true
+summary-length=50
+
+[matchers]
+all='^(?:(?:Add|Remove|Update|Enable|Disable) |(?:role\.\w+|profile\.\w+): )[\w ]+\n(?:(?:\n\- .*)+\n)?(?:\nSigned-off-by: \w+ \w+ <.*@.*>)'
+
+[examples]
+summary_variant_one="""
+[Add|Remove|Update|Enable|Disable] this and that
+"""
+
+summary_variant_two="""
+[role.$role|profile.$profile]: this and that
+"""
+
+body_message="""
+- an optional body line
+- another optional body line
+
+Signed-off-by: Max Mandatory <required@example.com>
+"""