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: 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

Merged

Conversation

@bearomorphism
Copy link
Contributor

@bearomorphism bearomorphism commented Jun 9, 2025
edited
Loading

Description

Related PR: #1400
Wait for #1472 and #1457

Related issue: #1498

  • Added cz check --default-range.

Some TODOs

  • Add tests
  • Documentation

Checklist

Copy link

codecov bot commented Jun 10, 2025
edited
Loading

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (v4-9-0-test@f30ae2e). Learn more about missing BASE report.

Additional details and impacted files
@@ Coverage Diff @@
## v4-9-0-test #1519 +/- ##
==============================================
 Coverage ? 98.31% 
==============================================
 Files ? 58 
 Lines ? 2671 
 Branches ? 0 
==============================================
 Hits ? 2626 
 Misses ? 45 
 Partials ? 0 
Flag Coverage Δ
unittests 98.31% <100.00%> (?)

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@bearomorphism bearomorphism force-pushed the feat-check-from-default branch 6 times, most recently from 8ec2c66 to 3c7623f Compare June 10, 2025 05:50
@bearomorphism bearomorphism marked this pull request as ready for review June 10, 2025 05:51
@bearomorphism bearomorphism changed the base branch from master to v4-9-0-test June 10, 2025 06:06
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.

other than the naming issue, everything looks great. a wonderful feature we should have long ago

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.

one nitpick. but overall looks great!

assert result == expected_cmd


def test_get_default_branch(mocker: MockFixture):
Copy link
Member

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

Copy link
Contributor Author

@bearomorphism bearomorphism Aug 20, 2025

Choose a reason for hiding this comment

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

done, please review

@Lee-W Lee-W merged commit 7cd62fb into commitizen-tools:v4-9-0-test Aug 20, 2025
18 checks passed
@bearomorphism bearomorphism deleted the feat-check-from-default branch August 21, 2025 11:51
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

@woile woile Awaiting requested review from woile

@noirbizarre noirbizarre Awaiting requested review from noirbizarre

Assignees

No one assigned

Projects

None yet

Milestone

4.9.0

Development

Successfully merging this pull request may close these issues.

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