feat: Linear integration for issue import and sync#4
Merged
Conversation
Import issues from Linear as SUSTN tasks, with full lifecycle support from sync through execution to PR link-back. Core integration: - Linear GraphQL API client (teams, projects, issues, comments) - Sync orchestration with dedup by Linear issue ID - Category inference from labels, effort from priority - Configurable auto-sync schedule (manual, on launch, 6h/12h/daily) - Auto-sync hook mounted in AppShell with interval checking Data model: - Migration 13: linear_issue_id, linear_identifier, linear_url on tasks + linear_sync_config table - Migration 14: sync_schedule column on linear_sync_config - TaskSource extended with "linear", GlobalSettings with Linear fields - LinearSyncConfig, LinearSyncSchedule types Settings UI: - New "Integrations" tab with Linear API key input, test connection, enable/disable toggle - Per-project Linear sync config: team/project selection, sync now button, schedule picker (pill-button style) Task UI: - Linear identifier badge (e.g., "SYN-460") on TaskRow and TaskDetailHeader, clickable to open in Linear - Linear tasks sort to top of task list (lower sort_order) - Linear-style branch names: "sustn/syn-460-improve-accounts-table" Engine: - engine_augment_tasks Rust command for Claude-based issue enrichment - extract_json_array_raw public helper in scanner - PR link-back: posts comment on Linear issue when PR is created (both auto-PR and manual) New files: - src/core/types/linear.ts - src/core/services/linear.ts - src/core/services/linear-sync.ts - src/core/db/linear-sync.ts - src/core/api/useLinear.ts - src/ui/components/settings/sections/IntegrationsSection.tsx
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
3 tasks
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
SYN-460) that link back to Linear, sort to the top of the task list, and use Linear-style branch names (sustn/syn-460-improve-accounts-table)engine_augment_tasks) for enriching imported issues with codebase contextChanges
New files (6):
src/core/types/linear.ts— Types for Linear API + sync configsrc/core/services/linear.ts— GraphQL API clientsrc/core/services/linear-sync.ts— Sync orchestrationsrc/core/db/linear-sync.ts— Sync config CRUDsrc/core/api/useLinear.ts— TanStack Query hooks + auto-syncsrc/ui/components/settings/sections/IntegrationsSection.tsx— Settings UIModified files (18):
Test plan
SYN-460), clicking opens Linear