1 line
2.0 KiB
JSON
1 line
2.0 KiB
JSON
{"content": "---\nallowed-tools: Read, Write, Edit, Bash\nargument-hint: [sync-scope] | --team | --project | --priority | --states\ndescription: Sync Linear tasks to GitHub issues with state mapping and attachment handling\n---\n\n# Sync Linear to Issues\n\nSync Linear tasks to GitHub issues with comprehensive state and field mapping: **$ARGUMENTS**\n\n## Current Linear Context\n\n- Linear teams: Available teams and project assignments\n- Task count: Linear task query to determine scope\n- Target repository: !`gh repo view --json nameWithOwner -q .nameWithOwner 2>/dev/null || echo \"No repo context\"`\n- User mappings: Linear email to GitHub username correspondence\n\n## Task\n\nExecute comprehensive synchronization of Linear tasks to GitHub issues:\n\n**Sync Scope**: Use $ARGUMENTS to filter by Linear team, project, priority levels, or task states\n\n**Synchronization Framework**:\n1. **Task Discovery** - Query Linear tasks with filters, extract metadata, validate requirements, prioritize sync\n2. **State Mapping** - Transform Linear states to GitHub equivalents, handle priority conversion, map project assignments\n3. **Content Transformation** - Build GitHub issue body, preserve formatting, handle attachments, maintain structure\n4. **GitHub Integration** - Create issues with proper labels, assign users, set milestones, manage relationships\n5. **Attachment Migration** - Download Linear attachments, upload to GitHub, update references, maintain accessibility\n6. **Comment Synchronization** - Transfer comments with attribution, preserve context, handle mentions, maintain threading\n\n**Advanced Features**: Intelligent state mapping, attachment handling, comment threading, user mention translation, comprehensive validation.\n\n**Data Fidelity**: Preserve Linear formatting, maintain task relationships, keep timestamps, ensure reference integrity.\n\n**Output**: Complete synchronization results with created issues, attachment migrations, comment transfers, and comprehensive sync reporting."} |