You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/pr-sous-chef.md
+9-2Lines changed: 9 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -178,6 +178,7 @@ Move open non-draft PRs toward a state where a maintainer can investigate quickl
178
178
6. If a `pr-processor` call returns non-JSON or an error, record `{pr_number: <N>, skip_reason: "sub_agent_error"}` in the `skipped` array of the run-summary noop payload and move to the next PR without retrying.
179
179
7. Do not fetch full PR diffs or large file lists unless absolutely required for a skip decision.
180
180
8.**Never finish without at least one safe-output tool call.** If you have not called `add_comment` or `update_pull_request`, you must call the run-summary `noop` (see **Run summary** below) before finishing.
181
+
9. Call safe-output MCP tools directly (`add_comment`, `update_pull_request`, `push_to_pull_request_branch`, `noop`, `report_incomplete`). Do **not** use `gh pr comment`, `gh api ... -X POST`, or `safeoutputs ...` shell wrappers for write actions.
181
182
182
183
## Required skip rules per PR
183
184
@@ -218,9 +219,9 @@ For each PR that is not skipped:
218
219
- a short sentence asking Copilot to address unresolved review feedback.
219
220
- Every `add_comment` must include `pr_number` set to the current PR's numeric `number` from the loop item.
220
221
- Never emit `add_comment` without a numeric target field (`pr_number`/`pull_request_number`/`issue_number`/`item_number`) when `target: "*"` is configured.
221
-
- Example:
222
+
- Example (`add_comment` tool call):
222
223
```json
223
-
{"type":"add_comment","pr_number":12345,"body":"<!-- gh-aw-pr-sous-chef-nudge -->\n@copilot review all comments and address unresolved review feedback."}
224
+
{"add_comment":{"pr_number":12345,"body":"<!-- gh-aw-pr-sous-chef-nudge -->\n@copilot review all comments and address unresolved review feedback."}}
224
225
```
225
226
226
227
3. **Apply one additional forward-progress nudge**
@@ -242,6 +243,12 @@ At the end, call **exactly one** `noop` with a compact summary including counts
242
243
- branch_update_attempts
243
244
- formatter_pushes (number of PRs that had formatting fixes committed and pushed)
-**Header Levels**: Use h3 (`###`) or lower for all headers in your report to maintain proper document hierarchy. Never use h1 (`#`) or h2 (`##`) headers.
0 commit comments