Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2453d7ff06
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| var namespacedTarget = NamespaceFragment(prefix, target); | ||
| return $"{match.Groups["prefix"].Value}{match.Groups["quote"].Value}#{namespacedTarget}{match.Groups["quote"].Value}{match.Groups["suffix"].Value}"; |
There was a problem hiding this comment.
Avoid rewriting non-heading fragment links
The link rewrite currently namespaces every href="#..." in release bodies, but only heading IDs are renamed. This breaks valid in-body links that target non-heading anchors (for example custom <a id="...">, footnotes, or intentionally cross-release fragments), because those target IDs are never updated. In those cases navigation silently regresses after this commit. Consider restricting rewrites to fragment IDs that were actually remapped from headings.
Useful? React with 👍 / 👎.
|
test comment |
PR Review: Namespace release changelog heading IDsOverall this is a clean, well-scoped fix for a real problem. The approach (prefix heading IDs and rewrite fragment links per-release) is correct, and the regression test covers the core scenario well. A few items worth addressing: Performance / Consistency The three The inline Missing timeout on new compiled regexes
Minor: redundant double-slugification in
Fragment link rewriting scope
Test feedback The test
Summary
The timeout and uncompiled-regex concerns are the most actionable items before merging. |
Summary
Validation
dotnet test .\PowerForge.Tests\PowerForge.Tests.csproj -c Release --filter FullyQualifiedName~WebReleaseHubRenderingTests.& .\build.ps1 -CI -PowerForgeRoot C:\Support\GitHub\PSPublishModule-codex-releasehub-idsfromC:\Support\GitHub\OfficeIMO-codex-website\WebsiteThis removes the last remaining audit warning on the OfficeIMO website changelog timeline when built against this engine branch.