Unverified Commit 5dab0e7e authored by Jiwon Choi's avatar Jiwon Choi Committed by GitHub

Add PR tarball install note to stats comment (#90316)

parent 54d12035
......@@ -973,6 +973,24 @@ function generateDiffsSection(result) {
return content
}
function generatePrTarballSection(actionInfo) {
if (actionInfo.isRelease || !actionInfo.issueId) return ''
const prNumber = String(actionInfo.issueId).trim()
if (!/^\d+$/.test(prNumber)) return ''
return `<details>
<summary><strong>📎 Tarball URL</strong></summary>
\`\`\`
next@https://vercel-packages.vercel.app/next/prs/${prNumber}/next
\`\`\`
</details>
`
}
// ============================================================================
// Main Export
// ============================================================================
......@@ -1034,6 +1052,8 @@ module.exports = async function addComment(
}
}
comment += generatePrTarballSection(actionInfo)
// Save canary stats to history (only for releases, not PR comparisons)
// This ensures we only track official canary metrics, not PR-specific data
if (results.length > 0 && actionInfo.isRelease && actionInfo.commitId) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment