# Fix guided tour false positive in PR size check \(\#51964\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/b78687263dad5ea92efef9d400c4626d73d4c2be)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: b78687263dad5ea92efef9d400c4626d73d4c2be

Requested commit: b78687263dad5ea92efef9d400c4626d73d4c2be

Commit: b78687263dad5ea92efef9d400c4626d73d4c2be

Tree: 5a41c2e90cc2330bfaeeb95a30ac8d25dc0d7326

Author: John D\. Swanson

Committer: GitHub

## Message

```
Fix guided tour false positive in PR size check (#51964)

## Context

The size check workflow's guided tour detection matches text inside HTML
comment placeholders in the PR template (e.g., `<!-- provide a guided
tour — numbered list of files/commits to read in order -->`), producing
false positives like the one on #51957.

Fix: strip `<!-- -->` comments from the PR body before running the
regex.

## How to Review

- Single file: `.github/workflows/pr-size-check.yml`, lines 148-151
- The `.replace(/<!--[\s\S]*?-->/g, '')` runs in `actions/github-script`
JS, not shell

## Self-Review Checklist

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Release Notes:

- N/A
```

## Parents

- [9ee198d16edb87e61f3f6d83261a07cb6a895e1f](https://git.cafe/gitcafe/zed/commit/9ee198d16edb87e61f3f6d83261a07cb6a895e1f?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/b78687263dad5ea92efef9d400c4626d73d4c2be?format=markdown)
