Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork304
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
base:v5
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
BREAKING CHANGE: VersionProvider has new method which will break any custom version provider
codecovbot commentedOct 15, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@## v5 #1261 +/- ##===================================== Coverage ? 97.64% ===================================== Files ? 55 Lines ? 2594 Branches ? 0 ===================================== Hits ? 2533 Misses ? 61 Partials ? 0
Flags with carried forward coverage won't be shown.Click here to find out more. ☔ View full report in Codecov by Sentry. |
Lee-W commentedNov 10, 2024
As this is breaking change, I change the base branch to v4 |
| """ | ||
| @abstractmethod | ||
| defget_files(self)->list[str]: |
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.
let's make it a property
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.
maybe renamed asversion_files would be better?
Lee-W commentedNov 10, 2024
In general, I like this idea.@woile@noirbizarre would love to know your thought 🙂 |
noirbizarre commentedNov 28, 2024
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 |
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
./scripts/formatand./scripts/testlocally to ensure this change passes linter check and testExpected behavior
Only version files and already staged changes will be committed on bump.
Steps to Test This Pull Request
Additional context
References issue#1194