Skip to content

Update SKILL.md with obsolete API replacement guidance - #13055

Merged
gewarren merged 4 commits into
mainfrom
gewarren-patch-4
Sep 3, 2026
Merged

Update SKILL.md with obsolete API replacement guidance#13055
gewarren merged 4 commits into
mainfrom
gewarren-patch-4

Conversation

@gewarren

@gewarren gewarren commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

Added a guideline to replace obsolete APIs with their replacements, such as using HttpClient instead of WebRequest.
Updated C# modernization guidelines in SKILL.md.
@gewarren
gewarren marked this pull request as ready for review September 3, 2026 19:11
@gewarren
gewarren requested a review from a team as a code owner September 3, 2026 19:11
Copilot AI lite review requested due to automatic review settings September 3, 2026 19:11
@gewarren
gewarren enabled auto-merge (squash) September 3, 2026 19:11

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

The updated guidance is either less specific or potentially misleading (notably around target-typed new wording and WebRequestHttpClient being scenario-dependent).

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR updates the csharp-snippet-modernization Skill guidance to adjust how snippet modernizations are described, including new guidance around replacing obsolete APIs.

Changes:

  • Rewords the guidance around using target-typed object creation (previously “target-typed new”).
  • Adds guidance to replace obsolete APIs, with an example suggesting WebRequestHttpClient.
File summaries
File Description
.github/skills/csharp-snippet-modernization/SKILL.md Updates modernization rules and adds an obsolete-API replacement guideline for future snippet updates.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 2
  • 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 .github/skills/csharp-snippet-modernization/SKILL.md
Comment thread .github/skills/csharp-snippet-modernization/SKILL.md

@wadepickett wadepickett 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.

@gewarren: Approved. I am not finding any issues beyond what the copilot review brought up. The line 55 one should be addressed. the line 37 rewording suggestion issue seems a bit optional.

@wadepickett wadepickett 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.

@gewarren: Re-approved.

@gewarren
gewarren merged commit 3cc8752 into main Sep 3, 2026
7 checks passed
@gewarren
gewarren deleted the gewarren-patch-4 branch September 3, 2026 20:24
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