Jamie Tanna
ff6761ed23
fix(config/global): return default values for GlobalConfig.get ( #42113 )
...
* fix(config/global): return default values for `GlobalConfig.get`
As noted in #39949 , it can be awkward working with in `GlobalConfig.get`, where
we would previously need to specify the default value when calling `.get`,
which could lead to drift with the defaults for a given config option.
To reduce this risk, we can rely on a given `default` for a configuration
option, providing that as a default.
Because this now definitely returns a value that matches the config option, it
now allows us to remove `!` assertions.
* fixup! fix(config/global): return default values for `GlobalConfig.get`
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com >
* fixup! fix(config/global): return default values for `GlobalConfig.get`
* test(presets): remove impossible test
As it's now not possible to set a value as `undefined` (as
`GlobalConfig` will then use the default), this test no longer validates
anything.
* test(workers/repository): add mock
Now `platform` defaults to `github`, we need to mock out the call to
fetch config.
Co-authored-by: Claude Sonnet 4.6 <jamie.tanna+claude-code@mend.io >
* test: coverage
* test: coverage
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com >
Co-authored-by: Claude Sonnet 4.6 <jamie.tanna+claude-code@mend.io >
2026-05-15 17:10:38 +00:00
Sergei Zharinov
930cf6633c
refactor: Rewrite imports with .ts extensions ( #40700 )
...
fix: Additional vi.mock path corrections and prettier formatting
2026-01-26 22:48:17 +00:00
Sergei Zharinov
558bdc159d
feat: Cleanup mutexes before each run ( #38987 )
...
* feat: Cleanup mutexes before each run
* Update setup.ts
* Update mutex.spec.ts
* Update setup.ts
* Unmock mutex in deb datasource spec to prevent race condition
* Update index.spec.ts
2025-11-15 21:24:43 +00:00
RahulGautamSingh
5adb95593f
feat(config): variables ( #35350 )
2025-07-06 07:24:33 +00:00
RahulGautamSingh
0d23707604
refactor(logger): remove templating from WARN log messages ( #33488 )
2025-01-14 13:03:05 +00:00
Rhys Arkins
e27fe66980
feat(git): cloneSubmodulesFilter ( #33115 )
2024-12-18 13:01:14 +00:00
Sebastian Poxhofer
3681b2a945
chore: eslint to enforce for typed imports ( #30844 )
2024-08-19 13:15:27 +00:00
Rhys Arkins
654c447e6e
feat: mode=silent ( #28396 )
2024-05-06 11:40:54 +00:00
Sergei Zharinov
5ddb18f9bd
feat: Make memory cache available before repo init ( #28079 )
2024-03-21 21:33:41 +00:00
Rhys Arkins
eb5f0a740c
fix(cache): Revert "refactor: Initialize caches before repository init" ( #27908 )
2024-03-13 12:27:23 +00:00
Sergei Zharinov
06d751ede2
refactor: Initialize caches before repository init ( #27897 )
2024-03-13 05:07:09 +00:00
Sergei Zharinov
c30a4b0b54
feat(logger): Log level remapping ( #26951 )
...
Co-authored-by: Rhys Arkins <rhys@arkins.net >
Co-authored-by: Michael Kriese <michael.kriese@visualon.de >
2024-02-16 20:06:11 +00:00
Sergei Zharinov
b69416ce17
refactor(prettier): Force trailing commas ( #25631 )
2023-11-07 15:50:29 +00:00
bri becker
0882bec330
feat(pr): expandCodeOwnersGroups ( #25317 )
...
Co-authored-by: Michael Kriese <michael.kriese@visualon.de >
Co-authored-by: Rhys Arkins <rhys@arkins.net >
2023-11-07 09:21:04 +00:00
Rhys Arkins
36e2b328bb
chore: update types reference
2023-08-15 11:31:15 +02:00
Sergei Zharinov
53263bbfda
feat: Clone objects via wrapper ( #22970 )
2023-06-27 13:09:59 +00:00
Jamie Magee
a6dfa70c1d
chore: migrate to structuredClone ( #20885 )
...
Co-authored-by: Rhys Arkins <rhys@arkins.net >
2023-04-27 05:06:22 +00:00
Sergei Zharinov
49cdaf2ac2
feat: Support for logging once per repo ( #20168 )
2023-02-03 07:00:58 +00:00
Rhys Arkins
9d7697e44e
fix(git): clone submodules after repo config ( #18014 )
2022-09-28 09:19:26 +02:00
Sergei Zharinov
6a93997863
feat(cache): Repository cache fingerprinting ( #17367 )
2022-08-30 04:58:57 +00:00
Michael Kriese
8270d5512d
refactor: fix lint issues ( #16779 )
...
* refactor: fix lint issues
* Update lib/renovate.ts
* chore: revert toplevel await for ts
2022-07-26 08:32:12 +00:00
Tobias
3d96c7c5a1
feat(config): print hostRules when printConfig=true ( #15699 )
2022-06-23 07:39:31 +00:00
Rhys Arkins
cf6885f71a
fix(config): move endpoint, platform to GlobalConfig ( #15864 )
...
Co-authored-by: Michael Kriese <michael.kriese@visualon.de >
2022-06-03 06:43:58 +02:00
Rhys Arkins
7fdd9e147c
fix: clear PackageFiles during initRepo ( #15635 )
2022-05-18 15:51:54 +02:00
Sergei Zharinov
2153835b94
refactor: Separate repository caches init and reset phases ( #15142 )
2022-04-16 10:20:09 +02:00
Rhys Arkins
dca3418bbd
refactor: lib/modules ( #14488 )
...
Moves datasource, manager, platform and versioning code from lib/ into new lib/modules/
BREAKING CHANGE: External tools must update paths to datasource, manager, platform and versioning
2022-03-04 09:04:02 +01:00
Rhys Arkins
d6d4124b11
feat(git): blobless git ( #11401 )
2021-09-09 09:25:12 +02:00
bprachi29
2f826677d0
fix(logs): INFO --print-config ( #11299 )
2021-08-23 16:27:11 +02:00
Florian Greinacher
2cc751a0a1
feat: ignore unavailable users ( #9406 )
2021-04-22 21:16:58 +02:00
Sergei Zharinov
b957d4afb7
refactor(config): Extract interfaces from "index.ts" to separate "types.ts" ( #9629 )
2021-04-20 10:52:57 +02:00
Rhys Arkins
af1e4ee1a7
feat: secrets ( #8070 )
2021-03-22 15:51:38 +01:00
renovate-testing
ea0bcdd185
feat(git): Specify additional git authors to ignore ( #9082 )
2021-03-14 09:27:40 +01:00
Rhys Arkins
116693be64
fix: Revert "feat: secrets" ( #8069 )
...
This reverts commit ec1b3c386b .
2020-12-18 15:33:21 +01:00
Rhys Arkins
ec1b3c386b
feat: secrets ( #6664 )
2020-12-18 13:38:28 +01:00
Rhys Arkins
4b2eaf54ec
refactor: initRepo cache ( #7146 )
2020-08-31 20:01:41 +02:00
Rhys Arkins
6dbb1c710c
refactor: get defaultBranchSha from git
2020-08-31 13:14:13 +02:00
Rhys Arkins
80b691c807
refactor: remove platform.setBaseBranch ( #7137 )
2020-08-30 21:27:02 +02:00
Rhys Arkins
c1245b2d4b
feat(internal): lazy git initialization ( #7006 )
...
Co-authored-by: Michael Kriese <michael.kriese@visualon.de >
2020-08-28 10:08:39 +02:00
Rhys Arkins
824bfca207
fix: revert mergeRenovateConfig removal ( #7028 )
2020-08-19 12:59:19 +02:00
Rhys Arkins
5f80b726d9
fix: revert baseBranch/baseBranchSha change
...
Closes #7027
2020-08-19 12:01:42 +02:00
Rhys Arkins
2d0961af8d
refactor: move onboarding check into getRepoConfig
2020-08-19 09:36:02 +02:00
Rhys Arkins
805e34e5b0
refactor: remove unnecessary baseBranch settings
2020-08-19 09:18:53 +02:00
Rhys Arkins
9483a61110
refactor: clone config when initializing
2020-08-19 09:17:55 +02:00
Rhys Arkins
b6af8188d1
refactor: initRepo ( #7022 )
2020-08-19 06:27:48 +02:00
Rhys Arkins
3985953da2
fix: don’t error when baseBranches are not found ( #7019 )
...
Log a warning when baseBranches are missing but otherwise just skip over and keep going.
Closes #6669
2020-08-18 14:49:38 +02:00
Rhys Arkins
bb10d784e7
refactor: platform.initRepo return defaultBranch not baseBranch ( #6737 )
2020-07-12 21:30:11 +02:00
Rhys Arkins
52cddfde8b
refactor: remove branch functions from platform ( #6676 )
2020-07-04 18:15:29 +02:00
Rhys Arkins
d70b8c1f2f
feat: repositoryCache ( #6589 )
...
Co-authored-by: Michael Kriese <michael.kriese@visualon.de >
2020-06-29 15:51:22 +02:00
Rhys Arkins
55625a893b
refactor: run cache -> mem cache ( #6582 )
2020-06-25 09:23:06 +02:00
Rhys Arkins
e834f2b826
feat: prHeader and prFooter ( #6511 )
2020-06-14 08:49:52 +02:00