Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upfeat(commands/commit): apply prepare-commit-msg hook #250
Conversation
codecov
bot
commented
Aug 14, 2020
•
Codecov Report
@@ Coverage Diff @@
## master #250 +/- ##
==========================================
+ Coverage 96.58% 96.71% +0.13%
==========================================
Files 33 33
Lines 908 945 +37
==========================================
+ Hits 877 914 +37
Misses 31 31
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
|
Hi, although I've not yet had the time to fully review the code, I just test it on my local machine and failed. This is the default_stages: [push]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.1.0
hooks:
- id: check-vcs-permalinks
- id: end-of-file-fixer
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- id: debug-statements
- id: no-commit-to-branch
- repo: https://github.com/saygox/commitizen
rev: 09fa312b7846850f44f7860632685189e37c1bec
hooks:
- id: commitizen-prepare-commit-msg
stages: [prepare-commit-msgThe command I used. mkdir test
cd test
git init
# add .pre-commit-config.yaml
pre-commit install -t prepare-commit-msg
git commtThe error message
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
saygox commentedAug 14, 2020
Types of changes
Description
invoke cz commit from git prepare-commit-msg hook
Checklist
./script/formatand./script/testlocally to ensure this change passes linter check and testSteps to Test This Pull Request
Expected behavior
Additional context