chore: move to loggerService instead

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2024-10-15 11:04:18 +02:00
parent be1ec2fd1f
commit 29788ea4e3
@@ -24,11 +24,13 @@ import { Gitlab, Types } from '@gitbeaker/core';
import path from 'path';
import { ScmIntegrationRegistry } from '@backstage/integration';
import { InputError } from '@backstage/errors';
import { resolveSafeChildPath } from '@backstage/backend-plugin-api';
import {
LoggerService,
resolveSafeChildPath,
} from '@backstage/backend-plugin-api';
import { createGitlabApi } from './helpers';
import { examples } from './gitlabMergeRequest.examples';
import { createHash } from 'crypto';
import { Logger } from 'winston';
function computeSha256(file: SerializedFile): string {
const hash = createHash('sha256');
@@ -40,7 +42,7 @@ async function getFileAction(
fileInfo: { file: SerializedFile; targetPath?: string },
target: { repoID: string; branch: string },
api: Gitlab,
logger: Logger,
logger: LoggerService,
remoteFiles: Types.RepositoryTreeSchema[],
defaultCommitAction:
| 'create'