Commit Graph

174 Commits

Author SHA1 Message Date
RahulGautamSingh 8c7e931da3 feat(config)!: support jsonc in existing config + preset files (#36141)
Use JSONC parser for JSON config files.

Renovate will now officially support JSONC syntax in config files which are either explicitly (e.g. `renovate.json`) or implicitly (e.g. `.renovaterc`) JSON files.
You may continue using "pure" JSON in such files, or use JSONC syntax instead (e.g. trailing commas, comments).
Support for files ending in `.jsonc` will be added soon.

Note: this is not technically a breaking change as it is backwards-compatible with existing JSON support.
2025-06-19 11:01:54 +02:00
RahulGautamSingh 49fa1be464 feat(util): getEnv (#35161)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2025-05-06 18:37:28 +00:00
Claude Muller 22fc1acb26 fix(config): merge globalExtends before default config (#35521)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2025-05-05 09:46:24 +00:00
renovate[bot] 86408be681 build(deps): update dependency @sindresorhus/is to v7 (main) (#35682)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2025-05-02 09:43:35 +00:00
Rhys Arkins e7a4162169 refactor(config): set and delete keys early (#35679)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2025-05-02 08:15:56 +00:00
Rhys Arkins 319de90d4f feat(config)!: validate allowedCommands against post-compiled commands (#35564)
Drops `allowCommandTemplating` so that templating is always allowed. Changes validation logic so that `allowedCommands` are now compared to the post-compiled command instead of pre-compiled.

BREAKING CHANGE: `allowedCommands` filters need to be updated to match against the post-compiled `postUpgradeCommands` in cases where templating was in use.
2025-04-30 10:54:47 +02:00
RahulGautamSingh af1cc9902b fix(config): apply secrets to global config (#35266) 2025-04-22 08:34:22 +00:00
RahulGautamSingh e0e53b9d76 refactor: move customEnvVariables to util folder (#35097) 2025-03-31 09:10:48 +00:00
renovate[bot] 94c073ab6b chore(deps): update linters (main) (#34869)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: secustor <sebastian@poxhofer.at>
2025-03-23 17:57:04 +00:00
Michael Kriese 19c115c813 test: cleanup (#34785) 2025-03-13 17:52:09 +00:00
Michael Kriese b5ff90f2bd fix: improve coverage (#34667) 2025-03-06 17:05:19 +00:00
Michael Kriese a60c1c4752 fix(global): import config file as url (#34637) 2025-03-05 17:35:12 +00:00
Sebastian Poxhofer 78002a0993 feat: add RENOVATE_ prefix to Github com token and env host rules (#34568) 2025-03-05 12:54:30 +00:00
Michael Kriese b88eabcb9f feat(config): support .mjs config files (#34626) 2025-03-05 09:53:09 +01:00
Michael Kriese 3f0f6a04b6 build: compile with nodenext target (still cjs) (#34584) 2025-03-04 07:37:06 +00:00
Trim21 6e5731b554 test: migrate from jest to vitest (#34499) 2025-02-26 14:18:38 +00:00
Michael Kriese 997c23502e test: migrate to vitest (#34475)
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
2025-02-26 09:35:54 +00:00
renovate[bot] 55845508b6 chore(deps): update eslint monorepo to v9 (major) (#33573)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2025-02-20 11:31:13 +00:00
RahulGautamSingh e5fb2e57ee feat(config/self-hosted): processEnv (#34137)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2025-02-17 11:21:19 +00:00
Rhys Arkins 12a62cc0c7 feat: rename allowedPostUpgradeCommands/allowPostUpgradeCommandTemplating (#32657) 2025-01-24 12:30:09 +00:00
RahulGautamSingh 0d23707604 refactor(logger): remove templating from WARN log messages (#33488) 2025-01-14 13:03:05 +00:00
RahulGautamSingh f2acf6a9a2 refactor(logger): remove templating from FATAL logs (#33490) 2025-01-10 11:15:01 +00:00
Gabriel-Ladzaretti 19a99d2ca9 feat(config): add repo phase enviorment config (#33360) 2025-01-07 06:56:48 +00:00
Gabriel-Ladzaretti 6aa5c4238f refactor(config): reusable env getConfig function (#33350)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2024-12-31 13:28:26 +00:00
renovate[bot] dc6bf16c37 chore(deps): update linters (#32318)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2024-12-20 15:02:34 +00:00
Rich DiCroce de518af333 feat(config): Log unknown parsing error at debug level (#32512)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2024-11-13 14:10:49 +00:00
Sebastian Poxhofer d74ba704fd refactor: use yaml instead of js-yaml for parsing YAML files (#31336) 2024-09-16 18:03:23 +00:00
RahulGautamSingh 8ec8391310 feat(self-hosted): convert experimental vars to config options (#29137)
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
2024-08-19 15:45:49 +00:00
Sebastian Poxhofer 3681b2a945 chore: eslint to enforce for typed imports (#30844) 2024-08-19 13:15:27 +00:00
renovate[bot] eb8c08079e chore(deps): update typescript-eslint monorepo to v8 (major) (#30750)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2024-08-14 10:33:02 +00:00
RahulGautamSingh 3857332a9e feat(self-hosted): convert experimental env vars to config options (#29154)
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
2024-08-07 07:28:34 +00:00
RahulGautamSingh bb6c27faf8 feat(github): convert platformCommit to enum (#29156)
BREAKING CHANGE: platformCommit will be automatically enabled if running as a GitHub app
2024-07-25 15:28:16 +02:00
RahulGautamSingh cf29c33809 feat(logging)!: drop logFile and logFileLevel (#29104)
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
2024-07-25 15:28:16 +02:00
RahulGautamSingh c6c4572ecb feat(logging)!: initialize file logging via env (#28104)
Closes #14705

BREAKING CHANGE: File logging must now be set via env and not in config.js
2024-07-25 15:28:16 +02:00
RahulGautamSingh 0c500f52f2 feat(config)!: change onboardingNoDeps from boolean to enum (#28133)
Change onboardingNoDeps from boolean to enum, with new default "auto". Auto means that Renovate will continue skipping repos with no dependencies if autodiscover is in use, but onboarding them if they are explicitly specified in a non-autodiscover mode.

Closes #28101

BREAKING CHANGE: onboardingNoDeps changes from boolean to enum. Repositories with no dependencies will be onboarded unless in autodiscover mode.
2024-07-25 15:28:16 +02:00
RahulGautamSingh 044dc0fa28 feat(self-hosted): mergeConfidenceEndpoint and mergeConfidenceDatasources (#28880)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
2024-05-21 13:57:56 +00:00
RahulGautamSingh 10a4a8bb26 feat(self-hosted): autodiscoverRepoSort and autodiscoverRepoOrder (#28738)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2024-05-06 18:16:01 +00:00
RahulGautamSingh 0a438657e8 fix(validation): massage config (#28458)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2024-04-17 05:04:21 +00:00
RahulGautamSingh de65584bf8 feat(config): validate file config on repo runs (#26379)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2024-04-13 08:52:28 +00:00
Sigurd Spieckermann 1391570e44 fix(validator): use absolute path for all .js configs (#27139) 2024-02-13 16:51:20 +00:00
Leroy Korterink 6fcd7d5d23 fix: Update custom config file parse error (#26914) 2024-01-29 11:22:46 +00:00
Michael Kriese 6c2263eeb3 chore: fix types for linting (#26695) 2024-01-17 11:30:45 +00:00
Rhys Arkins c1b4739525 fix(config): ignore GITHUB_COM_TOKEN when detectHostRulesFromEnv=true (#26224) 2023-12-11 14:54:29 +01:00
Sebastian Poxhofer 3c33a26441 refactor(util/yaml): rename load and loadAll to parseSingleYaml and parseYaml (#26084) 2023-12-01 20:13:01 +00:00
Jamie Haywood 178cc71838 feat(config): add .cjs file extension config support (#26075)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2023-12-01 13:07:10 +00:00
Sebastian Poxhofer f42d0583d5 refactor(utils/yaml): centralize YAML parsing to allow central templating handling (#26068) 2023-12-01 11:58:43 +00:00
Sergei Zharinov b69416ce17 refactor(prettier): Force trailing commas (#25631) 2023-11-07 15:50:29 +00:00
RahulGautamSingh 4231b1ae09 feat: predictible json/json5 handling (#24612)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2023-11-06 10:30:11 +00:00
Yun Lai bdabe43094 feat(hostRules): support https options and platform in host rules from env (#25015)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2023-10-31 13:04:30 +00:00
Michael Kriese 84a97a62fa test(perf): improve test speed (#24323) 2023-09-08 11:40:04 +00:00