Movatterモバイル変換


[0]ホーム

URL:


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

refactor(BaseFormat): merge ChangelogFormat into BaseFormat#1612

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
bearomorphism wants to merge3 commits intocommitizen-tools:master
base:master
Choose a base branch
Loading
frombearomorphism:remove-changelog-format

Conversation

@bearomorphism
Copy link
Collaborator

Description

BaseFormat already looks like a base class for changelog format, but it has a parent class protocolChangelogFormat. It is confusing to me.

Additionally, the protocolChangelogFormat declares implementations of methods. I consider it confusing too.

This change addresses the unnecessary complexity and removeChangelogFormat completely from the codebase. The alternative now isBaseFormat.

I am not sure if this is a breaking change. Please help to review.

Comment on lines +94 to +99

defparse_version_from_title(self,line:str)->VersionTag|None:
raiseNotImplementedError("parse_version_from_title is not implemented")

defparse_title_level(self,line:str)->int|None:
raiseNotImplementedError("parse_title_level is not implemented")
Copy link
CollaboratorAuthor

Choose a reason for hiding this comment

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

Not sure if we're going to implement these.

Copy link
CollaboratorAuthor

Choose a reason for hiding this comment

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

I think not. Those methods look like protected and is only used inget_metadata_from_file but this class overrides the functionget_metadata_from_file

@codecov
Copy link

codecovbot commentedSep 16, 2025
edited
Loading

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.29%. Comparing base (120d514) to head (03abf0d).
⚠️ Report is 842 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@##           master    #1612      +/-   ##==========================================+ Coverage   97.33%   98.29%   +0.95%==========================================  Files          42       58      +16       Lines        2104     2695     +591     ==========================================+ Hits         2048     2649     +601+ Misses         56       46      -10
FlagCoverage Δ
unittests98.29% <100.00%> (+0.95%)⬆️

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.

@Lee-WLee-W added this to the4.10.0 milestoneSep 18, 2025
@Lee-WLee-W changed the base branch fromv4-9-2 tomasterNovember 8, 2025 08:41
@Lee-W
Copy link
Member

I think@noirbizarre might be a better person to take a look at this one. My guts feeling tells meChangelogFormat is mostly for typing

@Lee-WLee-W removed this from the4.10.0 milestoneNov 8, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@woilewoileAwaiting requested review from woilewoile is a code owner

@Lee-WLee-WAwaiting requested review from Lee-WLee-W is a code owner

@noirbizarrenoirbizarreAwaiting requested review from noirbizarrenoirbizarre is a code owner

At least 1 approving review is required to merge this pull request.

Assignees

@noirbizarrenoirbizarre

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@bearomorphism@Lee-W@noirbizarre

[8]ページ先頭

©2009-2025 Movatter.jp