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
{{ message }}
Repository navigation
Rewrite relative links when a changelog becomes the Release body #457
priority: mediumShould be addressed in the normal course of developmentstatus: implementedBuilt and deployed, but not yet fully tested/verifiedtype: bugSomething is broken or not behaving as expected
The files should stay relative. The fix belongs where the file becomes the release body:
Going forward: resolve each relative link or image against the changelog's own folder and rewrite it to https://github.com/<owner>/<repo>/blob/v<version>/<path> (raw/ for images). Leave absolute URLs, #anchors, mailto:, fenced code and inline code alone. The file is read in two places: readVersionChangelogFile in generate-comprehensive-changelog (the release PR body, which becomes the squash commit and the first release body) and release-notes.mjs for sync-release-notes. Both should use the same helper.
Existing releases: once sync-release-notes does the rewrite, a run in each affected repo re-renders the old Release pages from their files.
26 repos have relative links in their changelogs right now. Each has its own issue (for example CLDMV/slothlet#769), and those can close once this ships and their release notes have been re-synced.
The release PR body has the same problem. GitHub keeps the links as written there, so the browser resolves them against the PR URL. On CLDMV/llm-translator#149, ../../drivers.md goes to https://github.com/CLDMV/drivers.md (404) and ./v0.9.0.md goes to /CLDMV/llm-translator/pull/v0.9.0.md.
So generate-comprehensive-changelog should rewrite the PR body too. The tag doesn't exist while the PR is open, so tag-pinned links are dead until the release merges. Pinning the PR body to blob/next/... would make them work during review, but the PR body becomes the squash commit message, so the commit would then carry next links. Better to pin to the tag and accept that the links are dead only while the PR is open.
Final design, replacing my earlier comment about the PR body.
Every permanent record ends up with links to the release tag, so they show the files as they were in that release and don't depend on anything GitHub-specific. No head-SHA links.
Where
Links point at
Release PR body while it's open
next (blob/next/<path>), so they work during review
Squash commit message on master
the tag. release-merge already sends commit_message: pr.body, so it rewrites the next links to blob/v<version>/... before merging
Tag message and Release body
the tag
Release PR body after the release
the tag. sync-release-notes runs on release: published, finds the release's PR from the release commit and edits its body (PATCH /pulls/{n})
One helper does all of it: it resolves relative links against the changelog's folder and takes the target ref, and it also turns its own blob/next/... links into tag links. It has to be idempotent, so a body that already has tag links is left alone.
Re-running sync-release-notes in a repo after this ships fixes its old Release pages and its old release PR bodies.
priority: mediumShould be addressed in the normal course of developmentstatus: implementedBuilt and deployed, but not yet fully tested/verifiedtype: bugSomething is broken or not behaving as expected
Activity
Shinrai commentedon Nov 14, 2026
The release PR body has the same problem. GitHub keeps the links as written there, so the browser resolves them against the PR URL. On CLDMV/llm-translator#149,
../../drivers.mdgoes tohttps://github.com/CLDMV/drivers.md(404) and./v0.9.0.mdgoes to/CLDMV/llm-translator/pull/v0.9.0.md.So generate-comprehensive-changelog should rewrite the PR body too. The tag doesn't exist while the PR is open, so tag-pinned links are dead until the release merges. Pinning the PR body to
blob/next/...would make them work during review, but the PR body becomes the squash commit message, so the commit would then carrynextlinks. Better to pin to the tag and accept that the links are dead only while the PR is open.Shinrai commentedon Nov 14, 2026
Final design, replacing my earlier comment about the PR body.
Every permanent record ends up with links to the release tag, so they show the files as they were in that release and don't depend on anything GitHub-specific. No head-SHA links.
next(blob/next/<path>), so they work during reviewcommit_message: pr.body, so it rewrites thenextlinks toblob/v<version>/...before mergingrelease: published, finds the release's PR from the release commit and edits its body (PATCH /pulls/{n})One helper does all of it: it resolves relative links against the changelog's folder and takes the target ref, and it also turns its own
blob/next/...links into tag links. It has to be idempotent, so a body that already has tag links is left alone.Re-running sync-release-notes in a repo after this ships fixes its old Release pages and its old release PR bodies.
Tracked in #458.
fix: point the open release PR's changelog links at its head branch
fix: pin changelog relative links in release PR, commit and release b…
cldmv-bot commentedon Nov 14, 2026
Marked
status: implemented— resolved by #458, merged intonext. This issue closes automatically when that work ships to the default branch.docs: v4.36.1 changelog and What's New (#460)
release: v4.36.1 - pin changelog relative links to the release tag in…