-
-
Notifications
You must be signed in to change notification settings - Fork 299
feat: add check against default branch #1519
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
base: v4-9-0-test
Are you sure you want to change the base?
feat: add check against default branch #1519
Conversation
93f3c0b
to
9627306
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## v4-9-0-test #1519 +/- ##
==============================================
Coverage ? 98.28%
==============================================
Files ? 58
Lines ? 2680
Branches ? 0
==============================================
Hits ? 2634
Misses ? 46
Partials ? 0
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
8ec2c66
to
3c7623f
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.
other than the naming issue, everything looks great. a wonderful feature we should have long ago
3c7623f
to
5232634
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.
one nitpick. but overall looks great!
@@ -480,3 +480,22 @@ def test_create_commit_cmd_string(mocker, os_name, committer_date, expected_cmd) | |||
mocker.patch("os.name", os_name) | |||
result = git._create_commit_cmd_string("", committer_date, "temp.txt") | |||
assert result == expected_cmd | |||
|
|||
|
|||
def test_get_default_branch(mocker: MockFixture): |
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.
This should be separate as 2 test cases instead
Description
Related PR: #1400
Wait for #1472 and #1457
Related issue: #1498
cz check --default-range
.Some TODOs
Checklist