Skip to content
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

fix: bump release type by dependent if deps.release is inherit #100

Merged
merged 6 commits into from
Jul 28, 2024

Conversation

gavmck
Copy link
Contributor

@gavmck gavmck commented May 15, 2024

Changes

When deps.release is set to inherit, but a package has changes, it overwrites the release type from the dependent package, even if the release type was greater (patch < minor < major).

This updates the resolveRelesaseType function so that if a dependent package has a larger version bump and deps.release is set to inherit, we'll take the inherited release type instead of the lesser local package one.

Test scenario: I had a major version bump in one of my packages that all other packages are dependent on and the dependent packages were only doing a minor update because they had local changes.

  • New code is covered by tests
  • All the changes are mentioned in docs (readme.md)

lib/updateDeps.js Outdated Show resolved Hide resolved
lib/updateDeps.js Show resolved Hide resolved
@antongolub
Copy link
Member

Hey, @gavmck,

Could you add a test for the fix?

@gavmck
Copy link
Contributor Author

gavmck commented May 22, 2024

Hey, @gavmck,

Could you add a test for the fix?

Sure thing, I'll drop some in shortly

@gavmck gavmck requested a review from antongolub July 18, 2024 04:52
@gavmck
Copy link
Contributor Author

gavmck commented Jul 18, 2024

@antongolub Sorry, I know this has taken ages!
Patched up feedback and added a test 👍

Copy link
Member

@antongolub antongolub left a comment

Choose a reason for hiding this comment

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

Seems good. Thanks for the contribution.
We will land this asap.

@antongolub antongolub merged commit d44f324 into qiwi:master Jul 28, 2024
3 checks passed
github-actions bot pushed a commit that referenced this pull request Jul 28, 2024
## [7.1.2](v7.1.1...v7.1.2) (2024-07-28)

### Bug Fixes

* bump release type by dependent if deps.release is inherit ([#100](#100)) ([d44f324](d44f324))
@qiwibot
Copy link
Member

qiwibot commented Jul 28, 2024

🎉 This PR is included in version 7.1.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants