From a833c4a60b52cbcf43dd1c7db03c1a39d44b1b3d Mon Sep 17 00:00:00 2001 From: "auto-synchronization-bot[bot]" <121386770+auto-synchronization-bot[bot]@users.noreply.github.com> Date: Fri, 3 Mar 2023 15:28:32 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=84=20synced=20local=20'.github/.husky?= =?UTF-8?q?/'=20with=20remote=20'.github/.husky/'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/.husky/commit-msg | 2 ++ .github/.husky/prepare-commit-msg | 7 +++++++ 2 files changed, 9 insertions(+) create mode 100644 .github/.husky/prepare-commit-msg diff --git a/.github/.husky/commit-msg b/.github/.husky/commit-msg index 8a7ca0ec..05defb8c 100644 --- a/.github/.husky/commit-msg +++ b/.github/.husky/commit-msg @@ -4,5 +4,7 @@ #!/bin/sh . "$(dirname "$0")/_/husky.sh" +commitlint -E HUSKY_GIT_PARAMS + SIGNATURE="Signed-off-by: `git config --global --get user.name` <`git config --global --get user.email`>" grep -qs "^${SIGNATURE}" "$1" || echo "${SIGNATURE}" >> "$1" diff --git a/.github/.husky/prepare-commit-msg b/.github/.husky/prepare-commit-msg new file mode 100644 index 00000000..f3cc9e4b --- /dev/null +++ b/.github/.husky/prepare-commit-msg @@ -0,0 +1,7 @@ +# SPDX-FileCopyrightText: 2022 WebReady Projects +# +# SPDX-License-Identifier: MIT +#!/usr/bin/env sh +. "$(dirname -- "$0")/_/husky.sh" + +exec < /dev/tty && git cz --hook || true