feat: land requests a Copilot review on GitHub PRs
This commit is contained in:
@@ -61,6 +61,14 @@ if [ ! -f "$seen" ]; then
|
||||
fi
|
||||
```
|
||||
|
||||
**Copilot review** (once, right after baselining): if Copilot has neither reviewed nor been requested, request it. Its comments then flow through the normal comment watcher like any other bot reviewer.
|
||||
```bash
|
||||
if ! gh pr view <N> --json reviews,reviewRequests --jq '.. | .login? // empty' | grep -qi copilot; then
|
||||
gh api -X POST repos/<OWNER>/<REPO>/pulls/<N>/requested_reviewers \
|
||||
-f 'reviewers[]=copilot-pull-request-reviewer[bot]' >/dev/null 2>&1 || true # repo may not have Copilot review enabled
|
||||
fi
|
||||
```
|
||||
|
||||
**Wait for CI** (after every push): block in the background — one wake when checks reach a terminal state. Do NOT poll `statusCheckRollup` in a loop.
|
||||
```
|
||||
# Bash run_in_background: true
|
||||
|
||||
Reference in New Issue
Block a user