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
1.9 KiB
JSON

{"content": "---\nallowed-tools: Read, Write, Edit, Bash\nargument-hint: [sync-mode] | --full | --incremental | --dry-run | --conflict-strategy\ndescription: Enable comprehensive bidirectional GitHub-Linear synchronization with conflict resolution\n---\n\n# Bidirectional Sync\n\nEnable comprehensive bidirectional GitHub-Linear synchronization: **$ARGUMENTS**\n\n## Current Sync Environment\n\n- GitHub status: !`gh api user 2>/dev/null && echo \"✓ Authenticated\" || echo \"⚠ Not authenticated\"`\n- Linear MCP: Check if Linear MCP server is available and configured\n- Sync state: @.sync-state.json or @sync/ (if exists)\n- Webhooks: !`gh api repos/{owner}/{repo}/hooks 2>/dev/null | grep -c linear || echo \"0\"`\n\n## Task\n\nImplement robust bidirectional synchronization between GitHub Issues and Linear tasks:\n\n**Sync Mode**: Use $ARGUMENTS to specify full sync, incremental sync, dry-run preview, or conflict resolution strategy\n\n**Synchronization Framework**:\n1. **Sync State Management** - Initialize sync database, track entity relationships, maintain sync history\n2. **Conflict Detection** - Identify simultaneous changes, field-level conflicts, timing issues\n3. **Resolution Strategies** - NEWER_WINS, GITHUB_WINS, LINEAR_WINS, or intelligent field-level merge\n4. **Transaction Management** - Atomic operations, rollback capability, distributed locking\n5. **Webhook Integration** - Real-time event handling, sync loop prevention, automated triggers\n6. **Data Integrity** - Bidirectional validation, cross-reference maintenance, audit trails\n\n**Advanced Features**: Field-level merge rules, sync loop prevention, webhook automation, performance optimization, comprehensive monitoring.\n\n**Production Ready**: Transaction safety, conflict resolution, error recovery, performance monitoring, comprehensive logging.\n\n**Output**: Complete bidirectional sync system with conflict resolution, webhook integration, performance metrics, and comprehensive sync reporting."}