ci: prevent new broken documentation redirects#1725
Open
realmehmetali wants to merge 1 commit into
Open
Conversation
Validate redirect chains against the docs tree while baselining existing redirect debt.
Collaborator
🟡 Heimdall Review Status
|
realmehmetali
marked this pull request as ready for review
July 18, 2026 09:08
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.
What changed? Why?
Added a dependency-free redirect validator and PR check for
docs/docs.json. It resolves direct pages, multi-hop redirects, wildcard/dynamic routes, external destinations, and cycles.The current default branch already contains redirect debt tracked in #1426 and #1599. Comparing each PR with its base revision lets CI reject newly broken redirects or page deletions without forcing unrelated contributors to repair the existing backlog.
Notes to reviewers
How has it been tested?
node --test scripts/validate-redirects.test.js— 5/5 passingnode scripts/validate-redirects.js --base-ref master— passingnode --checkon both JavaScript filesgit diff --checkAI disclosure: Codex assisted implementation and testing. I reviewed the current public repository, public redirect issues, test behavior, and final diff. No private code, data, credentials, or internal product details were used or included.