Skip to content

Commit 2dda548

Browse files
committed
amend text
1 parent 77d7938 commit 2dda548

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

__tests__/github/core.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ describe('addReportFooters', () => {
392392
addReportFooters(report, inputs, true)
393393

394394
expect(mockCore.summary.addRaw).toHaveBeenCalledWith(
395-
expect.stringContaining('[Run: #42](https://ci.example.com/builds/42)')
395+
expect.stringContaining('[#42](https://ci.example.com/builds/42)')
396396
)
397397
})
398398

@@ -439,10 +439,10 @@ describe('addReportFooters', () => {
439439
addReportFooters(report, inputs, true)
440440

441441
expect(mockCore.summary.addRaw).toHaveBeenCalledWith(
442-
expect.stringContaining('Run: #42')
442+
expect.stringContaining('#42')
443443
)
444444
expect(mockCore.summary.addRaw).not.toHaveBeenCalledWith(
445-
expect.stringContaining('[Run: #42]')
445+
expect.stringContaining('[#42]')
446446
)
447447
})
448448

@@ -540,7 +540,7 @@ describe('addReportFooters', () => {
540540
addReportFooters(report, inputs, true)
541541

542542
expect(mockCore.summary.addRaw).toHaveBeenCalledWith(
543-
expect.stringContaining('[Run: #99]')
543+
expect.stringContaining('#99')
544544
)
545545
expect(mockCore.summary.addRaw).not.toHaveBeenCalledWith(
546546
expect.stringContaining('old-build')

src/github/core.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,9 @@ export function addReportFooters(
155155
if (report.baseline.buildNumber || report.baseline.buildName) {
156156
const buildDisplay = report.baseline.buildNumber
157157
if (report.baseline.buildUrl) {
158-
comparisonText += ` | [Run: #${buildDisplay}](${report.baseline.buildUrl})`
158+
comparisonText += ` | [#${buildDisplay}](${report.baseline.buildUrl})`
159159
} else {
160-
comparisonText += ` | Run: #${buildDisplay}`
160+
comparisonText += ` | #${buildDisplay}`
161161
}
162162
}
163163

0 commit comments

Comments
 (0)