Skip to content

fix(github): add REST API fallback and rate limit handling for pr review threads #180

Closed

Description

@dan-petty

Problem Statement

When GitHub's secondary rate limits or GraphQL API limits are exceeded, devops pr threads list fails with an unhandled GitHubOperationError: GitHub GraphQL query failed: gh: API rate limit already exceeded for user ID 7726889.

Proposed Changes

  1. Catch GraphQL rate limit errors in src/devops_cli/github/pr_threads.py.
  2. Provide fallback to GitHub REST API (GET /repos/{owner}/{repo}/pulls/{pull_number}/comments) to retrieve review comments when GraphQL hits rate limits.
  3. Emit structured warning and handle pagination gracefully.

Activity

  1. added this to the v0.2.11 milestone on Sep 12, 2026
  2. added
    type/bug
    scope/github
    priority/p2-medium
    on Sep 12, 2026
  3. modified the milestones: v0.2.11, v0.2.17 on Sep 12, 2026
  4. added
    priority/p1-high
    status/in-progress
    and removed
    priority/p2-medium
    on Sep 13, 2026
  5. added and removed
    status/in-progress
    on Sep 13, 2026
  6. 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/bug

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions