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 { 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>;

View file

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

View file

@ -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;
}