feat(triage): surface open sub-issues in triage evaluation#147
Merged
Conversation
- Add `TriageIssue` (extends `Issue`) with `openSubIssues` field in fetcher.ts - Fetch open sub-issues per issue via GitHub REST API in `fetchAndGroup` - Update `Evaluator.evaluate` and `renderPrompt` to accept `TriageIssue[]` - Update evaluator adapters (claude-eval, copilot-eval) accordingly - Add openSubIssues rendering to examples/TRIAGE.md prompt template - Add tests for sub-issue fetching, filtering, and prompt rendering Closes #143 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
7 tasks
Owner
Author
|
[Baton Reviewer] Review result: pass — no actionable issues found; ready for human review. |
keinstn
commented
Jun 24, 2026
…, and missing pages - Wrap resp.json() in try/catch so a non-JSON body (e.g. proxy HTML error page on a 200 response) returns [] instead of crashing the whole triage run - Fix REST base URL derivation for GHES: /api/graphql → /api/v3 (was /api/graphql → /api, missing the /v3 segment, causing silent 404s) - Follow Link response header to paginate sub-issues beyond the first page (GitHub defaults to 30/page; now requests 100/page and follows rel="next") - Process sub-issue requests sequentially instead of concurrent Promise.all to avoid GitHub secondary rate-limit 429s on large boards Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
TriageIssue(extendsIssue) with anopenSubIssues: SubIssueRef[]field inscripts/triage/fetcher.ts—src/tracker/types.tsis untouchedfetchAndGroupnow fetches open sub-issues per issue viaGET /repos/{owner}/{repo}/issues/{issue_number}/sub_issues(GitHub REST API) in parallel, filtering to onlystate: "open"itemsEvaluator.evaluate,renderPrompt, and both adapter implementations (claude-eval.ts,copilot-eval.ts) to acceptTriageIssue[]**Open sub-issues (N):**line to theexamples/TRIAGE.mdprompt template after the existing**Blocked by:**linerenderPromptrendering with 0/1/many open sub-issuesCloses #143
Test plan
npm run test— 330 tests passnpm run typecheck— no errorsnpm run lint— no errorsrenderPromptoutput (seerenderPrompt — openSubIssuestest suite)noneTriageIssuedefined inscripts/triage/fetcher.ts;Issueinsrc/tracker/types.tsunchangedblockedBynot used for sub-issue data anywhere🤖 Generated with Claude Code