Skip to content

Commit

Permalink
ci - metamaskbot - include links to dep-viz and all artifacts (#7155)
Browse files Browse the repository at this point in the history
  • Loading branch information
kumavis authored Sep 16, 2019
1 parent 95b4d91 commit bf72f39
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion development/metamaskbot-build-announce.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
Expand Down

0 comments on commit bf72f39

Please sign in to comment.