-
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
feat: allow templating of the extends field #27955
feat: allow templating of the extends field #27955
Conversation
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.
wrong, doesn't work that way
There's one issue with the replacements:messageFormat-{{package}}-to-@messageformat/{{package}} preset, since it contains |
I don't think that templating based on package is a valid concept. extends fields are evaluated during repository intialization, which is before any packages are detected. I think we need to go back to the discussion to understand better what you're trying to do |
It's not my intention to do templating base on package 😉 The problem is, that there is an existing preset which is called I've added a more detailed scenario here: #27952 (comment) |
Let's rename that |
Applied the changes. For the test I'm not quite sure how/where to implement that. |
…mplating # Conflicts: # lib/config/presets/common.ts # lib/config/presets/internal/replacements.ts
…ends-field-templating
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
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.
there should be a note that only a small subset of options can be used in template
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
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'll let a maintainer check the Renovate code and the configuration examples.
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.
Sorry for crossing wires on the PR reviews with the lead maintainer. 😉
I'll let the maintainer review again. 🙃
@rarkins may I ask you for a final approval? 😇 |
🎉 This PR is included in version 37.363.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Co-authored-by: Michael Kriese <michael.kriese@visualon.de> Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
Changes
Hi everyone,
this PR adds the
extends
field to the allowed field for handlebars templating to add some QOL for self-hosted config presets within the same directory like the self-host-config.Self-Hosted configuration
Repository configuration
Context
#27952
Documentation (please check one with an [x])
How I've tested my work (please select one)
I have verified these changes via: