Skip to content

Ticket ingestion beyond GitHub: Linear tickets can start a thread (#169) - #659

Merged
currentbits merged 5 commits into
mainfrom
coder/fork-ticket-ingestion-beyond-github-line-4af980
Aug 22, 2026
Merged

currentbits merged 5 commits into
mainfrom
coder/fork-ticket-ingestion-beyond-github-line-4af980

Conversation

@currentbits

Copy link
Copy Markdown
Owner

Paste a Linear URL or an ENG-123 identifier anywhere a GitHub issue reference already worked, and it starts a thread the same way. The Planboard stays GitHub-only.

What's here

  • electron/linear.js (new) — parses ENG-123 and https://linear.app/<workspace>/issue/ENG-123/..., fetches through the Linear GraphQL API with a 30s abort timeout. Never throws: missing key, auth, not found, timeout and unparseable JSON all come back as { ok: false, reason }, matching the existing issue-fetch contract. Injectable linearGraphql / fetch seams for tests.
  • electron/issues.js — fetchIssue branches Linear vs GitHub; Linear bodies get the same untrusted-content banner. The GitHub gh issue view path is unchanged, and Linear does not need a GitHub remote.
  • API key — AppSettings.linearApiKey, sealed at rest via secrets.js like MCP tokens and OTel headers, with LINEAR_API_KEY as the environment fallback. New password field under Settings, Git.
  • Prompt shape — Linear threads open with Linear issue ENG-123: ..., deliberately not GitHub issue #N:, and issueNumber is left unset. Post-merge reopen scans for the GitHub form, so it cannot act on a ticket with no GitHub counterpart, and the plan:* column move is skipped for Linear.
  • UI — "From GitHub issue" becomes "From issue"; placeholder is now GitHub URL, Linear URL, or ENG-123. Docs paragraph updated.

Verification

Run in the worker's worktree:

  • tsc --noEmit clean; scripts/sync-ipc-preload.js --check passes (no new IPC channel, it reuses issues:fetch)
  • electron/test/{issues,secrets,autodispatch,guardrails-inbound}.test.js gives 65 pass / 0 fail
  • test/{settingsModal,sidebarIssue}.test.tsx gives 38 pass / 0 fail

Notes for review

  • Opened over the 400-line PR cap on purpose: 489 of the 889 lines are the new electron/linear.js plus its new test file.
  • parseTicketRef in electron/issues.js is exported but has no call site outside its own test. Either delete it or give it a caller before this lands.

🤖 Generated with Claude Code

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

Both sides appended a field to the same one-line settings literal in the
two settings-shape tests: main added feltEstimatePrompt, this branch added
feltEstimatePrompt plus linearApiKey. Kept the branch side, which carries
both.

Co-Authored-By: Claude Opus 5 <[email protected]>
@currentbits
currentbits merged commit 608e141 into main Aug 22, 2026
5 of 6 checks passed
@currentbits
currentbits deleted the coder/fork-ticket-ingestion-beyond-github-line-4af980 branch October 3, 2026 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant