feat(tracker): integrate GitHub native Dependencies API for blockedBy#170
Merged
Conversation
Implements fetchBlockedBy using GET /repos/{owner}/{repo}/issues/{n}/dependencies/blocked_by
(API version 2026-03-10) and populates blockedBy on each Issue returned by
fetchIssuesByStates / fetchCandidateIssues. Fetches are sequential to respect
secondary rate limits and degrade gracefully to [] on any REST failure.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
6 tasks
Owner
Author
|
[Baton Reviewer] PR #170 is ready for human review. |
keinstn
commented
Jun 24, 2026
keinstn
commented
Jun 24, 2026
…lockedBy Pass AbortSignal.timeout(NETWORK_TIMEOUT_MS) to prevent stalled network requests from blocking orchestrator ticks. Return [] on any mid-pagination failure instead of partial blocker data that could mask open blockers. 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
fetchBlockedByinsrc/tracker/github-projects.tsusingGET /repos/{owner}/{repo}/issues/{n}/dependencies/blocked_by(API version2026-03-10)blockedByon eachIssuereturned byfetchIssuesByStates/fetchCandidateIssues, replacing the// Phase 1stub that always returned[]restBaseFromEndpointandparseLinkNexthelpers (same pattern asscripts/triage/fetcher.ts) for REST URL construction and Link-header paginationblockedBy: []per SPEC §4.1.1BlockerRef.identifieruses<repoName>-<number>format (e.g.baton-149) extracted fromrepository_urlCloses #167
Test plan
npm run test— 342 tests pass (added 5 new blockedBy tests totest/tracker.test.ts)npm run typecheck— no errorsnpm run lint— no errorstriage-fetcher.test.tstests updated to account for the additional blocked_by REST calls that now precede sub_issues calls🤖 Generated with Claude Code