mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 06:56:24 +00:00
refactor: rename finalise to finalize (#21278)
This commit is contained in:
parent
03618ee581
commit
6a446499f7
7 changed files with 6 additions and 6 deletions
|
@ -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> {
|
|
@ -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();
|
|
@ -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', () => {
|
|
@ -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!);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue