From 2045aa5d928306f2a03cc924eac9c453c399b9b8 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Wed, 28 Aug 2024 14:17:46 +0100 Subject: build: commit-msg allow nostr: links even though they may exceed line length rules unfortunately until https://github.com/jorisroovers/gitlint/issues/255#issuecomment-1040868243 get merged --- .gitlint | 9 +++++++++ git_hooks/pre-commit | 0 2 files changed, 9 insertions(+) create mode 100644 .gitlint mode change 100644 => 100755 git_hooks/pre-commit diff --git a/.gitlint b/.gitlint new file mode 100644 index 0000000..6e4742d --- /dev/null +++ b/.gitlint @@ -0,0 +1,9 @@ +[general] +regex-style-search=true + +# this ignore all body rules if there is a nostr link rather than just this line +# until https://github.com/jorisroovers/gitlint/issues/255#issuecomment-1040868243 +# is implemented with [ignore-body-lines] this skips validation of other body line lengths +[ignore-by-body] +regex = ^(nostr:[^\s]*|https://[^\s]*)$ +ignore = body-max-line-length \ No newline at end of file diff --git a/git_hooks/pre-commit b/git_hooks/pre-commit old mode 100644 new mode 100755 -- cgit v1.2.3