fix(issue-comment): ignore placeholder and fall back to stock summary (includes commits/files)

This commit is contained in:
James Peter
2025-09-10 10:20:28 +10:00
parent 514221212c
commit f62b79875f
+2
View File
@@ -273,6 +273,8 @@ jobs:
const ISSUE_MARK = '<!-- preview-build:issue -->';
let body = '';
try { body = fs.readFileSync('.github/auto/ISSUE_COMMENT.md','utf8').trim(); } catch {}
const PLACEHOLDER = '…final Markdown comment…';
if (body && body.includes(PLACEHOLDER)) { body = ''; }
if (!body) {
// derive slug + latest tag
const { data: pull } = await github.rest.pulls.get({ owner, repo, pull_number: pr });