mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 06:56:24 +00:00
fix: Dependency dashboard message cleanup (#18857)
This commit is contained in:
parent
76b536e23a
commit
6f051f3ae7
1 changed files with 4 additions and 1 deletions
|
@ -3,6 +3,7 @@ import type { RenovateConfig } from '../../config/types';
|
||||||
import { logger } from '../../logger';
|
import { logger } from '../../logger';
|
||||||
import type { PackageFile } from '../../modules/manager/types';
|
import type { PackageFile } from '../../modules/manager/types';
|
||||||
import { emojify } from '../../util/emoji';
|
import { emojify } from '../../util/emoji';
|
||||||
|
import { regEx } from '../../util/regex';
|
||||||
import type { DepWarnings } from '../types';
|
import type { DepWarnings } from '../types';
|
||||||
|
|
||||||
export function getWarnings(config: RenovateConfig): string {
|
export function getWarnings(config: RenovateConfig): string {
|
||||||
|
@ -111,7 +112,9 @@ export function getDepWarningsDashboard(
|
||||||
}
|
}
|
||||||
|
|
||||||
const depWarnings = warnings
|
const depWarnings = warnings
|
||||||
.map((w) => w.replace('Failed to look up dependency ', ''))
|
.map((w) =>
|
||||||
|
w.replace(regEx(/^Failed to look up(?: [-\w]+)? dependency /), '')
|
||||||
|
)
|
||||||
.map((dep) => '`' + dep + '`')
|
.map((dep) => '`' + dep + '`')
|
||||||
.join(', ');
|
.join(', ');
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue