Merge pull request #383 from crazy-max/summary-rm-preview-title

github(summary): remove preview title and tidy download link
This commit is contained in:
CrazyMax 2024-06-26 11:17:14 +02:00 committed by GitHub
commit e600fe266c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -243,9 +243,7 @@ export class GitHub {
.addRaw(addLink('Learn more', 'https://docs.docker.com/go/build-summary/'))
.addRaw('</p>')
.addRaw(`<p>`)
.addRaw(`:arrow_down: ${addLink(`<strong>${Util.stringToUnicodeEntities(opts.uploadRes.filename)}</strong>`, artifactRelativeURL)} (${Util.formatFileSize(opts.uploadRes.size)})`)
.addBreak()
.addRaw(`This file includes <strong>${refsSize} build record${refsSize > 1 ? 's' : ''}</strong>.`)
.addRaw(`:arrow_down: ${addLink(`<strong>${Util.stringToUnicodeEntities(opts.uploadRes.filename)}</strong>`, artifactRelativeURL)} (${Util.formatFileSize(opts.uploadRes.size)} - includes <strong>${refsSize} build record${refsSize > 1 ? 's' : ''}</strong>)`)
.addRaw(`</p>`)
.addRaw(`<p>`)
.addRaw(`Find this useful? `)
@ -253,7 +251,7 @@ export class GitHub {
.addRaw('</p>');
// Preview
sum.addRaw(`<strong>Preview</strong>`).addBreak().addRaw('<p>');
sum.addRaw('<p>');
const summaryTableData: Array<Array<SummaryTableCell>> = [
[
{header: true, data: 'ID'},