Repository navigation
fix(lint): stop typos flagging hex SHA fragments in changelog fragment names - #18733
Conversation
…t names scripts/dependabot-fragments.sh names each fragment .changes/<plugin>/dependabot-<pr>-<sha8>.md from the merge commit's SHA, so the name cannot be redrawn the way new-changelog-fragment.sh redraws its random suffix. typos splits the SHA into words and flags runs such as "ba" (d13ba6b), failing Lint Repo on the Dependabot fragments release PR. _typos.toml is a sync-managed file from melodic-software/standards, so the rule goes in a locally owned overlay, .github/typos-local.toml, that the Spell-check step now passes as its config. typos layers --config over the _typos.toml it discovers in each path's parents, so every managed rule still applies. The overlay defines a file type for dependabot-[0-9]*-*.md with check-filename = false: only the file name of those generated fragments goes unchecked; their content is still spell-checked under the managed rules. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
claude-security-review reviewed Security review: no security issues foundThis was an incremental, blocking-only review of the change since What the change does. The local typos pre-flight used to hard-code Trust-boundary check.
Instruction surfaces and manifests. No standing instruction is deleted or softened, and no plugin manifest is touched. PR context. It contains no directives aimed at this lane. critical-findings: 0 |
|
claude-review reviewed Code review (incremental: c969fac → fa0864b, blocking only)This lane already reviewed an earlier head, so this pass reports only blocking findings. One file changed since the last review: This fixes the earlier finding (discussion_r4676049863): the local pre-flight now passes Checks I made by reading the code:
Not verified: I did not run the script, its test suite or typos. Two things come from the PR author: that typos layers No closing issue: the PR says it unblocks #18706 and states no acceptance criteria. The diff changes no plugin manifest. Spend: none beyond this review run. Loosened checks: the wrapper wrote no Verifier dropped 0 of 0 candidates. |
scripts/check-affected.sh said each check calls the tool CI calls, but its typos check still passed --config _typos.toml after CI moved to the .github/typos-local.toml overlay. It now reads the typos step's `config` input from pr-require-checks.yml, the same way it already reads the step's exclude globs, and falls back to _typos.toml when the step names none. check-affected.test.sh: 155 passed, 0 failed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Post-merge mutation testingKilled 3, survived 4, timeout 0, no coverage 0, invalid 0, not run 0.
Surviving mutants
The run's summary has the full report. |
No related issue: unblocks release PR #18706, whose Lint Repo typos check fails on a generated fragment name
Summary
scripts/dependabot-fragments.shnames each Dependabot changelog fragment.changes/<plugin>/dependabot-<pr>-<sha8>.mdfrom the merge commit's SHA. typos checks file names, splitsd13ba6b8into words and flagsba("should bebe,by"), so Lint Repo fails on #18706 (run). The SHA cannot be redrawn the waynew-changelog-fragment.shredraws its random suffix, and renaming the fragments would make the generator rewrite every fragment already released, since it skips a fragment by its exact path in history.Fix
_typos.tomlis sync-managed frommelodic-software/standards(listed inpr-check-managed-files-hosted.yml), so this PR leaves it alone. A new locally owned overlay,.github/typos-local.toml, defines adependabot-fragmentfile type (extend-glob = ["dependabot-[0-9]*-*.md"]) withcheck-filename = false.config. typos applies--configon top of the_typos.tomlit finds in each path's parent directories, so every managed rule still applies.scripts/README.md: the localtyposcommand row now names the overlay.Basis: typos reference:
default.check-filename: "Verify spelling in file names.";type.NAME.extend-glob: "File globs for matchingNAME. This is required when defining new file types."; config sources in precedence order: "File specified via--config PATH", then "Search parents of specified file / directory for one oftypos.toml,_typos.toml, ...".Verification
typos 1.52.2, the version the
ci-workflowstypos action pins. The command is the CI invocation (paths. .changes, the step's--excludeglobs), run with a temporary.changes/knowledge/dependabot-18634-d13ba6b8.mdthat was deleted before the commit:--config _typos.toml: exit 2,error: `ba` should be `be`, `by`on.changes/knowledge/dependabot-18634-d13ba6b8.md(the CI failure).--config .github/typos-local.toml: exit 0.whilst(a managedextend-wordsrule),tehandcolour(the manageden-uslocale)..changes/knowledge/teh-d13ba6b8.mdstill fails ontehandba.docs/still fails on managed rules with the overlay config.dependabot-*fragment names in the repository's history were checked with--isolated. The old config flags onlydependabot-18634-d13ba6b8.md. The overlay flags none.Related
🤖 Generated with Claude Code