Skip to content

feat(github): implement native devops cli functionality for gh operations and pr governance #181

Closed

Description

@dan-petty

Problem Statement

Workflows and AI agent sessions frequently rely on raw gh CLI commands (gh pr ready, gh pr diff, gh pr close, gh run view --log-failed, gh api rate_limit), causing inconsistent workflow control, unhandled rate limits, silent REST API mutation failures (such as attempting to mark draft PRs ready via REST PATCH), and bypassed PR monitoring gates.

Proposed Changes

  1. Pull Request Management: Implement native devops pr ready, devops pr diff, and devops pr close subcommands with pre-flight checks, GraphQL rate limit countdown handling, and ground-truth verification that draft: false.
  2. Workflow Run Inspection: Implement devops gh runs list and devops gh runs view <run_id> --log-failed to inspect failed CI job logs natively without invoking raw gh run view.
  3. API Rate Limit Diagnostics: Implement devops gh rate-limit to display formatted quota tables and reset timers across REST, GraphQL, and Search resources.
  4. FastMCP Server Integration: Register pr_ready, pr_diff, pr_close, gh_rate_limit, gh_runs_list, and gh_run_view tools.
  5. Governance Hardening: Update AGENTS.md, CLAUDE.md, and documentation to mandate native commands and codify draft conversion restrictions.

Activity

  1. added this to the v0.2.17 milestone on Sep 12, 2026
  2. added
    type/feature
    scope/github
    priority/p1-high
    status/in-progress
    on Sep 12, 2026
  3. dan-petty commented on Sep 14, 2026

    @dan-petty
    OwnerAuthor

    Resolved and merged into release/v0.2.17.

  4. added and removed
    status/in-progress
    on Sep 14, 2026
  5. added a commit that references this issue on Sep 14, 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/feature

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions