Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat(cz_check): cz check can read commit message from pipe #255

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

Merged
Lee-W merged 2 commits into commitizen-tools:master from jordanSu:cz-pipe-message
Sep 18, 2020

Conversation

Copy link
Contributor

@jordanSu jordanSu commented Aug 31, 2020
edited
Loading

Description

As mentioned in #200, this PR makes cz check can read message from pipe. In this mode, "--message" option is used.

Checklist

  • Add test cases to all the changes you introduce
  • Run ./script/format and ./script/test locally to ensure this change passes linter check and test (but failed)
  • Test the changes on the local machine manually
  • Update the documentation for the changes

Expected behavior

String input from pipe can be read by cz check

Steps to Test This Pull Request

  1. echo COMMIT_MESSAGE | cz check
  2. cat COMMIT_FILE | cz check

Additional context

#200

This PR can't pass ./script/test, because the test "test_check_conventional_commit_succeeds" in test_check_command.py failed.
However, I don't understand why this test failed, because a similar test "test_check_jira_multiple_commands" succeeded.
I put a screenshot of the error message below
Screen Shot 2020年08月31日 at 9 54 46 PM

Copy link
Member

Lee-W commented Sep 1, 2020

@jordanSu Hi, it seems you do not pass all the checks. If this's still a draft, you can make it a draft PR by click the button under Reviews
image

@jordanSu jordanSu marked this pull request as draft September 1, 2020 13:01
Copy link
Member

Lee-W commented Sep 3, 2020

@jordanSu hmmm... I'm not able to reproduce this error on mac. I'll see whether I can do so in a docker container

@jordanSu jordanSu marked this pull request as ready for review September 15, 2020 16:41
@jordanSu jordanSu marked this pull request as draft September 15, 2020 16:50
Copy link

codecov bot commented Sep 17, 2020
edited
Loading

Codecov Report

Merging #255 into master will increase coverage by 0.02%.
The diff coverage is 100.00%.

Impacted file tree graph

@@ Coverage Diff @@
## master #255 +/- ##
==========================================
+ Coverage 96.60% 96.62% +0.02% 
==========================================
 Files 33 33 
 Lines 912 919 +7 
==========================================
+ Hits 881 888 +7 
 Misses 31 31 
Flag Coverage Δ
#unittests 96.62% <100.00%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
commitizen/cli.py 97.36% <ø> (ø)
commitizen/__version__.py 100.00% <100.00%> (ø)
commitizen/commands/check.py 100.00% <100.00%> (ø)
...en/cz/conventional_commits/conventional_commits.py 98.41% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b207e6d...159f6ba. Read the comment docs.

@jordanSu jordanSu marked this pull request as ready for review September 17, 2020 15:48
@Lee-W Lee-W closed this Sep 18, 2020
@Lee-W Lee-W reopened this Sep 18, 2020
Copy link
Member

Lee-W commented Sep 18, 2020
edited
Loading

Hmmm... it's weird. looks like the new commit is not updated to the new one but this one. I think we can keep both open untill we have this one solved.

jordanSu reacted with thumbs up emoji

Copy link
Member

@Lee-W Lee-W left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall, it looks great 🎉 We just need to fix some minor content issues. Also, I notice that you miss the period in some sentences. It'd be even better if you could take care of it

Copy link
Member

@Lee-W Lee-W left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Let's merge it 👍

@Lee-W Lee-W merged commit f44496f into commitizen-tools:master Sep 18, 2020
Copy link
Member

Lee-W commented Sep 18, 2020

@jordanSu I just found out the reason why the branches are not synced. You have a typo haha (cz-pipe-messsage, cz-pipe-message)

Copy link
Contributor Author

@jordanSu I just found out the reason why the branches are not synced. You have a typo haha (cz-pipe-messsage, cz-pipe-message)
@Lee-W
Ah I see. I didn't notice that lol

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@Lee-W Lee-W Lee-W approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants

AltStyle によって変換されたページ (->オリジナル) /