You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(github): main defines get_compare_diff twice #5404
effort/lowEffort Low: little workpriority/p1-highPriority P1: high-impact work for the next planned milestonescope/githubGitHub Projects v2, Views, Milestones, Labels, and PR automationsource/agentFiled by an agenttype/bugType bug: the code does not do what it mustvalue/highValue High: the delivery of the item matters much
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.
effort/lowEffort Low: little workpriority/p1-highPriority P1: high-impact work for the next planned milestonescope/githubGitHub Projects v2, Views, Milestones, Labels, and PR automationsource/agentFiled by an agenttype/bugType bug: the code does not do what it mustvalue/highValue High: the delivery of the item matters much
Activity
dan-petty commentedon Nov 13, 2026
Main is red and the pre-push hook blocks every rebased branch, halting all development.Both touch the github client PR-reading path, but the candidate removes a duplicate method while #5397 fixes how merged PR state is read.devops-cli-service commentedon Nov 13, 2026
Released in v0.127.1: https://github.com/dan-petty/devops-cli/releases/tag/v0.127.1
devops-cli-service commentedon Nov 13, 2026
Live since 2026-11-13 12:38 UTC