Commit Graph

66 Commits

Author SHA1 Message Date
Sebastian Poxhofer 8d08b51db0 refactor: return a RepositoryResult while onboarding (#45531)
* refactor(onboarding): return repository result from ensureOnboarding

Rename ensureOnboardingPr to ensureOnboarding and have it return a new
'onboarding' RepositoryResult. renovateRepository now branches on
repoIsOnboarded, so exactly one of ensureOnboarding/updateRepo produces
the repository result and the non-null assertion on the update result
(TODO #22198) is no longer needed. updateRepo/update no longer return
undefined for non-onboarded repositories.

* refactor(onboarding): keep ensureOnboardingPr name
2026-08-28 11:50:28 +00:00
RahulGautamSingh ff037fa7c2 fix(prune): use configured base branch when single non-default baseBranchPatterns is set (#43152) 2026-05-07 17:09:10 +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
Jamie Tanna 6a4fa3f245 refactor(presets): return merged presets from resolveConfigPresets (#40422)
As part of future changes, we want to log the shallow configuration (the
full resolved configuration, but without any internal Renovate
configuration presets), where we'll want to note which presets have not
been merged in.

Before that, we can start with an initial refactor to indicate which
have been merged, and return them.
2026-01-14 16:52:16 +00:00
Jamie Tanna c1a8da0275 fix(instrumentation): correctly instrument extract and lookup (#39611)
When calling `extractDependencies`, we actually perform both `extract`
and `lookup` splits. However, we are instrumenting the whole method call
as the `extract` split, which results in incorrect tracing data.

To correct this, we can wrap the specific code responsible for the
extraction into `extract`, and then the separate code for `lookup`
accordingly.

This also makes sure that `emptyExtract` sets repository splits.
2025-11-28 13:47:29 +00:00
RahulGautamSingh 95ea2c9078 fix(branchPrefix): include base branch name iff multiple bases expected (#35423)
* use branchPrefix if multiple base branches expected

* fix test

* fix coverage

* apply suggestions

* apply suggestions

* use utility fn

* refactor tests

* fix test

* major overhaul: use baseBranches field internally

suggested by @secustor

* refactor: cleanup

* test: use better descriptions

* add tests

* fix logic

* fix test

* exclude unlisted versions when finding latestStable

---------

Co-authored-by: Rhys Arkins <rhys@arkins.net>
2025-10-20 06:27:56 +00:00
RahulGautamSingh 3823baa7dc fix(config): validate & migrate base branch config (#37902) 2025-09-09 06:29:25 +00:00
RahulGautamSingh 3691ff90b2 feat(config): baseBranchPatterns (#35579) 2025-07-14 19:05:27 +00:00
RahulGautamSingh 99411970a1 feat(git): Support baseBranches in fork mode (#36054)
Signed-off-by: Jan Høydahl <janhoy@users.noreply.github.com>
Signed-off-by: Jan Høydahl <jan.git@cominvent.com>
Co-authored-by: Jan Høydahl <janhoy@users.noreply.github.com>
Co-authored-by: Jan Høydahl <jan.git@cominvent.com>
Co-authored-by: Jan Høydahl <jh@cominvent.com>
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2025-05-24 07:06:07 +00:00
RahulGautamSingh b06ef83e9a refactor(workers): enhance some fns (#35941) 2025-05-17 11:09:39 +00:00
Johannes Feichtner ebdf81932a fix: ensure packageFiles isn't null during dependency extraction (#32570) 2024-11-16 16:51:17 +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
Rhys Arkins 9edde4794e refactor: string match function naming (#27392) 2024-02-18 15:46:24 +00:00
Sergei Zharinov de05ef057a refactor: Move irrelevant functions from the regex helper (#27100) 2024-02-06 21:51:41 +00:00
Sergei Zharinov b69416ce17 refactor(prettier): Force trailing commas (#25631) 2023-11-07 15:50:29 +00:00
Philip bece5a1c50 refactor(errors): massaging validation messages before we assign it (#25452)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2023-10-31 13:46:55 +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
Rhys Arkins 4e78c17234 fix(baseBranches): resolve presets within base branch config (#22958) 2023-06-24 09:03:16 +00:00
Rhys Arkins e00210d396 feat: baseBranches $default (#22824) 2023-06-16 20:06:23 +00:00
Rhys Arkins 93052ec917 feat: platform=local (#22010)
Co-authored-by: Jamie Magee <jamie.magee@gmail.com>
2023-05-10 04:30:12 +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
Markus Schulz dd6c8e5147 feat: Move some Git commands behind a PlatformScm interface (#19327)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2023-02-22 08:18:53 +00:00
Johannes Feichtner 27c46cc673 feat: add support for RegEx patterns in baseBranches (#20503)
Co-authored-by: Sebastian Poxhofer <secustor@users.noreply.github.com>
2023-02-20 23:32:08 +00:00
Rhys Arkins cc33d34ca8 refactor: PackageFile types (#20498)
Co-authored-by: RahulGautamSingh <rahultesnik@gmail.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2023-02-20 14:58:49 +00:00
Rhys Arkins 3cef2f2e4f refactor: PackageFile -> PackageFileContent (#20502) 2023-02-19 12:43:48 +00:00
Philip 7253720c9b feat(config): log base branch config (#18799)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Closes https://github.com/renovatebot/renovate/issues/17635
2022-11-24 11:15:10 +00:00
Gabriel-Ladzaretti 9f837f226d feat(lib/logger): add base branch metadata for multi-base repositories (#17027) 2022-08-12 08:19:31 +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
Michael Kriese e5c6f38d75 refactor: enable strict checks (#16168)
* refactor:  enable strict checks

* chore: revert changes

* chore: fix tsconfig
2022-06-21 13:00:21 +02:00
Sergei Zharinov 0cf4f48842 refactor: Strict null checks for all files except tests (#16071)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-06-20 11:47:07 +02:00
MaronHatoum 3e312fd641 feat: refactor dry-run option (#14849)
* feat : added dryRun new behavior + added more migration

* feat : revert extra space

* feat : revert extra code

* feat : added unit tests

* feat : added unit tests

* feat : removed extra tests + removed unnecessary condition

* feat: changes after CR

* feat: added dry run migration cli and env + unit tests

* Update lib/workers/global/config/parse/cli.ts

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>

* feat: migration changes + added logs + added unit test

* feat: removed log msgs + change unit test

* feat: update

* feat: update

* Update lib/workers/global/config/parse/cli.ts

Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-04-11 20:29:02 +00:00
Michael Kriese 89d7fdf781 Revert "feat: extend dryRun options to extract lookup full (#14555)" (#14836)
This reverts commit 39471b57ad.
2022-03-29 02:47:54 +02:00
MaronHatoum 39471b57ad feat: extend dryRun options to extract lookup full (#14555) 2022-03-28 13:55:26 +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 e0d891799a fix: baseBranches branchPrefix (#13872) 2022-01-27 20:38:15 +00:00
Michael Kriese 3b651408e7 fix: readd missing config properties (#13716) 2022-01-21 10:58:29 +00:00
Oleg Krivtsov e148b66d8a feat(config): read config from branches in baseBranches (#12514)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2022-01-20 08:11:25 +00:00
Rhys Arkins 7109030618 refactor(dashboard): move logic into common file (#10454)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2021-06-16 12:05:36 +00:00
Sergei Zharinov b957d4afb7 refactor(config): Extract interfaces from "index.ts" to separate "types.ts" (#9629) 2021-04-20 10:52:57 +02:00
Michael Kriese 74d7691bef refactor: optimize type usage (#8947) 2021-03-02 21:44:55 +01:00
Rhys Arkins 2c9b1de0b8 refactor: remove unused branchList in updateRepo 2020-09-01 18:33:45 +02:00
Rhys Arkins 1627db8c3f refactor: simplify baseBranchSha, reduce checkouts (#7159) 2020-09-01 18:32:58 +02:00
Rhys Arkins 012561f69a feat(git): get branch commit without cloning (#7130)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2020-08-30 22:03:58 +02:00
Rhys Arkins 80b691c807 refactor: remove platform.setBaseBranch (#7137) 2020-08-30 21:27:02 +02:00
Rhys Arkins c234428fd5 fix: more flexible check for dashboard approval 2020-08-25 10:02:11 +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
renovate[bot] ccf286240e chore(deps): update linters (major) (#6769)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Jamie Magee <jamie.magee@gmail.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Jamie Magee <JamieMagee@users.noreply.github.com>
2020-08-10 16:18:08 +02:00
Jamie Magee 456245aabe chore(eslint): enable typescript 3.7 rules (#6765) 2020-07-18 08:42:32 +02:00