It appears to be doable to request a review on a PR:
gh api repos/owner/repo/pulls/4/requested_reviewers -X POST -f 'reviewers[]=copilot-pull-request-reviewer[bot]' 2>&1
We need to trigger this, then run a small shell script that polls for feedback completion. Once it's complete, we should trigger a code review. Once a review is received, the agent should be prompted:
/receiving-code-review review the latest findings, then address and resolve each comment. Think holistically about the issues raised, and run a self-review before submission
Once that's complete, the review request should happen again, and a monitoring loop should continue. Once Copilot responds without any new comments, the process should be considered done.
This might require specific GitHub PAT token approvals.
Polling with a script/monitoring should be done with a haiku agent, so it stays incredibly cheap.
It appears to be doable to request a review on a PR:
We need to trigger this, then run a small shell script that polls for feedback completion. Once it's complete, we should trigger a code review. Once a review is received, the agent should be prompted:
Once that's complete, the review request should happen again, and a monitoring loop should continue. Once Copilot responds without any new comments, the process should be considered done.
This might require specific GitHub PAT token approvals.
Polling with a script/monitoring should be done with a haiku agent, so it stays incredibly cheap.