From 66ca1075ad8f114068a3dfd0ba04439b270ae87b Mon Sep 17 00:00:00 2001 From: Artur Tagisow Date: Wed, 23 Mar 2022 13:58:12 +0100 Subject: [PATCH] fix: remove prepare-commit-msg hook before this commit running git commit ran commitizen instead of showing the traditional git commit message prompt doing that was too much of an intrusion into the workflow so we've decided to keep cz, but make it optional to use instead of required --- .husky/prepare-commit-msg | 4 ---- CONTRIBUTING.md | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) delete mode 100755 .husky/prepare-commit-msg diff --git a/.husky/prepare-commit-msg b/.husky/prepare-commit-msg deleted file mode 100755 index 73a4cdc33..000000000 --- a/.husky/prepare-commit-msg +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - -exec < /dev/tty && git cz --hook || true diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 4b2941210..5b48d7e56 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -52,7 +52,7 @@ To make your life easier @vuestorefront/magento2 is commitizen-friendly and prov > Commit standards - [conventional-changelog](https://github.com/conventional-changelog) -- husky commit message hook available +- run `npx cz` to commit using commitizen - present tense - maximum of 100 characters - message format of `$type($scope): $message`