Repository navigation
JWB-946: GitHub Issues tracker adapter on gh auth - #96
Merged
Merged
Conversation
- src/adapters/trackers/github/ is an assignee-only tracker over gh api: issues, blocked_by/blocking dependencies and sub-issue parents; the mirror is the assignee plus an interlock label; complete closes the issue and linkArtifact comments the PR link. Interlock stores no GitHub secret. - Keys are GH-<number>; refs carry the repository as the instance, so the lane tracker derives the site from the ref (siteOf) and needs no saved site for external_cli sign-in. - doctor checks only the configured tracker and renders a none sign-in as ready instead of not signed in. - github_repo user setting; release reads the configured tracker's site. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # src/app/pickup/runtime.ts
- configuredTracker(settings, key) prefers the tracker whose narrower key grammar serves the key; pickup and supervisor maps use it, release takes the site of the claimed ticket's tracker, and doctor checks every configured tracker. - GitHub connect verifies gh sign-in, so a signed-out gh surfaces as tracker_unavailable before lane work. Co-Authored-By: Claude Opus 5.5 <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
src/adapters/trackers/github/, an assignee-only tracker overgh apithat usesgh auth. Interlock stores no GitHub secret.dependencies/blocked_byanddependencies/blockingedges, and its sub-issueparent, which becomes the map.listWorkreads every sub-issue of a map in full.interlocklabel; the Git ref stays the authority.completecloses the issue as completed, andlinkArtifactcomments the PR link once and verifies it by readback.GH-<n>. A ref isgithub:<owner>.<repo>:GH:ticket:GH-<n>, so cross-repo blockers resolve.githubIssuesentry. The registry interface also gainssetting: "jira_site" | "github_repo",signIn(services)so tests can inject a gh transport, and optionalsiteOf(instance).github_repouser setting (config edit --set github_repo OWNER/NAME).doctorshowed anonetracker as not signed in. It now renders "needs no sign-in" and checks only the configured tracker, so Jira users without gh aren't failed.external_clisign-in. It now derives the site from the ref (siteOf).executionTarget(release) now reads the configured tracker's site instead ofjira_siteonly.Outside the adapter folder (AC4 asked for registry + config schema only):
registry.ts,configuration/schema.ts,configuration/inputs.ts(the--setenum),signed-in.tsanddoctor.ts(the requested bug fixes),pickup/runtime.ts(executionTarget, 2 lines), README, anddocs/domain-model.md.Acceptance evidence
AC1–3: reads, mirror, complete/link, conformance at the assignee-only tier
test/adapters/trackers/github/tracker.test.ts: "GitHub Issues passes the conformance suite at the assignee-only tier" runs all 6trackerConformancecases, none failing.Checks at head 2c38ee4
AC5: one real GitHub issue from pickup to closed
Run in the private sandbox repo JarenKempton/interlock-e2e-sandbox, with
interlock=bun src/main.tsat this branch andXDG_STATE_HOMEpointed at a scratch folder (scratch state DB, not~/.local/state/interlock).The sandbox repo, issue #1 and PR #2 stay up as evidence.
🤖 Generated with Claude Code