-
-
Notifications
You must be signed in to change notification settings - Fork 301
Fix bumping only on the first few matches #386
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
Conversation
for examply, if what we want to bump is "version = 1.2.9", we still lookup up "version = 2.0.0" and changed the offset this is fixed by changing offset only when matching is found #383
@woile I'm thinking of refactoring test through pytest-regressions like this commit. What do you think? Basically, it checks whether our result in this round is different from the previous round. By doing so, we can check whether the content is exactly the same instead of check only a few lines.
Codecov Report
@@ Coverage Diff @@ ## master #386 +/- ## ========================================== + Coverage 97.67% 97.89% +0.21% ========================================== Files 39 39 Lines 1378 1375 -3 ========================================== Hits 1346 1346 + Misses 32 29 -3
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
...le without end of line if we bump with version file with no end of line through regex, the last version will be ignored
298ddb1
to
6564682
Compare
@woile I accidentally find another bug and fixed it. Could you please check again? In tests/test_bump_update_version_in_files/test_multiplt_versions_to_bump_without_eol_.toml
on 943d873, our original bumping mechanism will not bump the last line. This has been fixed on e0af6a2. If it looks good, I think we're ready to merge.
Niceee, LGTM!
Uh oh!
There was an error while loading. Please reload this page.
Description
tests/test_bump_update_version_in_files/test_multiplt_versions_to_bump_without_eol_.toml
in 943d873 as example, our original bumping mechanism will not bump the last one.Checklist
./script/format
and./script/test
locally to ensure this change passes linter check and testExpected behavior
Bump all version specified in version_files
Steps to Test This Pull Request
Additional context