-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: move commitizen config to commitlint; remove cz-lerna-changelo…
…g pkg; skip commit hook on rebase and amend
- Loading branch information
Showing
21 changed files
with
419 additions
and
1,817 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
npm run lint:commit | ||
npx --no -- commitlint --edit $1 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,16 @@ | ||
exec < /dev/tty && npx cz --hook || true | ||
# Don't run this hook on --amend or rebase | ||
# From https://github.com/commitizen/cz-cli/issues/672#issuecomment-1328123802 | ||
# | ||
# Explanation: | ||
# Per the [prepare-commit-msg hook docs](https://git-scm.com/docs/githooks#_prepare_commit_msg), | ||
# the second argument can have these values: | ||
# - Empty: No message supplied | ||
# - "message": Message was supplied via -m or -F | ||
# - "template": Template was supplied via -t or via commit.template git config | ||
# - "merge": Commit is a merge commit or .git/MERGE_MSG file exists | ||
# - "squash": .git/SQUASH_MSG file exists | ||
# - "commit": -c, -C, or --amend was supplied. In this case, the script gets a third argument representing the commit object. | ||
|
||
if [ -z "$2" ]; then | ||
exec < /dev/tty && npx cz --hook | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.