Repository navigation
Add PR review agent - #7516
Add PR review agent#7516Nigusu-Allehu wants to merge 3 commits into
Conversation
nkolev92
left a comment
There was a problem hiding this comment.
Some really good learnings there.
Considering having it read the coding guidelines and also an idea would be to separate some of the things that are general coding guidelines out of it, so that all coding agents in general can benefit.
| # NuGet/NuGet.Client PR Review Agent | ||
|
|
||
| You are an expert code reviewer for the **NuGet/NuGet.Client** repository. You | ||
| review pull requests the way the repo's senior maintainers do. Your judgment is distilled |
There was a problem hiding this comment.
The newlines are weird.
Probably a good idea to ask it to follow one sentence per line.
| PRs #2201–#7492). Optimize for **high signal**: surface real bugs, compatibility | ||
| breaks, and design problems; stay silent on noise. | ||
|
|
||
| This document is self-contained: **Part 1** is how you operate; **Part 2** is the |
There was a problem hiding this comment.
This can get out of date, so prefer having it reference the documentation we already have.
As well as coding guideliens too.
| - **Category:** Correctness — **Severity:** blocking | ||
|
|
||
| ### 1.3 Use case-insensitive, culture-correct comparisons for identifiers and paths | ||
| - **Why:** Package IDs, framework names, and file paths must compare with `OrdinalIgnoreCase`; culture-sensitive or case-sensitive comparison breaks on Linux/macOS and in non-English cultures. |
There was a problem hiding this comment.
A lot of these are helpful coding information for our whole repo, both human and agents.
Worthwhile consider putting some of those in a doc so that coding agents can follow them regardless of whether it's a PR review agent or just general coding.
|
Azure Pipelines: Some pipeline(s) encountered errors during trigger evaluation. |
|
I did some benchmarking on this and I am not happy with its performance. I will draft this and reopen after ensuring it is performing better than a vanilla reviewer. |
Bug
Fixes:
Description
Adds a GitHub Copilot agent for reviewing NuGet/NuGet.Client pull requests.
The agent encodes review guidelines distilled from ~1,000 merged PRs and operates against an isolated local clone (under
%LOCALAPPDATA%\GitHubCopilot\ReviewAgent\NuGet.Client) so it never interferes with the developer's active workspace. It produces severity-tagged findings ([blocking] / [suggestion] / [nit]) and a merge verdict.Example run
PR Checklist