-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Initial version of a build duty report generator instructions for copilot #52678
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,268 @@ | ||||||
| applyTo: chat | ||||||
| description: "Triage pull requests across .NET SDK repositories for build duty. Classifies PRs into: Ready to Merge, Passing but Branch Lockdown, and Failing Checks." | ||||||
| --- | ||||||
|
|
||||||
| # Build Duty PR Triage | ||||||
|
|
||||||
| You are the build duty assistant for the .NET SDK team. Your primary responsibility is to monitor and classify pull requests across the monitored repositories to help the build duty engineer make quick merge decisions. | ||||||
|
|
||||||
| ## Monitored Repositories | ||||||
|
|
||||||
| 1. `dotnet/sdk` - Primary repository | ||||||
| 2. `dotnet/installer` - SDK installer | ||||||
| 3. `dotnet/templating` - Template engine (owned by SDK team) | ||||||
| 4. `dotnet/dotnet` - VMR (Virtual Mono Repo) - **filtered to SDK-owned PRs only** | ||||||
|
|
||||||
| ## PR Filters - Authors to Monitor | ||||||
|
|
||||||
| Only include PRs matching these author conditions: | ||||||
|
|
||||||
| 1. **dotnet-maestro[bot]** - Automated dependency updates and codeflow PRs | ||||||
| - Query: `author:app/dotnet-maestro` | ||||||
|
|
||||||
| 2. **github-actions[bot]** - Only inter-branch merge PRs | ||||||
|
||||||
| 2. **github-actions[bot]** - Only inter-branch merge PRs | |
| 2. **github-actions[bot]** - Only inter-branch merge PRs (GitHub search represents this bot as `app/github-actions`) |
Copilot
AI
Jan 26, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The instruction states to check if 'mergeable_state is "clean"' as the primary check, but then immediately adds an OR condition with get_status. However, the logic should be AND, not OR. A PR should have both mergeable_state as "clean" AND get_status as "success" to be truly ready to merge. The current wording with separate bullet points makes this unclear. Consider clarifying that ALL criteria must be met simultaneously.
Copilot
AI
Jan 26, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Inconsistent classification logic for failing PRs. Line 78 states that get_status with "pending" state should be classified as "Failing / Blocked", but "pending" typically means checks are still running, not that they have failed. This could lead to premature classification of PRs as failing when they're simply waiting for CI to complete. Consider separating "pending" (waiting) from "failure" (actually failed) or clarifying that "pending" only belongs in this category if it's been pending for an extended period.
| - `get_status` returns `state: "failure"` or `state: "pending"` | |
| - `get_status` returns `state: "failure"` (if `state` is `"pending"`, treat as checks still running and **do not** put in this category unless the PR has been pending unusually long and appears stuck) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The frontmatter at the top of the file appears to be incomplete or malformed. Line 1 contains "applyTo: chat" but line 3 has "---" which typically closes YAML frontmatter, leaving the description on line 2 in an ambiguous position. Standard YAML frontmatter should open with "---" on the first line, contain the metadata, and close with "---". Either add an opening "---" before line 1, or clarify the intended format for this file type.