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): a failed milestone patch leaves the created issue without a milestone, the board-less triage audit reports no missing priority, and review threads read every comment page #2158
Three fallback paths in github/ have no test, and two of them give a wrong result.
Issue create with a milestone that gh cannot add.create_repository_issue creates the issue without the milestone and then sets it with a REST PATCH. It does not read the result of the PATCH, so a failed PATCH still returns the issue with the milestone set.
The triage audit and the summary with no roadmap board._audit_rest_issues sets has_priority = False for every issue. So without a board, every issue is reported as missing a priority, and valid_count is always 0. The audit cannot know Priority without a board, because Priority is a board field. _summarize_rest_issues has no test.
Review thread comments after the first page._read_thread reads the later pages through _later_comments, and _parse_graphql_output refuses a reply that is not JSON, not an object, or that holds errors. No test gives a thread with more than one page of comments, or one of these replies.
The coverage run of CI at f4d7066 has github/issues.py at 75% and github/pr_threads.py at 86%.
What should happen
A failed milestone PATCH gives an issue with no milestone, and the command says that the milestone was not set.
Without a board, the audit does not report a missing priority. It says that Priority was not checked because the repository has no roadmap board.
A thread with comments on three pages returns every comment, in order.
Tests first: a failed milestone PATCH gives a GitHubIssue with milestone=None. The test fails on today's code.
Tests first: audit_issues_triage with no board reports no issue as missing a priority, and the result says that Priority was not checked. The test fails on today's code.
A test checks get_issues_summary with no board as a whole dictionary.
A test lists the review threads of a pull request whose thread has three pages of comments, and gets every comment in order. Tests give the listing a reply that is not JSON, one that is a list, and one with errors, and check the GitHubOperationError message.
The tests answer gh through process_fake or GitHub through the github_api fake, call only public functions, and patch no devops_cli name (docs/TESTING.md).
uv run devops ci passes.
Related: #1321 moves the github/ tests onto the gh and session fakes.
Activity
dan-petty commentedon Oct 24, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones on the board.
The candidate fixes incorrect behavior in GitHub issue handling with specific failure paths.This fix corrects a critical path in issue creation and triage that affects workflow integrity.Correct milestone handling impacts release planning and project tracking accuracy.Requires tests for multiple failure paths and corrections to existing logic.fix(github): a failed milestone patch leaves the created issue withou…
chore(main): release 0.8.2 (#2392)