Skip to content

feat(pr): implement automated pr monitoring for ci checks and copilot review sessions #170

Closed

Description

@dan-petty

Description

Implement an effective solution for monitoring pull request comments, checks, and Copilot review sessions, ensuring that pull requests are thoroughly verified and ready for merging before an agent or developer concludes a task.

Scope & Acceptance Criteria

  1. Implement devops pr monitor [NUMBER] CLI command under src/devops_cli/commands/pr.py and src/devops_cli/github/pr_monitor.py:
    • Auto-resolves current branch PR if number not specified.
    • Monitors remote CI checks until all runs are completed.
    • Monitors Copilot review sessions (detecting active work or waiting for review settling).
    • Queries unresolved PR review threads via GraphQL.
    • Exits non-zero with actionable failure details if checks fail or unresolved review threads remain.
    • Exits 0 only when all CI checks are green and zero unresolved review threads exist.
  2. Expose pr_monitor tool in FastMCP server (src/devops_cli/ai/mcp/server.py).
  3. Update agent instructions in AGENTS.md, docs/ROUTINE_TASKS.md, docs/SDLC.md, and src/devops_cli/ai/instruction_generator.py to mandate running devops pr monitor and resolving all threads before completing PR tasks.
  4. Comprehensive unit tests covering pr monitor scenarios (all green, failing checks, active Copilot review, unresolved threads, auto-detect PR).
  5. Pass devops ci with 100% quality gate compliance.

Activity

  1. added this to the v0.2.17 milestone on Sep 12, 2026
  2. added
    type/feature
    scope/github
    priority/p0-critical
    status/in-progress
    on Sep 12, 2026
  3. added
    status/in-review
    and removed
    status/in-progress
    on Sep 12, 2026
  4. added a commit that references this issue on Sep 14, 2026
  5. removed
    status/in-review
    on Oct 30, 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/p0-criticalscope/githubtype/feature

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions