Skip to content

[DocsVerifier] Always add file name to error log - #741

Merged
gewarren merged 2 commits into
dotnet:mainfrom
gewarren:file-name
Sep 11, 2026
Merged

gewarren merged 2 commits into
dotnet:mainfrom
gewarren:file-name

Conversation

@gewarren

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI lite review requested due to automatic review settings September 11, 2026 19:54
@gewarren gewarren changed the title [DocsVerifier] Always add file name to error [DocsVerifier] Always add file name to error log Sep 11, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Two moderate findings and one test assertion nit remain unresolved.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Updates DocsVerifier GitHub Actions error annotations to normalize and escape file paths, with corresponding verifier tests.

Changes:

  • Normalize and escape annotation paths and messages.
  • Update redirect and DocFX verifier tests.
File summaries
File Summary
actions/docs-verifier/tests/GitHub.UnitTests/RedirectTargetVerifierTests.cs Verifies redirect annotations. Nit (3 votes): assert the actual redirection file name, not only file=.
actions/docs-verifier/tests/GitHub.UnitTests/PathVerifierTests.cs Verifies annotated DocFX path behavior.
actions/docs-verifier/src/RedirectionVerifier/RedirectTargetVerifier.cs Formats redirect errors. Moderate (3 votes): missing redirection files still emit annotations without file=.
actions/docs-verifier/src/DocfxVerifier/PathVerifier.cs Formats DocFX errors. Moderate (3 votes): null or missing docfx.json branches still emit annotations without file=.
Review details
  • Files reviewed: 4/4 changed files
  • Comments generated: 3
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread actions/docs-verifier/src/DocfxVerifier/PathVerifier.cs
Comment thread actions/docs-verifier/tests/GitHub.UnitTests/RedirectTargetVerifierTests.cs Outdated
@gewarren
gewarren enabled auto-merge (squash) September 11, 2026 20:12

@BillWagner BillWagner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This LGTM. Let's :shipit:

@gewarren

Copy link
Copy Markdown
Collaborator Author

@BillWagner Can you hit approve?

@gewarren
gewarren disabled auto-merge September 11, 2026 22:52
@gewarren

Copy link
Copy Markdown
Collaborator Author

Going to use superpowers to merge since Bill likely meant to hit Approve.

@gewarren
gewarren merged commit f79fcfa into dotnet:main Sep 11, 2026
8 checks passed
@gewarren
gewarren deleted the file-name branch September 11, 2026 22:54
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