From 5aa1540c5dc33d61020a08dd2818c0f5fd08575f Mon Sep 17 00:00:00 2001 From: Philipp Schuster Date: Wed, 12 Mar 2025 10:56:10 +0100 Subject: [PATCH] ci: gitlint now ignores long lines from links This helps to prevent annoying CI failures when one adds useful resources into a commit message, such as [0]. One can test this locally using: `gitlint --commits HEAD~1..HEAD` [0] https://example.com/?lorem-ipsum-lorem-ipsum-lorem-ipsum-lorem-ipsum-lorem-ipsum-lorem-ipsum-lorem-ipsum-lorem-ipsum-lorem-ipsum-lorem-ipsum-lorem-ipsum-lorem-ipsum-lorem-ipsum-lorem-ipsum Signed-off-by: Philipp Schuster On-behalf-of: SAP philipp.schuster@sap.com --- .gitlint | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gitlint b/.gitlint index 09c6b46eb..f94b9ec2b 100644 --- a/.gitlint +++ b/.gitlint @@ -13,3 +13,8 @@ line-length=72 # default 80 [body-max-line-length] line-length=72 + +# Allow developers to add long links to useful resources +[ignore-by-body] +regex=^https?:\/\/ +ignore=body-max-line-length