C#: Rename Dependabot to Registry and update log messages. - #22542
C#: Rename Dependabot to Registry and update log messages.#22542michaelnebel wants to merge 2 commits into
Conversation
fc5a547 to
67f98aa
Compare
67f98aa to
1c2025b
Compare
…mprove some unit tests comments.
1c2025b to
c5d5827
Compare
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
The rename is complete and consistent; the identified documentation wording issue is non-blocking.
Review tier: Balanced
Findings: 1
New issues introduced by this change (1)
| Severity | Finding |
|---|---|
csharp/extractor/Semmle.Extraction.CSharp.DependencyFetching/EnvironmentVariableNames.cs — Describe ProxyPort as a port |
What changed in this PR
Renames the C# dependency-fetching proxy abstraction from Dependabot to Registry and updates related logging and tests.
Changes:
- Renames proxy interfaces, implementations, parameters, and test stubs.
- Updates proxy log messages and certificate directory naming.
- Clarifies unit-test comments.
| File | Description |
|---|---|
RegistryProxy.cs (tests) |
Renames proxy tests and stubs. |
FeedManager.cs (tests) |
Updates test proxy names and comments. |
RegistryProxyConfiguration.cs |
Renames configuration implementation. |
RegistryProxy.cs |
Renames proxy implementation and messages. |
NugetPackageRestorer.cs |
Uses the renamed proxy interface. |
IRegistryProxyConfiguration.cs |
Renames the configuration interface. |
IRegistryProxy.cs |
Renames the proxy interface. |
FeedManagerIO.cs |
Updates proxy handling and warnings. |
FeedManager.cs |
Updates proxy constructor parameters. |
EnvironmentVariableNames.cs |
Updates proxy documentation. |
DotNetCliInvoker.cs |
Updates proxy parameter and logging. |
DotNet.cs |
Propagates the renamed proxy type. |
DependencyManager.cs |
Creates, passes, and disposes the renamed proxy. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
mbg
left a comment
There was a problem hiding this comment.
Thanks for remembering! This generally looks good to me, with just one minor nitpicky comment about the capitalisation of "Registry proxy".
| if (this.proxy != null) | ||
| { | ||
| logger.LogDebug($"Configuring environment variables for the Dependabot proxy at {this.proxy.Address}"); | ||
| logger.LogDebug($"Configuring environment variables for the Registry proxy at {this.proxy.Address}"); |
There was a problem hiding this comment.
Minor: Use lower-case registry proxy instead of Registry proxy in log messages, comments, etc. when it doesn't appear at the start of a sentence since unlike "Dependabot", "Registry" is not a product name and so shouldn't be capitalised.
| ? "chain" | ||
| : "certificate"; | ||
| logger.LogWarning($"Dependabot proxy certificate validation failed due to missing {msg}"); | ||
| logger.LogWarning($"Registry proxy certificate validation failed due to missing {msg}"); |
There was a problem hiding this comment.
(Here the upper-case "Registry" is fine since it's at the start of a sentence.)

Also slightly improve some unit test comments.