A set of tools to validate conventional commit messages.
Project description
Commit Message Git Hook
Installation Instructions
1. Using the Local Git Hook commit-msg
- Create a folder called
git-hooks
in your project repository. For example, inside the.github
directory:
mkdir -p ./.github/git-hooks
- Create the
commit-msg
git-hook file:
touch ./.github/git-hooks/commit-msg
- And then paste this content in it:
#!/usr/bin/env python3
import commit_msg as cm
cm.main()
- Now run the command below in the repository root to set your repository git hooks path:
git config core.hooksPath .github/git-hooks
NOTE: The configuration is local to this repository. Each repo can have its own hooks path.
2. Using the Server-Side Scan
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for commit_msg_git_hook-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1c937595399217fe3b8beba70457387552bbc0144388a119925581b6f254bd2 |
|
MD5 | 562328d43ef992fd4d33b830848d4339 |
|
BLAKE2b-256 | 5037795ef45b6d46d17d3b10d60d1ac4901355e0f13231111d346fb84aa99a70 |
Close
Hashes for commit_msg_git_hook-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ecffa6f2b761af4b5d59a81b8bc05847be8665c5f3265364c9764e8f53a895b9 |
|
MD5 | a8aa562586b52fbbe3de4294d28e8dba |
|
BLAKE2b-256 | 3ee127c381d9932bcfcf99af7f773e88ac067d077b9b841107b6f0f16170629c |