0
0
mirror of https://github.com/renovatebot/renovate.git synced 2024-12-22 13:38:32 +00:00
renovatebot_renovate/lib/workers/repository/common.ts
2023-11-07 15:50:29 +00:00

19 lines
449 B
TypeScript

import { nameFromLevel } from 'bunyan';
import { getProblems } from '../../logger';
export function extractRepoProblems(
repository: string | undefined,
): Set<string> {
return new Set(
getProblems()
.filter(
(problem) =>
problem.repository === repository && !problem.artifactErrors,
)
.map(
(problem) =>
`${nameFromLevel[problem.level].toUpperCase()}: ${problem.msg}`,
),
);
}