You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tooling: Add check for CHANGELOG commit-link integrity
- New `changelog-commit-links` check (nickname `changelog-links`) validates every `https://github.com/vdavid/cmdr/commit/<sha>` URL in `CHANGELOG.md` resolves to a real commit
- Uses a single `git cat-file --batch-check` process — 616 SHAs resolved in ~55ms (down from ~1.8s with per-SHA subprocesses)
- Also flags text/URL SHA mismatches in `[hash](url)` pairs, SHAs shorter than 6 chars, and SHAs longer than 40 chars
- Registered for `AppOther` alongside `oxfmt` and `file-length`; wired into the `desktop-svelte`, `website`, and `api-server` CI jobs (each with `fetch-depth: 0` so historical SHAs resolve)
- Tests cover happy path, bad URL SHA, text/URL mismatch, too-short SHA, no-links, and missing-`CHANGELOG.md` cases
- Surfaced and fixed 8 bad links in the 0.12.0 and earlier sections: one 5-char SHA (`04359`), two prefixes ambiguous with trees (`0461e3`, `a61376`), and five typos (`9354806`, `3155609`, `634125`, `392819`, `254075a`)
- Added a `### Non-app` bullet to the `[Unreleased]` section (link to be backfilled once this commit lands)
Copy file name to clipboardExpand all lines: scripts/check/CLAUDE.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -97,6 +97,7 @@ go run ./scripts/check --only-freestyle
97
97
|`checks/website-*.go`, `checks/api-server-*.go`, `checks/scripts-go-*.go`| One file per check |
98
98
|`checks/file-length.go`| Informational file-length scanner (warn-only, never fails). Supports an allowlist. |
99
99
|`checks/file-length-allowlist.json`| Allowlist for file-length check: `{ "files": { "path": lineCount } }`. Files at or below their allowlisted count are suppressed. |
100
+
|`checks/changelog-commit-links.go`| Validates every `https://github.com/vdavid/cmdr/commit/<sha>` URL in `CHANGELOG.md` resolves, via a single `git cat-file --batch-check` process. |
100
101
101
102
## Key patterns
102
103
@@ -193,7 +194,7 @@ before tests.
193
194
| Website | Docker | docker-build |
194
195
| API server | TS | oxfmt, eslint, typecheck, tests |
0 commit comments