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: sharedVariableName #33111

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

feat: sharedVariableName #33111

wants to merge 3 commits into from

Conversation

rarkins
Copy link
Collaborator

@rarkins rarkins commented Dec 14, 2024

Changes

Replaces groupName in manager extract results with sharedVariableName instead. I chose to keep groupName later for simplicity and backwards compatibility.

Context

We should still group updates if they have shared variables, but separate the concept from manually-configured groupNames.

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

@rarkins
Copy link
Collaborator Author

rarkins commented Dec 14, 2024

Needs testing on at least one real repo

const groupName = result.spec;
const specName = result.spec;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I want to avoid using the string groupName at all in lib/modules/manager

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'm not familiar with why we needed grouping on Cocoapods

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Looks like it's been there since originally implemented by @zharinov

@rarkins rarkins requested a review from Churro December 14, 2024 10:01
@rarkins rarkins marked this pull request as draft December 14, 2024 10:01
@rarkins
Copy link
Collaborator Author

rarkins commented Dec 14, 2024

FYI I want to have a similar concept for monorepoName after this

lib/workers/repository/updates/branch-name.ts Outdated Show resolved Hide resolved
lib/workers/types.ts Outdated Show resolved Hide resolved
rarkins and others added 2 commits December 14, 2024 11:33
Co-authored-by: Michael Kriese <[email protected]>
Co-authored-by: Michael Kriese <[email protected]>
Copy link
Collaborator

@secustor secustor left a comment

Choose a reason for hiding this comment

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

@@ -305,6 +305,7 @@ export interface RenovateConfig
statusCheckNames?: Record<StatusCheckKey, string | null>;
env?: UserEnv;
logLevelRemap?: LogLevelRemap[];
sharedVariableName?: string;

Choose a reason for hiding this comment

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

@ Aung Ko

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.

4 participants