Skip to content

feat: introduce a way to poll and trigger copilot reviews in a loop #77

@perezd

Description

@perezd

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions