renovate/lib/workers/repository/common.ts

19 lines
449 B
TypeScript
Raw Normal View History

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