Skip to content

fix(github): main defines get_compare_diff twice #5404

Closed

Description

@dan-petty

Problem

main is red at c54e14c. PR #5387 (merged 11:35Z) and PR #5401 (merged 11:37Z) each added GitHubClient.get_compare_diff to src/devops_cli/github/client.py, so the class defines it twice (lines 519 and 527, the same body, different docstrings). ruff F811 and mypy no-redef fail, the Static Analysis check of main fails, and the pre-push hook refuses every rebased branch.

Proposed fix

Remove the first definition and keep one method, with a docstring that names both callers (#5346 review, #5388 stage readiness and release files).

Acceptance criteria

  • uv run devops ci --check --only lint,typecheck passes on the branch.
  • The Static Analysis check passes on the pull request.

Existing tool considered

ruff and mypy find it. No new tool. Cost: about 20,000 tokens, 15 minutes elapsed.

Activity

  1. added
    source/agent
    type/bug
    scope/github
    status/new
    value/high
    effort/low
    on Nov 13, 2026
  2. dan-petty commented on Nov 13, 2026

    @dan-petty
    OwnerAuthor
    • Priority: P1-High. Main is red and the pre-push hook blocks every rebased branch, halting all development.
    • Related: fix(review): read a merged pull request from its merged state #5397, which asks for a different change. Both touch the github client PR-reading path, but the candidate removes a duplicate method while #5397 fixes how merged PR state is read.
  3. added
    priority/p1-high
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Nov 13, 2026
  4. removed
    status/in-review
    on Nov 13, 2026
  5. devops-cli-service commented on Nov 13, 2026

    @devops-cli-service
    Contributor
  6. devops-cli-service commented on Nov 13, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-13 12:38 UTC

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

    effort/lowpriority/p1-highscope/githubsource/agenttype/bugvalue/high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions