Back to Commands

Sync Issues To Linear

Commands sync 78
Install Command
npx claude-code-templates@latest --command sync/sync-issues-to-linear
View on GitHub

Content

Sync Issues to Linear

Sync GitHub issues to Linear workspace with intelligent field mapping: $ARGUMENTS

Current Repository Context

  • Repository: !gh repo view --json nameWithOwner -q .nameWithOwner 2>/dev/null || echo "No repo context"
  • Issue count: !gh issue list --state all --limit 1 --json number | jq length 2>/dev/null || echo "Check manually"
  • Linear teams: Available Linear teams and project assignments
  • Rate limits: !gh api rate_limit -q '.rate | "GitHub: \(.remaining)/\(.limit)"' 2>/dev/null

Task

Execute comprehensive synchronization of GitHub issues to Linear workspace:

Sync Scope: Use $ARGUMENTS to filter by issue state, labels, assignees, milestones, or specific issue sets

Synchronization Framework:

  1. Issue Discovery - Fetch GitHub issues with comprehensive metadata, apply filters, validate requirements
  2. Field Mapping - Transform GitHub fields to Linear format, map priorities, convert labels, handle assignees
  3. Data Validation - Check required fields, validate user mappings, ensure data integrity, prevent duplicates
  4. Linear Integration - Create tasks with proper formatting, apply team assignments, set projects, manage relationships
  5. Rate Limit Management - Implement exponential backoff, batch operations, monitor API limits, optimize requests
  6. Progress Tracking - Provide real-time updates, handle errors gracefully, maintain sync state, generate reports

Advanced Features: Smart priority inference, intelligent user mapping, incremental sync capabilities, comprehensive error recovery.

Data Integrity: Preserve formatting, maintain metadata, create bidirectional references, ensure audit trails.

Output: Complete synchronization results with success metrics, error reports, mapping summaries, and comprehensive sync analytics.

Stack Builder

0 components

Your stack is empty

Browse components and click the + button to add them to your stack for easy installation.