mirror of
https://github.com/renovatebot/renovate.git
synced 2026-11-01 10:09:50 +00:00
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:
+6
-1
@@ -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;
|
||||
|
||||
@@ -2353,7 +2353,6 @@ describe('config/validation', () => {
|
||||
};
|
||||
const { warnings } = await configValidation.validateConfig(
|
||||
'global',
|
||||
// @ts-expect-error: contains invalid values
|
||||
config,
|
||||
);
|
||||
expect(warnings).toEqual([
|
||||
|
||||
Reference in New Issue
Block a user