Add workflow to detect new NETSDK diagnostics in PRs#52854
Open
Add workflow to detect new NETSDK diagnostics in PRs#52854
Conversation
baronfel
reviewed
Feb 5, 2026
Copilot
AI
changed the title
[WIP] Add GitHub Actions workflow for .NET SDK diagnostics
Add workflow to detect new NETSDK diagnostics in PRs
Feb 5, 2026
Co-authored-by: baronfel <573979+baronfel@users.noreply.github.com>
Co-authored-by: baronfel <573979+baronfel@users.noreply.github.com>
Co-authored-by: baronfel <573979+baronfel@users.noreply.github.com>
Co-authored-by: baronfel <573979+baronfel@users.noreply.github.com>
2d4d686 to
239ea9b
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds a GitHub Actions workflow to automatically detect new .NET SDK diagnostic codes (NETSDK####) in pull requests and flag them for documentation updates in the dotnet/docs repository.
Changes:
- Introduces automated detection of new NETSDK diagnostic codes in
.xlftranslation files - Applies
sdk-diagnostic-docs-neededlabel when new diagnostics are found - Posts/updates sticky PR comment reminding contributors to update SDK diagnostic documentation
nagilson
reviewed
Feb 5, 2026
Member
|
@copilot respond to Noah's feedback.
|
…tokens, add size check Co-authored-by: baronfel <573979+baronfel@users.noreply.github.com>
Contributor
Author
All feedback addressed in commit 0ef8c3e:
|
Member
|
@nagilson if you want to take another look, I think most of your feedback has been addressed! |
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.
Implementation Plan: NETSDK Diagnostic Detection Workflow
✅ All requirements implemented and security feedback addressed
Key Changes (Latest)
read-diff: Checkout and read git diff (read-only permissions)detect-diagnostics: Parse and detect NETSDK codes (no permissions)apply-label-and-comment: Apply label and post comment (write permissions only)read-allwith per-job overridesSummary
✅ Uses
git diff -- '*.xlf'for precise file filtering✅ Safe for fork PRs (pull_request_target + minimal permissions)
✅ Job outputs instead of temp files
✅ Size validation (1MB limit)
✅ Token clearing for security
✅ Separated concerns with appropriate permissions per job
Original prompt
This pull request was created from Copilot chat.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.