summaryrefslogtreecommitdiffstats
path: root/.github/commitlint.config.js
diff options
context:
space:
mode:
authorJafar Al-Gharaibeh <jafar@atcorp.com>2023-02-07 17:42:53 +0100
committerGitHub <noreply@github.com>2023-02-07 17:42:53 +0100
commit6e1ae0137df6b8e5771510a32c0bd80ee0536564 (patch)
tree952e7770c29edbd058ee8b21f7b875dcfbafb55d /.github/commitlint.config.js
parentMerge pull request #12748 from opensourcerouting/fix/route_map_vpn_import (diff)
parentdoc: Define why my pull request was closed (diff)
downloadfrr-6e1ae0137df6b8e5771510a32c0bd80ee0536564.tar.xz
frr-6e1ae0137df6b8e5771510a32c0bd80ee0536564.zip
Merge pull request #12715 from opensourcerouting/fix/contribution_guid_squash_random_commits
Commits hygiene
Diffstat (limited to '.github/commitlint.config.js')
-rw-r--r--.github/commitlint.config.js44
1 files changed, 44 insertions, 0 deletions
diff --git a/.github/commitlint.config.js b/.github/commitlint.config.js
new file mode 100644
index 000000000..cf7daab86
--- /dev/null
+++ b/.github/commitlint.config.js
@@ -0,0 +1,44 @@
+module.exports = {
+ rules: {
+ 'header-max-length': [2, 'always', 72],
+ 'type-case': [2, 'always', 'lower-case'],
+ 'type-empty': [2, 'never'],
+ 'type-enum': [
+ 2,
+ 'always',
+ [
+ 'babeld',
+ 'bfdd',
+ 'bgpd',
+ 'doc',
+ 'docker',
+ 'eigrpd',
+ 'fpm',
+ 'isisd',
+ 'ldpd',
+ 'lib',
+ 'multi',
+ 'nhrpd',
+ 'ospf6d',
+ 'ospfd',
+ 'pbrd',
+ 'pimd',
+ 'pim6d',
+ 'ripd',
+ 'ripngd',
+ 'sharpd',
+ 'staticd',
+ 'tests',
+ 'tools',
+ 'vtysh',
+ 'vrrpd',
+ 'yang',
+ 'zebra',
+ 'all',
+ ],
+ ],
+ 'subject-empty': [2, 'never'],
+ 'subject-full-stop': [2, 'never', '.'],
+ 'subject-case': [2, 'always', 'sentence-case'],
+ },
+};