Files
wehub-resource-sync bb5c75ce05
Component Security Validation / Security Audit (push) Has been cancelled
Deploy to Cloudflare Pages / deploy (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:38:58 +08:00

1 line
2.1 KiB
JSON

{"content": "---\nallowed-tools: Read, Write, Edit, Bash\nargument-hint: [sync-scope] | --state | --label | --assignee | --milestone\ndescription: Sync GitHub issues to Linear workspace with comprehensive field mapping and rate limit management\n---\n\n# Sync Issues to Linear\n\nSync GitHub issues to Linear workspace with intelligent field mapping: **$ARGUMENTS**\n\n## Current Repository Context\n\n- Repository: !`gh repo view --json nameWithOwner -q .nameWithOwner 2>/dev/null || echo \"No repo context\"`\n- Issue count: !`gh issue list --state all --limit 1 --json number | jq length 2>/dev/null || echo \"Check manually\"`\n- Linear teams: Available Linear teams and project assignments\n- Rate limits: !`gh api rate_limit -q '.rate | \"GitHub: \\(.remaining)/\\(.limit)\"' 2>/dev/null`\n\n## Task\n\nExecute comprehensive synchronization of GitHub issues to Linear workspace:\n\n**Sync Scope**: Use $ARGUMENTS to filter by issue state, labels, assignees, milestones, or specific issue sets\n\n**Synchronization Framework**:\n1. **Issue Discovery** - Fetch GitHub issues with comprehensive metadata, apply filters, validate requirements\n2. **Field Mapping** - Transform GitHub fields to Linear format, map priorities, convert labels, handle assignees\n3. **Data Validation** - Check required fields, validate user mappings, ensure data integrity, prevent duplicates\n4. **Linear Integration** - Create tasks with proper formatting, apply team assignments, set projects, manage relationships\n5. **Rate Limit Management** - Implement exponential backoff, batch operations, monitor API limits, optimize requests\n6. **Progress Tracking** - Provide real-time updates, handle errors gracefully, maintain sync state, generate reports\n\n**Advanced Features**: Smart priority inference, intelligent user mapping, incremental sync capabilities, comprehensive error recovery.\n\n**Data Integrity**: Preserve formatting, maintain metadata, create bidirectional references, ensure audit trails.\n\n**Output**: Complete synchronization results with success metrics, error reports, mapping summaries, and comprehensive sync analytics."}