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

fix(bump)!: only add version files and staged changes#1261

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
marcusalstrom wants to merge4 commits intocommitizen-tools:v5
base:v5
Choose a base branch
Loading
fromomidmme:fix/bump-uncommitted

Conversation

@marcusalstrom
Copy link

Description

Bump will now only add and commit version files along with any already committed changes. Any unstaged changes will remain unstaged.

NOTE: BREAKING CHANGE, since we added a new abstract method to VersionProvider any custom version provider will break. (open to any suggestions on how to avoid this)

Checklist

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

Expected behavior

Only version files and already staged changes will be committed on bump.

Steps to Test This Pull Request

  1. cz bump with unstaged changes
  2. only version files (and any staged changes) will be added and committed, unstaged changes will remain unstaged

Additional context

References issue#1194

timsu92 reacted with thumbs up emoji
@codecov
Copy link

codecovbot commentedOct 15, 2024
edited
Loading

Codecov Report

All modified and coverable lines are covered by tests ✅

Pleaseupload report for BASE (v5@eafcef6).Learn more about missing BASE report.

Additional details and impacted files
@@          Coverage Diff          @@##             v5    #1261   +/-   ##=====================================  Coverage      ?   97.64%           =====================================  Files         ?       55             Lines         ?     2594             Branches      ?        0           =====================================  Hits          ?     2533             Misses        ?       61             Partials      ?        0
FlagCoverage Δ
unittests97.64% <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.

@Lee-WLee-W changed the base branch frommaster tov4November 10, 2024 02:39
@Lee-W
Copy link
Member

As this is breaking change, I change the base branch to v4

"""

@abstractmethod
defget_files(self)->list[str]:
Copy link
Member

Choose a reason for hiding this comment

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

let's make it a property

Copy link
Member

Choose a reason for hiding this comment

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

maybe renamed asversion_files would be better?

@Lee-W
Copy link
Member

In general, I like this idea.@woile@noirbizarre would love to know your thought 🙂

@noirbizarre
Copy link
Member

No unexpected extra file in release, I like this idea too, but it should include the changelog too if the option is set.

If it was possible to bump a dirty working copy, this is obviously a breaking change, and we should provide a way around this. Maybe a setting and param--allow-changed-files asversion files are parsed for version and updated and some may have a process in which they stage their change to be taken in the bump without wanting version updated in this file

@Lee-WLee-W added this to the5.0.0 milestoneAug 24, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@Lee-WLee-WLee-W left review comments

@woilewoileAwaiting requested review from woilewoile is a code owner

@noirbizarrenoirbizarreAwaiting requested review from noirbizarrenoirbizarre is a code owner

Assignees

No one assigned

Projects

None yet

Milestone

5.0.0

Development

Successfully merging this pull request may close these issues.

3 participants

@marcusalstrom@Lee-W@noirbizarre

[8]ページ先頭

©2009-2025 Movatter.jp