Skip to content
Snippets Groups Projects
Unverified Commit f06b4bb9 authored by RahulGautamSingh's avatar RahulGautamSingh Committed by GitHub
Browse files

refactor: move config migration logic (#30801)

parent c771b690
Branches
Tags 12.56.0
No related merge requests found
......@@ -3,7 +3,6 @@ import { logger } from '../../../logger';
import { platform } from '../../../modules/platform';
import * as repositoryCache from '../../../util/cache/repository';
import { clearRenovateRefs } from '../../../util/git';
import { configMigration } from '../config-migration';
import { PackageFiles } from '../package-files';
import { validateReconfigureBranch } from '../reconfigure';
import { pruneStaleBranches } from './prune';
......@@ -18,7 +17,6 @@ export async function finalizeRepo(
branchList: string[],
): Promise<void> {
await validateReconfigureBranch(config);
await configMigration(config, branchList);
await repositoryCache.saveCache();
await pruneStaleBranches(config, branchList);
await ensureIssuesClosing();
......
......@@ -28,6 +28,7 @@ import {
} from '../../util/stats';
import { setBranchCache } from './cache';
import { extractRepoProblems } from './common';
import { configMigration } from './config-migration';
import { ensureDependencyDashboard } from './dependency-dashboard';
import handleError from './error';
import { finalizeRepo } from './finalize';
......@@ -100,6 +101,7 @@ export async function renovateRepository(
}
logger.debug(`Automerged but already retried once`);
} else {
await configMigration(config, branchList);
await ensureDependencyDashboard(config, branches, packageFiles);
}
await finalizeRepo(config, branchList);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment