mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 09:57:02 +01:00
ci - metamaskbot - include links to dep-viz and all artifacts (#7155)
This commit is contained in:
parent
95b4d91116
commit
bf72f39ff1
@ -39,8 +39,21 @@ async function start () {
|
||||
return `<a href="${url}">${bundle}</a>`
|
||||
}).join(', ')
|
||||
|
||||
// links to bundle browser builds
|
||||
const depVizUrl = `${BUILD_LINK_BASE}/build-artifacts/deps-viz/background/index.html`
|
||||
const depVizLink = `<a href="${depVizUrl}">background</a>`
|
||||
|
||||
// link to artifacts
|
||||
const allArtifactsUrl = `https://circleci.com/gh/MetaMask/metamask-extension/${CIRCLE_BUILD_NUM}#artifacts/containers/0`
|
||||
|
||||
const contentRows = [
|
||||
`builds: ${buildLinks}`,
|
||||
`bundle viz: ${bundleLinks}`,
|
||||
`dep viz: ${depVizLink}`,
|
||||
`<a href="${allArtifactsUrl}">all artifacts</a>`,
|
||||
]
|
||||
const hiddenContent = `<ul>` + contentRows.map(row => `<li>${row}</li>`).join('\n') + `</ul>`
|
||||
const exposedContent = `Builds ready [${SHORT_SHA1}]`
|
||||
const hiddenContent = `<ul><li>builds: ${buildLinks}</li><li>bundles: ${bundleLinks}</li></ul>`
|
||||
const commentBody = `<details><summary>${exposedContent}</summary>${hiddenContent}</details>`
|
||||
|
||||
const JSON_PAYLOAD = JSON.stringify({ body: commentBody })
|
||||
|
Loading…
Reference in New Issue
Block a user