diff --git a/.github/workflows/pr-size-check.yml b/.github/workflows/pr-size-check.yml index 940c619e0cfd308728b24c42264a580d6e93592c..bbd60d727e1e7689c11ce9b2d2583b2e2e506fad 100644 --- a/.github/workflows/pr-size-check.yml +++ b/.github/workflows/pr-size-check.yml @@ -144,7 +144,11 @@ jobs: const alreadyCommented = comments.some(c => c.body.includes(MARKER)); if (!alreadyCommented) { - const prBody = context.payload.pull_request.body || ''; + // Strip HTML comments before checking — the PR template's + // placeholder text contains "guided tour" and "read in order" + // which causes false positives. + const prBody = (context.payload.pull_request.body || '') + .replace(//g, ''); const guidedTourPresent = /how to review|guided tour|read.*in.*order/i.test(prBody); let body = `${MARKER}\n`;