Sync Linear to Issues
Sync Linear tasks to GitHub issues with comprehensive state and field mapping: $ARGUMENTS
Current Linear Context
- Linear teams: Available teams and project assignments
- Task count: Linear task query to determine scope
- Target repository: !
gh repo view --json nameWithOwner -q .nameWithOwner 2>/dev/null || echo "No repo context"
- User mappings: Linear email to GitHub username correspondence
Task
Execute comprehensive synchronization of Linear tasks to GitHub issues:
Sync Scope: Use $ARGUMENTS to filter by Linear team, project, priority levels, or task states
Synchronization Framework:
- Task Discovery - Query Linear tasks with filters, extract metadata, validate requirements, prioritize sync
- State Mapping - Transform Linear states to GitHub equivalents, handle priority conversion, map project assignments
- Content Transformation - Build GitHub issue body, preserve formatting, handle attachments, maintain structure
- GitHub Integration - Create issues with proper labels, assign users, set milestones, manage relationships
- Attachment Migration - Download Linear attachments, upload to GitHub, update references, maintain accessibility
- Comment Synchronization - Transfer comments with attribution, preserve context, handle mentions, maintain threading
Advanced Features: Intelligent state mapping, attachment handling, comment threading, user mention translation, comprehensive validation.
Data Fidelity: Preserve Linear formatting, maintain task relationships, keep timestamps, ensure reference integrity.
Output: Complete synchronization results with created issues, attachment migrations, comment transfers, and comprehensive sync reporting.
1---2name: sync-linear-to-issues3description: Sync Linear tasks to GitHub issues with comprehensive state and field mapping: $ARGUMENTS4---56# Sync Linear to Issues78Sync Linear tasks to GitHub issues with comprehensive state and field mapping: **$ARGUMENTS**910## Current Linear Context1112- Linear teams: Available teams and project assignments13- Task count: Linear task query to determine scope14- Target repository: !`gh repo view --json nameWithOwner -q .nameWithOwner 2>/dev/null || echo "No repo context"`15- User mappings: Linear email to GitHub username correspondence1617## Task1819Execute comprehensive synchronization of Linear tasks to GitHub issues:2021**Sync Scope**: Use $ARGUMENTS to filter by Linear team, project, priority levels, or task states2223**Synchronization Framework**:241. **Task Discovery** - Query Linear tasks with filters, extract metadata, validate requirements, prioritize sync252. **State Mapping** - Transform Linear states to GitHub equivalents, handle priority conversion, map project assignments263. **Content Transformation** - Build GitHub issue body, preserve formatting, handle attachments, maintain structure274. **GitHub Integration** - Create issues with proper labels, assign users, set milestones, manage relationships285. **Attachment Migration** - Download Linear attachments, upload to GitHub, update references, maintain accessibility296. **Comment Synchronization** - Transfer comments with attribution, preserve context, handle mentions, maintain threading3031**Advanced Features**: Intelligent state mapping, attachment handling, comment threading, user mention translation, comprehensive validation.3233**Data Fidelity**: Preserve Linear formatting, maintain task relationships, keep timestamps, ensure reference integrity.3435**Output**: Complete synchronization results with created issues, attachment migrations, comment transfers, and comprehensive sync reporting.