From b03bfe94a4746ea1b64ce0c3de3f6a8923e0b1c8 Mon Sep 17 00:00:00 2001 From: Emmanuel Pelletier Date: Mon, 22 Jul 2024 16:30:16 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A(gitlint)=20ignore=20missing=20body?= =?UTF-8?q?=20on=20release=20commits?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit release commits dont need any body info as the changelog ~~is~~ will be updated accordingly to track changes of the release --- .gitlint | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitlint b/.gitlint index f7373b6a..6ddc044f 100644 --- a/.gitlint +++ b/.gitlint @@ -62,12 +62,17 @@ words=wip # For example, use the following regex if you only want to allow email addresses from foo.com # regex=[^@]+@foo.com -[ignore-by-title] +[ignore-by-title:bots] # Allow empty body & wrong title pattern only when bots (pyup/greenkeeper) # upgrade dependencies regex=^(⬆️.*|Update (.*) from (.*) to (.*)|(chore|fix)\(package\): update .*)$ ignore=B6,UC1 +[ignore-by-title:releases] +# Allow empty body for release commits +regex=^🔖.*$ +ignore=B6 + # [ignore-by-body] # Ignore certain rules for commits of which the body has a line that matches a regex # E.g. Match bodies that have a line that that contain "release"