chore: rename RepoConfig -> RepoFileConfig

This commit is contained in:
Rhys Arkins 2020-09-01 06:20:26 +02:00
parent 4b2eaf54ec
commit 8a286a4663
3 changed files with 6 additions and 6 deletions

View file

@ -3,7 +3,7 @@ import { join } from 'upath';
import { RenovateConfig, RepositoryCacheConfig } from '../../../config/common'; import { RenovateConfig, RepositoryCacheConfig } from '../../../config/common';
import { logger } from '../../../logger'; import { logger } from '../../../logger';
import { PackageFile } from '../../../manager/common'; import { PackageFile } from '../../../manager/common';
import { RepoConfig } from '../../../workers/repository/init/common'; import { RepoFileConfig } from '../../../workers/repository/init/common';
export interface BaseBranchCache { export interface BaseBranchCache {
sha: string; // branch commit sha sha: string; // branch commit sha
@ -16,7 +16,7 @@ export interface Cache {
init?: { init?: {
defaultBranch?: string; defaultBranch?: string;
defaultBranchSha?: string; defaultBranchSha?: string;
repoConfig?: RepoConfig; repoConfig?: RepoFileConfig;
resolvedConfig?: RenovateConfig; resolvedConfig?: RenovateConfig;
}; };
scan?: Record<string, BaseBranchCache>; scan?: Record<string, BaseBranchCache>;

View file

@ -3,7 +3,7 @@ export type RepoConfigError = {
validationMessage: string; validationMessage: string;
}; };
export type RepoConfig = { export type RepoFileConfig = {
fileName?: string; fileName?: string;
config?: any; config?: any;
error?: RepoConfigError; error?: RepoConfigError;

View file

@ -20,11 +20,11 @@ import {
import * as hostRules from '../../../util/host-rules'; import * as hostRules from '../../../util/host-rules';
import { checkOnboardingBranch } from '../onboarding/branch'; import { checkOnboardingBranch } from '../onboarding/branch';
import { getResolvedConfig, setResolvedConfig } from './cache'; import { getResolvedConfig, setResolvedConfig } from './cache';
import { RepoConfig } from './common'; import { RepoFileConfig } from './common';
import { flattenPackageRules } from './flatten'; import { flattenPackageRules } from './flatten';
import { detectSemanticCommits } from './semantic'; import { detectSemanticCommits } from './semantic';
export async function detectRepoFileConfig(): Promise<RepoConfig> { export async function detectRepoFileConfig(): Promise<RepoFileConfig> {
const fileList = await getFileList(); const fileList = await getFileList();
async function detectConfigFile(): Promise<string | null> { async function detectConfigFile(): Promise<string | null> {
for (const configFileName of configFileNames) { for (const configFileName of configFileNames) {
@ -114,7 +114,7 @@ export async function detectRepoFileConfig(): Promise<RepoConfig> {
return { fileName, config }; return { fileName, config };
} }
function checkForRepoConfigError(repoConfig: RepoConfig): void { function checkForRepoConfigError(repoConfig: RepoFileConfig): void {
if (!repoConfig.error) { if (!repoConfig.error) {
return; return;
} }