refactor: rename finalise to finalize (#21278)

This commit is contained in:
HonkingGoose 2023-04-01 12:00:42 +02:00 committed by GitHub
parent 03618ee581
commit 6a446499f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 6 additions and 6 deletions

View file

@ -12,7 +12,7 @@ import {
} from './repository-statistics'; } from './repository-statistics';
// istanbul ignore next // istanbul ignore next
export async function finaliseRepo( export async function finalizeRepo(
config: RenovateConfig, config: RenovateConfig,
branchList: string[] branchList: string[]
): Promise<void> { ): Promise<void> {

View file

@ -20,7 +20,7 @@ beforeEach(() => {
config.warnings = []; config.warnings = [];
}); });
describe('workers/repository/finalise/prune', () => { describe('workers/repository/finalize/prune', () => {
describe('pruneStaleBranches()', () => { describe('pruneStaleBranches()', () => {
beforeEach(() => { beforeEach(() => {
GlobalConfig.reset(); GlobalConfig.reset();

View file

@ -26,7 +26,7 @@ const result = Object.keys(prJson).map((key) => {
return prJson[key]; return prJson[key];
}); });
describe('workers/repository/finalise/repository-statistics', () => { describe('workers/repository/finalize/repository-statistics', () => {
let config: RenovateConfig; let config: RenovateConfig;
describe('runRenovateRepoStats', () => { describe('runRenovateRepoStats', () => {

View file

@ -22,8 +22,8 @@ import { addSplit, getSplits, splitInit } from '../../util/split';
import { setBranchCache } from './cache'; import { setBranchCache } from './cache';
import { ensureDependencyDashboard } from './dependency-dashboard'; import { ensureDependencyDashboard } from './dependency-dashboard';
import handleError from './error'; import handleError from './error';
import { finaliseRepo } from './finalise'; import { finalizeRepo } from './finalize';
import { pruneStaleBranches } from './finalise/prune'; import { pruneStaleBranches } from './finalize/prune';
import { initRepo } from './init'; import { initRepo } from './init';
import { OnboardingState } from './onboarding/common'; import { OnboardingState } from './onboarding/common';
import { ensureOnboardingPr } from './onboarding/pr'; import { ensureOnboardingPr } from './onboarding/pr';
@ -91,7 +91,7 @@ export async function renovateRepository(
} else { } else {
await ensureDependencyDashboard(config, branches, packageFiles); await ensureDependencyDashboard(config, branches, packageFiles);
} }
await finaliseRepo(config, branchList); await finalizeRepo(config, branchList);
// TODO #7154 // TODO #7154
repoResult = processResult(config, res!); repoResult = processResult(config, res!);
} }