mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 15:06:27 +00:00
chore: rename RepoConfig -> RepoFileConfig
This commit is contained in:
parent
4b2eaf54ec
commit
8a286a4663
3 changed files with 6 additions and 6 deletions
4
lib/util/cache/repository/index.ts
vendored
4
lib/util/cache/repository/index.ts
vendored
|
@ -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>;
|
||||
|
|
|
@ -3,7 +3,7 @@ export type RepoConfigError = {
|
|||
validationMessage: string;
|
||||
};
|
||||
|
||||
export type RepoConfig = {
|
||||
export type RepoFileConfig = {
|
||||
fileName?: string;
|
||||
config?: any;
|
||||
error?: RepoConfigError;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue