Skip to content

chore: CI fails when a PR title or body carries internal detail - #47

Merged
sonpiaz merged 1 commit into
mainfrom
chore/pr-text-check
Oct 18, 2026
Merged

sonpiaz merged 1 commit into
mainfrom
chore/pr-text-check

Conversation

@sonpiaz

@sonpiaz sonpiaz commented Oct 18, 2026

Copy link
Copy Markdown
Member

What changed

Adds .github/workflows/pr-text.yml: a one-step check that fails when a pull request title or body contains a private workspace or home path, a message or pane id, an internal agent name, or Vietnamese text (the exact patterns are in the workflow file). It runs on opened, edited, reopened and synchronize, so fixing the body re-runs it.

Why

This repository is public. Several earlier pull request bodies carried internal workspace detail (now cleaned); this stops new ones. The file is identical to the check already running in the public docs repository.

How verified

  • The title and body reach the script through environment variables, never interpolated into the script.
  • The script was run locally on 15 cases: each internal pattern is flagged, including upper-case and decomposed Vietnamese; French and Spanish words (hôtel, fenêtre, café, español), "cos-sim", "p95", an empty body and a plain English summary pass.
  • Permissions are empty: the job reads only its own environment.
  • This pull request's own body passes the check.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@sonpiaz
sonpiaz merged commit 383a00e into main Oct 18, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant