diff --git a/lib/util/cache/repository/index.ts b/lib/util/cache/repository/index.ts index d28de45473e00ca8ee89884385f4da24836fc89b..f08212ae49fde1a129204b1eb0b4f967a500c638 100644 --- a/lib/util/cache/repository/index.ts +++ b/lib/util/cache/repository/index.ts @@ -3,7 +3,7 @@ import { join } from 'upath'; import { RenovateConfig, RepositoryCacheConfig } from '../../../config/common'; import { logger } from '../../../logger'; import { PackageFile } from '../../../manager/common'; -import { RepoConfig } from '../../../workers/repository/init/common'; +import { RepoFileConfig } from '../../../workers/repository/init/common'; export interface BaseBranchCache { sha: string; // branch commit sha @@ -16,7 +16,7 @@ export interface Cache { init?: { defaultBranch?: string; defaultBranchSha?: string; - repoConfig?: RepoConfig; + repoConfig?: RepoFileConfig; resolvedConfig?: RenovateConfig; }; scan?: Record<string, BaseBranchCache>; diff --git a/lib/workers/repository/init/common.ts b/lib/workers/repository/init/common.ts index 751c13f073394718388203094205f5fce075b4e5..1904f3a36e7b325c5864b6be56a66f3d5d570729 100644 --- a/lib/workers/repository/init/common.ts +++ b/lib/workers/repository/init/common.ts @@ -3,7 +3,7 @@ export type RepoConfigError = { validationMessage: string; }; -export type RepoConfig = { +export type RepoFileConfig = { fileName?: string; config?: any; error?: RepoConfigError; diff --git a/lib/workers/repository/init/config.ts b/lib/workers/repository/init/config.ts index 087fde4127f046f5043ae48022a7a9ae1a6a465c..3aaef3ab3e7a3ee39515c23cfe3c465825079cf1 100644 --- a/lib/workers/repository/init/config.ts +++ b/lib/workers/repository/init/config.ts @@ -20,11 +20,11 @@ import { import * as hostRules from '../../../util/host-rules'; import { checkOnboardingBranch } from '../onboarding/branch'; import { getResolvedConfig, setResolvedConfig } from './cache'; -import { RepoConfig } from './common'; +import { RepoFileConfig } from './common'; import { flattenPackageRules } from './flatten'; import { detectSemanticCommits } from './semantic'; -export async function detectRepoFileConfig(): Promise<RepoConfig> { +export async function detectRepoFileConfig(): Promise<RepoFileConfig> { const fileList = await getFileList(); async function detectConfigFile(): Promise<string | null> { for (const configFileName of configFileNames) { @@ -114,7 +114,7 @@ export async function detectRepoFileConfig(): Promise<RepoConfig> { return { fileName, config }; } -function checkForRepoConfigError(repoConfig: RepoConfig): void { +function checkForRepoConfigError(repoConfig: RepoFileConfig): void { if (!repoConfig.error) { return; }