-
-
Notifications
You must be signed in to change notification settings - Fork 301
feat(cz_check): cz check can read from a string input #254
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report
@@ Coverage Diff @@ ## master #254 +/- ## ========================================== + Coverage 96.58% 96.61% +0.02% ========================================== Files 33 33 Lines 908 915 +7 ========================================== + Hits 877 884 +7 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.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
HI @jordanSu Thanks for contributing! I have one small suggestion for your pull request.
tests/commands/test_check_command.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need parametrize
here unless we add more test input.
tests/commands/test_check_command.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above
6e6e66c
to
65ae829
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks for the update!
Uh oh!
There was an error while loading. Please reload this page.
Description
As mentioned in #200 , this PR make
cz check
can read a string input as an argument with "--message"Checklist
./script/format
and./script/test
locally to ensure this change passes linter check and testExpected behavior
With "-m" or "--message",
cz check
checks string input as commit message.Steps to Test This Pull Request
cz check -m COMMIT_MESSAGE
cz check --message COMMIT_MESSAGE
Additional context
Refer to issue #200