Repository navigation
fix(comment-hygiene): sync vendored library — bare-domain owner/repo#N fix - #62
Conversation
…N fix Sync the vendored comment-hygiene policy library to match the source of truth in melodic-software/standards, which tightened the owner/repo#N rule so a bare domain with a numeric fragment in a comment (e.g. foo.com/bar#3, example.com/page#2) is no longer misread as an issue reference: the owner character class drops '.'/'_' (a GitHub owner login allows only alphanumerics and hyphens), while the repo segment keeps them. This copy must stay byte-identical to standards because the comment- hygiene action's superset self-test sources it. Verified: superset-test.sh still passes (the library now flags a strict subset, so the prefilter remains a superset), and the file shellchecks clean. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FSMCZgc6Dj6MaKLxDBSJFw
|
Claude finished @kyle-sexton's task in 1m 30s —— View job Review:
|
…ary (#66) Follow-up to #62, syncing the corrected library from **melodic-software/standards#74**. #62 tightened the `owner/repo#N` owner class to `[A-Za-z0-9-]`, which dropped `_`. GitHub Enterprise Managed Users have logins with an `_SHORTCODE` suffix (e.g. `mona-cat_octo`, `fabrikam_admin`), so `// see mona-cat_octo/scratch#12` started scanning clean — the hygiene gate missed deferred-work refs in EMU repos. The corrected owner class `[A-Za-z0-9_-]` excludes only `.` (keeping the bare-domain fix) while preserving `_`. Re-synced byte-identical to standards main. `superset-test.sh` passes; `shellcheck` clean. 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > Single-regex tweak in a vendored detection policy; improves coverage for EMU refs without changing auth or runtime behavior. > > **Overview** > Restores **`_` in the `owner/repo#N` regex owner class** (`[A-Za-z0-9_-]+` instead of `[A-Za-z0-9-]+`) so comment-hygiene flags cross-repo refs like `mona-cat_octo/scratch#12` again after a prior tightening dropped underscores. > > Comments now state that **only `.` is excluded** from owners (bare-domain false positives) and that **GitHub EMU logins** need `_` in the owner segment. Repo-name matching and boundary rules are unchanged. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 218bef0. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY --> Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>


Syncs the vendored
modules/comment-hygiene/comment-hygiene-patterns.shto match the source-of-truth fix in melodic-software/standards (PR: melodic-software/standards#74).Why
The
owner/repo#Ntracker-reference rule let the owner segment contain., so a bare domain with a numeric fragment in a comment (foo.com/bar#3,example.com/page#2) was misread as a cross-repo issue reference. A GitHub owner login allows only alphanumerics and hyphens (no./_), so the owner class is tightened to[A-Za-z0-9-]; the repo segment keeps./_.Why sync here
This repo carries a byte-identical vendored copy of the library that the comment-hygiene action's
superset-test.shsources directly. It must track standards.Verified
superset-test.sh: pass — the prefilter remains a superset (the library now flags a strict subset of before, so no admitted-but-unflagged gap opens).shellcheckon the vendored file: clean.Order-independent with the standards PR (identical content); merge either first.
🤖 Generated with Claude Code
Note
Low Risk
Narrow regex change in comment-scan policy only; it reduces false positives and stays aligned with the vendored standards copy and superset tests.
Overview
Syncs the vendored
comment-hygiene-patterns.shwith the standards library fix forowner/repo#Ntracker detection.The
repo-issueregex now restricts the owner segment to[A-Za-z0-9-]+(GitHub login rules), instead of allowing.and_. Comments that look like bare URLs with a hash fragment (e.g.foo.com/bar#3) are no longer flagged as cross-repo issue refs; real references likeorg/my.repo#123still match via the repo segment. Inline comments were updated to document that behavior and to note case-insensitive matching across patterns.Reviewed by Cursor Bugbot for commit 09e28b2. Bugbot is set up for automated code reviews on this repo. Configure here.