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

feat: separateMultipleMinor #24538

Merged
merged 35 commits into from Mar 24, 2024

Conversation

phyzical
Copy link
Contributor

@phyzical phyzical commented Sep 20, 2023

Changes

Attempt at supporting the seperateMultipleMinor

  • added logic to adjust branch topic when enabled
  • added logic to pull all minor versions to buckets when enabled

Will follow up with one for patch also when/is this is merged

Context

My usecase is seperating eks versions as individual prs as they are "minor versions" but you must go 1 by 1 during an update

Documentation (please check one with an [x])

  • I have updated the documentation, or
  • No documentation update is required

How I've tested my work (please select one)

I have verified these changes via:

  • Code inspection only, or
  • Newly added/modified unit tests, or
  • No unit tests but ran on a real repository, or
  • Both unit tests + ran on a real repository

below is it run for my exact usecase happy to try others if suggested

https://github.com/phyzical/renovate-tester/pulls

It works for my tiny usecase.

but I think ive done this wrong though... as i felt like i was fighting the {{#if separateMinorPatch}}{{#if isPatch}} logic so open to feedback

i also couldn't find an example of separateMultipleMajor being run from a multiple branch test context, there just seems to be hardcoded tests against static templates. or have i not looked hard enough

Thanks!

@phyzical phyzical changed the title Feature: Support seperateMultipleMinor feat: Support seperateMultipleMinor Sep 20, 2023
lib/config/presets/internal/default.ts Outdated Show resolved Hide resolved
lib/workers/repository/updates/branch-name.ts Outdated Show resolved Hide resolved
@phyzical
Copy link
Contributor Author

phyzical commented Sep 20, 2023

Not sure if this second approach is right either 323a247 , but moved the logic away from the user configurable template over to a replace on .x to inject the minor version that way it doesn't run into duplicate branch issues.

But i suppose this is still an assumption its part of the template that is configurable.

Will update the tests when i have a confirmation this way is the correct way

rarkins
rarkins previously approved these changes Sep 27, 2023
@rarkins rarkins changed the title feat: Support seperateMultipleMinor feat: Support separateMultipleMinor Sep 27, 2023
rarkins
rarkins previously approved these changes Sep 27, 2023
Copy link
Member

@viceice viceice left a comment

Choose a reason for hiding this comment

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

otherwise LGTM

docs/usage/configuration-options.md Outdated Show resolved Hide resolved
rarkins
rarkins previously approved these changes Sep 28, 2023
rarkins
rarkins previously approved these changes Sep 28, 2023
@phyzical phyzical requested a review from viceice February 6, 2024 02:32
@phyzical
Copy link
Contributor Author

phyzical commented Feb 6, 2024

sorry forgot about this pr thanks for the nudge

lib/config/options/index.ts Outdated Show resolved Hide resolved
docs/usage/configuration-options.md Outdated Show resolved Hide resolved
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
@angelbarrera92
Copy link

Any chance to have this merge soon?

viceice
viceice previously approved these changes Mar 16, 2024
@viceice
Copy link
Member

viceice commented Mar 16, 2024

needs deconflicting

rarkins
rarkins previously approved these changes Mar 18, 2024
@rarkins rarkins enabled auto-merge March 18, 2024 21:45
@rarkins rarkins requested review from viceice and rarkins March 24, 2024 07:53
@rarkins rarkins added this pull request to the merge queue Mar 24, 2024
Merged via the queue into renovatebot:main with commit e8493c5 Mar 24, 2024
37 checks passed
@renovate-release
Copy link
Collaborator

🎉 This PR is included in version 37.269.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

karfau added a commit to bettermarks/renovate-config that referenced this pull request Mar 25, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New feature: separateMultiplePatch and separateMultipleMinor
10 participants