From 80690bfab9becc5a577ce8bbdaff5784fd3dbca7 Mon Sep 17 00:00:00 2001 From: Felipe Santos Date: Mon, 1 Jun 2026 06:14:00 -0300 Subject: [PATCH] fix(types): allow `gitUrl` in global config (#43652) * fix(types): allow `gitUrl` in global config * Keep it in repo config otherwise platform init won't have it * Set the type in RenovateConfig instead * Move to AllConfig --- lib/config/types.ts | 7 ++++++- lib/config/validation.spec.ts | 1 - 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/config/types.ts b/lib/config/types.ts index c9c5fce683..f84f333b34 100644 --- a/lib/config/types.ts +++ b/lib/config/types.ts @@ -2,7 +2,11 @@ import type { Category, PlatformId } from '../constants/index.ts'; import type { LogLevelRemap } from '../logger/types.ts'; import type { ManagerName } from '../manager-list.generated.ts'; import type { CustomManager } from '../modules/manager/custom/types.ts'; -import type { RepoSortMethod, SortMethod } from '../modules/platform/types.ts'; +import type { + GitUrlOption, + RepoSortMethod, + SortMethod, +} from '../modules/platform/types.ts'; import type { AutoMergeType, HostRule, @@ -506,6 +510,7 @@ export interface CustomDatasourceConfig { */ export interface AllConfig extends RenovateConfig, GlobalOnlyConfigLegacy, RepoGlobalConfig { + gitUrl?: GitUrlOption; password?: string; token?: string; username?: string; diff --git a/lib/config/validation.spec.ts b/lib/config/validation.spec.ts index 971ec19a4b..00f83d13f7 100644 --- a/lib/config/validation.spec.ts +++ b/lib/config/validation.spec.ts @@ -2353,7 +2353,6 @@ describe('config/validation', () => { }; const { warnings } = await configValidation.validateConfig( 'global', - // @ts-expect-error: contains invalid values config, ); expect(warnings).toEqual([