From bd3cf102bf870c523cdca8e2640d43a3b34c7518 Mon Sep 17 00:00:00 2001 From: Adam Setch <adam.setch@outlook.com> Date: Mon, 3 Jul 2023 10:54:59 -0400 Subject: [PATCH] refactor(changelog/github): move source (#23103) --- lib/workers/repository/update/pr/changelog/api.ts | 2 +- .../changelog/{source-github.ts => github/source.ts} | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) rename lib/workers/repository/update/pr/changelog/{source-github.ts => github/source.ts} (86%) diff --git a/lib/workers/repository/update/pr/changelog/api.ts b/lib/workers/repository/update/pr/changelog/api.ts index e319970330..3abff28193 100644 --- a/lib/workers/repository/update/pr/changelog/api.ts +++ b/lib/workers/repository/update/pr/changelog/api.ts @@ -1,7 +1,7 @@ import { BitbucketChangeLogSource } from './bitbucket/source'; +import { GitHubChangeLogSource } from './github/source'; import { GitLabChangeLogSource } from './gitlab/source'; import type { ChangeLogSource } from './source'; -import { GitHubChangeLogSource } from './source-github'; const api = new Map<string, ChangeLogSource>(); export default api; diff --git a/lib/workers/repository/update/pr/changelog/source-github.ts b/lib/workers/repository/update/pr/changelog/github/source.ts similarity index 86% rename from lib/workers/repository/update/pr/changelog/source-github.ts rename to lib/workers/repository/update/pr/changelog/github/source.ts index 0fb7bfc0fe..af62ea1e2b 100644 --- a/lib/workers/repository/update/pr/changelog/source-github.ts +++ b/lib/workers/repository/update/pr/changelog/github/source.ts @@ -1,10 +1,10 @@ import URL from 'node:url'; -import { GlobalConfig } from '../../../../../config/global'; -import { logger } from '../../../../../logger'; -import * as hostRules from '../../../../../util/host-rules'; -import type { BranchUpgradeConfig } from '../../../../types'; -import { ChangeLogSource } from './source'; -import type { ChangeLogError } from './types'; +import { GlobalConfig } from '../../../../../../config/global'; +import { logger } from '../../../../../../logger'; +import * as hostRules from '../../../../../../util/host-rules'; +import type { BranchUpgradeConfig } from '../../../../../types'; +import { ChangeLogSource } from '../source'; +import type { ChangeLogError } from '../types'; export class GitHubChangeLogSource extends ChangeLogSource { constructor() { super('github', 'github-tags'); -- GitLab