diff --git a/docs/usage/configuration-options.md b/docs/usage/configuration-options.md index d1f182281e6af878e20db0df430274840096b3c3..120c845f10ce08d64ef39dcaf178c42b2efb8dc7 100644 --- a/docs/usage/configuration-options.md +++ b/docs/usage/configuration-options.md @@ -2695,10 +2695,6 @@ When the `lockfileVersion` is higher than `1` in `package-lock.json`, remediatio This is considered a feature flag with the aim to remove it and default to this behavior once it has been more widely tested. -## unicodeEmoji - -If enabled emoji shortcodes (`:warning:`) are replaced with their Unicode equivalents (`âš ï¸`). - ## updateInternalDeps Renovate defaults to skipping any internal package dependencies within monorepos. diff --git a/docs/usage/self-hosted-configuration.md b/docs/usage/self-hosted-configuration.md index 774ee0d51445c765bbed817b2c276a8397fcc440..a130e7d1855ccefbd8747d67014a6036e169b89a 100644 --- a/docs/usage/self-hosted-configuration.md +++ b/docs/usage/self-hosted-configuration.md @@ -665,6 +665,10 @@ This is currently applicable to `npm` and `lerna`/`npm` only, and only used in c ## token +## unicodeEmoji + +If enabled emoji shortcodes (`:warning:`) are replaced with their Unicode equivalents (`âš ï¸`). + ## username You might need to set a `username` if you use: diff --git a/lib/config/options/index.ts b/lib/config/options/index.ts index 9f678babefd3ec2f5b33327e8cd6dcf68ce46e94..3253e6e2372f9deaeda4c5db72765aafb0419d89 100644 --- a/lib/config/options/index.ts +++ b/lib/config/options/index.ts @@ -2094,6 +2094,7 @@ const options: RenovateOptions[] = [ description: 'Enable or disable Unicode emoji.', type: 'boolean', default: true, + globalOnly: true, }, { name: 'gitLabIgnoreApprovals', diff --git a/lib/modules/platform/bitbucket-server/index.md b/lib/modules/platform/bitbucket-server/index.md index ea768b8a3ba7016033cf57619b3fcf071fd1fd8f..75fcbb668726fe16ea68a5d45997f8c6a4acc05a 100644 --- a/lib/modules/platform/bitbucket-server/index.md +++ b/lib/modules/platform/bitbucket-server/index.md @@ -13,7 +13,7 @@ Remember to set `platform=bitbucket-server` somewhere in your Renovate config fi If you're not using `@renovate-bot` as username then set your custom `username` for the bot account. -If you use MySQL or MariaDB you must set `unicodeEmoji` to `false` in the bot config (`RENOVATE_CONFIG_FILE`) to prevent issues with emojis. +If you use MySQL or MariaDB you must set `unicodeEmoji` to `false` in the global bot config (`RENOVATE_CONFIG_FILE`) to prevent issues with emojis. ## Unsupported platform features/concepts diff --git a/lib/util/emoji.ts b/lib/util/emoji.ts index f5b9375afbb22aa9952692b4c54fc77c7c362fb8..8d310db93adc7a34d0e67d9ec2b3642c7d9b725d 100644 --- a/lib/util/emoji.ts +++ b/lib/util/emoji.ts @@ -33,8 +33,8 @@ function lazyInitMappings(): void { } } -export function setEmojiConfig(_config: RenovateConfig): void { - unicodeEmoji = !!_config.unicodeEmoji; +export function setEmojiConfig(config: RenovateConfig): void { + unicodeEmoji = !!config.unicodeEmoji; } const shortCodeRegex = regEx(SHORTCODE_REGEX.source, 'g');