-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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: resolve repoConfig.packageRules.extends with repo config #14978
fix: resolve repoConfig.packageRules.extends with repo config #14978
Conversation
…h repo config" (renovatebot#14842)" This reverts commit 92477ae.
Apparently there are undocumented settings that would fail validation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needs test case(s) to validate that the bug for sourceUrl
never happen again.
It turns out that's easier said than done, because the tests for the merge module unconditionally mock the migrate-validate module that's responsible for actually throwing the error. I've added a test that checks that the mocked migrateAndValidate function wasn't passed the packageRules. If you know of a better way to test it, feel free to contribute. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure here 🤷♂️
…Rules-extends-again-sigh
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rarkins I'm still not sure about side effects here.
Same here. Let's try to step back: The problem here is that an This happens because:
We already have a bit of a hack to copy So would this change work instead?
|
It does for my use case. Updated the PR to use that. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤷♂️
@rarkins The auto-merge isn't happening for some reason? |
|
🎉 This PR is included in version 32.84.3 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Changes
Redo #14688, working around the undocumented setting thing from #14827.
Context
Closes #14974
Documentation (please check one with an [x])
How I've tested my work (please tick one)
I have verified these changes via: