From e9c65b9fc0d51e1f9bc84164095b9dcc98fc39ff Mon Sep 17 00:00:00 2001 From: daz Date: Sun, 11 Feb 2024 16:13:31 -0700 Subject: [PATCH] Attempt to make build-scan links open in new tab GitHub currently strips the target="_blank" from the rendered HTML, but we'll leave this in since it's the desired behaviour. --- sources/src/job-summary.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/src/job-summary.ts b/sources/src/job-summary.ts index f9c23ef..a9c1b7f 100644 --- a/sources/src/job-summary.ts +++ b/sources/src/job-summary.ts @@ -123,7 +123,7 @@ function renderBuildScan(result: BuildResult): string { function renderBuildScanBadge(outcomeText: string, outcomeColor: string, targetUrl: string): string { const badgeUrl = `https://img.shields.io/badge/Build%20Scan%C2%AE-${outcomeText}-${outcomeColor}?logo=Gradle` const badgeHtml = `Build Scan ${outcomeText}` - return `${badgeHtml}` + return `${badgeHtml}` } function shouldGenerateJobSummary(buildResults: BuildResult[]): boolean {