From 502babd310a9953e86c4fc8fb4922ea870508a10 Mon Sep 17 00:00:00 2001 From: Matt Fiddaman Date: Mon, 19 Jan 2026 16:39:36 +0000 Subject: [PATCH] add separator between PR body and bundle stats (#6715) * add seperator line before bundle stats post * note * [autofix.ci] apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> --- packages/ci-actions/bin/update-bundle-stats-comment.mjs | 8 +++++++- upcoming-release-notes/6715.md | 6 ++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 upcoming-release-notes/6715.md diff --git a/packages/ci-actions/bin/update-bundle-stats-comment.mjs b/packages/ci-actions/bin/update-bundle-stats-comment.mjs index ea69903b33..98cbceb648 100644 --- a/packages/ci-actions/bin/update-bundle-stats-comment.mjs +++ b/packages/ci-actions/bin/update-bundle-stats-comment.mjs @@ -14,6 +14,9 @@ import process from 'node:process'; import { Octokit } from '@octokit/rest'; +const BOT_BOUNDARY_MARKER = ''; +const BOT_BOUNDARY_TEXT = `${BOT_BOUNDARY_MARKER}\n
`; + function parseArgs(argv) { const args = { commentFile: null, @@ -158,7 +161,10 @@ function upsertBlock(existingBody, block, markers) { } const separator = body.endsWith('\n') ? '\n' : '\n\n'; - return `${body}${separator}${block.trim()}`; + const boundary = body.includes(BOT_BOUNDARY_MARKER) + ? '' + : `${BOT_BOUNDARY_TEXT}\n\n`; + return `${body}${separator}${boundary}${block.trim()}`; } async function updatePullRequestBody( diff --git a/upcoming-release-notes/6715.md b/upcoming-release-notes/6715.md new file mode 100644 index 0000000000..511d5651ae --- /dev/null +++ b/upcoming-release-notes/6715.md @@ -0,0 +1,6 @@ +--- +category: Maintenance +authors: [matt-fidd] +--- + +Add separator between PR body and bundle statistics