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
This commit is contained in:
Felipe Santos
2026-06-01 06:14:00 -03:00
committed by GitHub
parent dd1e0c88a9
commit 80690bfab9
2 changed files with 6 additions and 2 deletions
+6 -1
View File
@@ -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;
-1
View File
@@ -2353,7 +2353,6 @@ describe('config/validation', () => {
};
const { warnings } = await configValidation.validateConfig(
'global',
// @ts-expect-error: contains invalid values
config,
);
expect(warnings).toEqual([