Repository navigation
Stop searching for tracker keys by shape, and keep the internal-link check - #28
Conversation
…check The key search matched any ABC-123, a shape standards, licences, Octopus tariff product codes (AGILE-24-10-01) and vendors' error codes (KT-CT-1139) all share. Each new one needed an exception, and the latest blocked a pull request whose subject is those product codes. A shape-based narrowing was tried and kept the existing tests passing, but it leaves the same trade, so the search is removed rather than tuned. The rule against tracker keys in a public repository stands; review enforces it. The search for links into the internal Atlassian site stays: a URL shape nothing else has, and the more damaging leak. It had no tests of its own, the file covering only the key search, so the file now tests it: wiki, browse and board links are reported, a hostless wiki path is reported, and a bare key shape or the hostname named as text is not.
Claude review: approveSummaryThe change removes the shape-based search for tracker keys ( Findings1. Maintainability: the The edited paragraph still argues that the pattern should not be narrowed to 2. Preference: links written without a scheme are no longer caught by anything (
Recorded stateI checked every added or edited comment, docstring and test comment. The new lines ( What I checked
full review of |
…pattern matches the host With the key search gone, a link such as <site>.atlassian.net/browse/<key>, written without https://, was no longer reported by anything: before, its issue key caught it. Such a link is now matched by the host followed by one of the site's top-level paths (wiki, browse, jira) and a slash. The instruction-text case the pattern was built around, "an atlassian.net/wiki link", has no slash after the path, so it is still not reported. The comment above the pattern argued from the removed key search, and narrated the review that widened it. It now states the rule: any link into the site is a leak, so the pattern matches the host rather than one path. Run over the three local repositories that call this action (docker-mcp, quaffed, send-to-influx): all checks pass on each.
Claude review: approveResolved
Still openNone. DeclinedNone. NewNone. The new comment ( One small thing, not a finding: the list of top-level paths What I checked: the delta diff, and the regex behaviour above. I did not run the pytest suite, because pytest is not installed on this runner. delta review of |
Summary
This stops the repo-hygiene action searching for tracker keys by shape. The rule against tracker keys in a public repository stands; review enforces it.
The search matched any
ABC-123. Standards, licences, Octopus tariff product codes (AGILE-24-10-01,IOG-SMB-VAR-24-10-29) and vendors' error codes (KT-CT-1139) all share that shape. Each one needed its own exception, and the latest blocked a send-to-influx pull request whose subject is those product codes.I tried a narrower pattern, which ignores a key-shaped match followed by
-<digit>or preceded by an uppercase word and a hyphen. It passed every existing test, but it leaves the same trade-off in place, so this change removes the search rather than tuning it.The search for links into the internal Atlassian site stays. It is a URL shape nothing else has, and the more damaging leak. It had no tests of its own, so
tests/test_internal_references.pynow covers it:To release as
v2.1.1after merge, publish the release, then movev2to it, as in the README's "Versions and releases".mainalso carries one unreleased Dependabot bump (#27), which goes out with it.Test plan
tests/test_internal_references.pyfail.