From ead02ea8e6624595f94aa1e92d1956475de80c57 Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Wed, 13 May 2020 15:32:29 +0200 Subject: [PATCH] ci: add .commitlintrc.yml for forcing commitlint CI checks The rules are documented at https://commitlint.js.org/#/reference-rules and can easily be added to the configuration. Signed-off-by: Niels de Vos --- .commitlintrc.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .commitlintrc.yml diff --git a/.commitlintrc.yml b/.commitlintrc.yml new file mode 100644 index 000000000..49b502ae1 --- /dev/null +++ b/.commitlintrc.yml @@ -0,0 +1,30 @@ +--- +# rules are documented at https://commitlint.js.org/#/reference-rules +# each rule has a n arry of three values: +# - 0, 1, 2 (rule is disabled, warning or error) +# - always/never +# - value +rules: + # the subject may not exceed 72 characters + header-max-length: [2, always, 72] + # the subject may not end with a "." + header-full-stop: [2, never, "."] + # we do not use scopes for commit messages + scope-empty: [1, always] + # valid types/prefixes, see docs/development-guide.md + type-enum: + - 1 + - always + - - build + - cephfs + - ci + - cleanup + - deploy + - doc + - e2e + - helm + - journal + - rbd + - rebase + - revert + - util