Skip to content

fix(github): treat copilot review as completed when zero unresolved threads remain #216

Closed

Description

@dan-petty

Description

When GitHub Copilot completes an initial review and recommends changes, it posts a review body containing '### Changes recommended' and inline comments creating review discussion threads. After developers or AI agents remediate the comments, push new commits, reply to all threads, and programmatically resolve them, 'devops pr check-readiness' correctly confirms 0 unresolved threads and clean mergeability.

However, 'devops pr monitor' / 'devops pr wait' inspects historical reviews via '_detect_copilot_status' and finds the original Copilot review with 'Changes recommended'. Because Copilot is an AI bot that cannot approve or dismiss historical reviews, 'copilot_status.state' remains permanently stuck in 'changes_requested', causing '_check_early_pr_failures' to exit with code 2 indefinitely even after 100% CI passes, 0 unresolved threads remain, and merge readiness is satisfied.

Proposed Solution

  1. Update '_detect_copilot_status' to evaluate whether active unresolved threads exist on the PR. If Copilot recommended changes but 0 unresolved threads remain (or all threads are resolved), transition 'copilot_status.state' to 'completed'.
  2. Add unit test coverage in 'tests/test_github_pr_monitor.py' verifying that a PR with historical Copilot 'changes recommended' but 0 unresolved threads evaluates to 'completed' and exits code 0 in 'monitor_pr'.

Activity

  1. added this to the v0.2.19 milestone on Sep 16, 2026
  2. added
    type/bug
    scope/github
    priority/p1-high
    on Sep 16, 2026
  3. added a commit that references this issue on Sep 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority/p1-highscope/githubtype/bug

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions