mirror of
https://github.com/trezor/trezor-suite.git
synced 2026-03-21 06:40:33 +01:00
914 B
914 B
Commits
Using Conventional Commits is strongly recommended and might be enforced in future.
Examples
docs: correct spelling of CHANGELOG
feat: allow provided config object to extend other configs
feat(lang): added polish language
Git hook
Use this git hook to auto-check your commit messages. Save the following snippet into .git/hooks/commit-msg
#!/bin/sh
if ! grep -qE "^(build|ci|docs|feat|fix|perf|refactor|style|test|chore|revert)(\((blockchain-link|components|components-storybook|integration-tests|landing-page|news-api|rollout|suite|suite-data|suite-desktop|suite-native|suite-onboarding|suite-storage|suite-web|translations-manager)\))?: " "$1" ; then
echo "Conventional Commits validation failed"
exit 1
fi
If you want to bypass commit-msg hook check, you may always use
git commit -m "foobar" --no-verify