Repository navigation
release: v4.36.1 - pin changelog relative links to the release tag in… - #459
Merged
Merged
Conversation
…R bodies GitHub resolves a release body against the repo root and a PR body against the PR URL, so relative links in a per-version changelog 404 there. A shared pinRelativeLinks helper now resolves each relative link and image against the changelog's own folder and pins it to blob/vX.Y.Z (raw/ for images). It skips absolute URLs, anchors, mailto and other schemes, fenced and inline code, and paths above the repo root. Used by generate-comprehensive-changelog (release PR body, which becomes the squash commit), create-release and sync-release-notes. Sync points links at the default branch for files that don't exist at the tag (backfills). Resolves #457
The open release PR body now pins changelog links to its head branch (next/hotfixes) so they work during review; a tag link is dead until the release exists. Everything permanent gets tag links: - release-merge moves the head-branch links to vX.Y.Z in the squash commit message (repinBranchLinks), so master's release commit carries tag links. - The tag message and GitHub Release body use the tag, as before. - sync-release-notes points each merged release PR's links at its tag once the tag exists (and pins old, still-relative bodies), leaving bodies that already have them alone. Its App token now requests pull_requests. The generator takes the ref as changelog-link-ref (default: the tag); create-release-pr and update-release-pr pass the head branch. Resolves #457
Shinrai
approved these changes
Nov 14, 2026
Shinrai
left a comment
Contributor
There was a problem hiding this comment.
Changelog is on next. Ship it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
v4.36.1 — 2026-11-13
Patch release that fixes relative links in changelog files once they become a release PR body, a release commit, a tag message or a GitHub Release. GitHub resolves a PR body against the PR URL and a release body against the repo root, so a link like
../../drivers.mdthat works in the file view 404'd on every release page. The changelog files stay relative; the links are rewritten where the file turns into a body.Bug Fixes
pinRelativeLinkshelper inrelease-notes.mjsresolves each relative link and image against the changelog's own folder and turns it into an absolutehttps://github.com/<repo>/blob/<ref>/…URL (raw/for images). It leaves absolute URLs,//hostlinks,#anchors,mailto:and other schemes, fenced and inline code, and paths above the repo root alone. The ref depends on where the text ends up. Resolves #457. (#458)next, orhotfixeson the hotfix lane), so the links work during review. generate-comprehensive-changelog takes it as the newchangelog-link-refinput, which create-release-pr and update-release-pr set to the head branch. It defaults to the release tag.vX.Y.Zbefore the squash merge, so the commit onmastercarries tag links.pull_requests.Upgrade notes
sync-release-notes.ymlin each affected repo (dry run first, then a real run) to rewrite the old release pages and release PR bodies.👥 Contributors
Co-authored-by: Shinrai [email protected]