mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
[ci] Avoid unintended notifications on failing test comment (#174124)
This commit is contained in:
parent
37ca617150
commit
5951512197
1 changed files with 6 additions and 5 deletions
|
@ -91,11 +91,12 @@ export const getPrComment = (
|
|||
|
||||
const logsLink = artifactUrl ? ` [[logs]](${artifactUrl})` : '';
|
||||
|
||||
// job name could have #<number> in it, which Github will link to an issue, so we need to "escape" it with spans
|
||||
return `* [[job]](${jobUrl})${logsLink} ${failure.jobName.replace(
|
||||
'#',
|
||||
'#<span></span>'
|
||||
)} / ${failure.name}`;
|
||||
// failure name could have #<number>, which Github will link to an issue or @<string>,
|
||||
// which will send a notification so we need to "escape" it with spans
|
||||
const failureString = `${failure.jobName} / ${failure.name}`
|
||||
.replaceAll('#', '#<span></span>')
|
||||
.replaceAll('@', '@<span></span>');
|
||||
return `* [[job]](${jobUrl})${logsLink} ${failureString}`;
|
||||
})
|
||||
.join('\n')
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue