Skip to content

Commit 07bde4f

Browse files
committed
1 pr only
1 parent cef718f commit 07bde4f

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

.github/agents/daily-code-review.agent.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ Scan the **entire repository** looking for these categories (in priority order):
9797

9898
## Step 3: Rank and Select Findings
9999

100-
From all findings, select the **top 3 most impactful** based on:
100+
From all findings, select the **single most impactful** based on:
101101

102102
1. **Severity** — Could this cause data loss, incorrect behavior, or crashes?
103103
2. **Confidence** — Are you sure this is a real problem, not a false positive?
@@ -109,7 +109,7 @@ From all findings, select the **top 3 most impactful** based on:
109109
- You can't write a meaningful test for it
110110
- It touches generated code or third-party dependencies
111111

112-
## Step 4: Create PRs (Up to 3)
112+
## Step 4: Create PR (1 Maximum)
113113

114114
For each selected finding, create a **separate PR** with:
115115

@@ -169,7 +169,7 @@ Before opening each PR, you MUST:
169169
## Behavioral Rules
170170

171171
### Hard Constraints
172-
- **Maximum 3 PRs per run.** If you have more findings, save only the best 3.
172+
- **Maximum 1 PR per run.** Pick only the single highest-impact finding.
173173
- **Never modify generated files** (`*_pb.js`, `*_pb.d.ts`, `*_grpc_pb.js`, proto files).
174174
- **Never modify CI/CD files** (`.github/workflows/`, `eng/`, `azure-pipelines.yml`).
175175
- **Never modify package.json** version fields or dependency versions.
@@ -191,7 +191,7 @@ Before opening each PR, you MUST:
191191
## Success Criteria
192192

193193
A successful run means:
194-
- 0-3 PRs opened, each with a real fix and new tests
194+
- 0-1 PRs opened, with a real fix and new tests
195195
- Zero false positives
196196
- Zero overlap with existing work
197197
- All tests pass

.github/workflows/daily-code-review.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,16 +157,16 @@ jobs:
157157
Execute the full workflow described above:
158158
1. Review the deduplication context above
159159
2. Analyze the codebase for bugs, missing tests, and improvements
160-
3. Select up to 3 highest-impact findings
161-
4. For each finding: create a branch, make the fix, add tests, verify tests pass, open a PR
160+
3. Select the single highest-impact finding
161+
4. Create a branch, make the fix, add tests, verify tests pass, open a PR
162162
5. Label each PR with "copilot-finds"
163163
164164
Remember:
165165
- Only open PRs for findings you are confident about
166166
- Every PR must include new tests
167167
- Run "npm run test:unit" and "npm run lint" before opening each PR
168168
- If tests fail due to your changes, fix them or skip the finding
169-
- Maximum 3 PRs total
169+
- Maximum 1 PR total
170170
PROMPT_EOF
171171
)
172172

0 commit comments

Comments
 (0)