-
Notifications
You must be signed in to change notification settings - Fork 2.7k
feat(config): templateStrings #35662
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
Conversation
} | ||
let writeLocation = this.migratedConfig; | ||
const keySplits = key.split('.'); | ||
if (keySplits.length === 2) { |
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.
should we log a warning when length is greater than 2?
|
||
- Change the entire layout/flow by using `prBodyTemplate` (we do not recommend this) | ||
- Change the entire layout/flow by using `stringTemplates.prBody` (we do not recommend this) | ||
- Add a header by using `prHeader` |
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.
migrating those later?
prFooter?: string; | ||
prBodyNotes?: string[]; | ||
prBodyTemplate?: string; | ||
templateStrings?: Record<string, string>; |
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.
we should later add known keys for better typo type check.
why closed? |
I don't have time to finish it |
Changes
Adds new config object
templateStrings
.Context
Closes #35663
Documentation (please check one with an [x])
How I've tested my work (please select one)
I have verified these changes via: