Skip to content

Add release note ToC validation and diagnostics - #10212

Merged
Nick Trogh (ntrogh) merged 2 commits into
mainfrom
ntrogh/toc-validation
Sep 1, 2026
Merged

Add release note ToC validation and diagnostics#10212
Nick Trogh (ntrogh) merged 2 commits into
mainfrom
ntrogh/toc-validation

Conversation

@ntrogh

Copy link
Copy Markdown
Collaborator

- Introduced a new diagnostics feature for release notes in markdown format, validating the table of contents (ToC) against H2 headings.
- Implemented `registerReleaseNoteTocDiagnostics` to handle diagnostics for release notes.
- Added `validateReleaseNoteToc` function to check for common ToC issues such as missing headings, incorrect labels, and anchor mismatches.
- Created scripts to check staged files and validate release notes during commits.
- Updated package.json to include new scripts for checking release note ToC and staged files.
- Added tests for the ToC validation logic to ensure correctness.
- Removed an outdated entry from the release notes.
Comment thread build/release-note-toc.js Fixed
…racter sanitization'

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@ntrogh
Nick Trogh (ntrogh) merged commit 4dfc844 into main Sep 1, 2026
4 of 5 checks passed
@ntrogh
Nick Trogh (ntrogh) deleted the ntrogh/toc-validation branch September 1, 2026 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants