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

Remove dependents from BumpInfo + use shared dep type list #988

Merged
merged 2 commits into from
Sep 10, 2024

Conversation

ecraig12345
Copy link
Member

@ecraig12345 ecraig12345 commented Sep 10, 2024

The dependents property of BumpInfo was only used in bumpInPlace and its immediate child functions. This PR removes it from BumpInfo and passes it as a parameter instead (working towards untangling the BumpInfo side effect spaghetti).

Also update updateRelatedChangeType to take object parameters.

From merging in an old version of this change, I noticed that we have multiple places in the code with a list of dep types considered for bumping. So I added an array constant and updated everywhere to use it.

@ecraig12345 ecraig12345 changed the title Remove dependents from BumpInfo Remove dependents from BumpInfo + use shared dep type list Sep 10, 2024
@ecraig12345 ecraig12345 merged commit 2f5fbbd into master Sep 10, 2024
4 checks passed
@ecraig12345 ecraig12345 deleted the ecraig/bump-info-dependents branch September 10, 2024 04:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant