Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions modules/comment-hygiene/comment-hygiene-patterns.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,10 @@ chp::scan_text() {
continue
fi

# owner/repo#N — same- or cross-repo issue reference (e.g. org/app#123).
if [[ "$line" =~ (^|[^[:alnum:]_/])[A-Za-z0-9._-]+/[A-Za-z0-9._-]+#[0-9]+ ]]; then
# owner/repo#N — same- or cross-repo issue reference (e.g. org/app#123). The
# leading boundary excludes '.' so a dotted URL host (e.g. example.com/page#2)
# is not misread as an owner/repo segment.
if [[ "$line" =~ (^|[^[:alnum:]_/.])[A-Za-z0-9._-]+/[A-Za-z0-9._-]+#[0-9]+ ]]; then
printf '%s:tracker-ref:repo-issue\n' "$lineno"
violations=$((violations + 1))
continue
Expand Down
Loading