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.0 KiB
JSON

{"content": "---\nallowed-tools: Read, Write, Edit, Bash\nargument-hint: [pr-number] | --task | --auto-detect | --enable-auto | --update-state\ndescription: Link GitHub pull requests to Linear tasks with automated state synchronization and workflow integration\n---\n\n# Sync PR to Task\n\nLink GitHub pull requests to Linear tasks with comprehensive workflow integration: **$ARGUMENTS**\n\n## Current PR Context\n\n- Repository: !`gh repo view --json nameWithOwner -q .nameWithOwner 2>/dev/null || echo \"No repo context\"`\n- PR details: Based on $ARGUMENTS PR number or auto-detection criteria\n- Linear references: Detection of task IDs in PR content and branch names\n- Webhook status: Current automation configuration for PR-task synchronization\n\n## Task\n\nImplement comprehensive pull request to Linear task linking with automated workflow integration:\n\n**PR Target**: Use $ARGUMENTS to specify PR number, task assignment, auto-detection mode, or automation configuration\n\n**Integration Framework**:\n1. **Reference Detection** - Extract Linear task IDs from PR title, body, branch names, commit messages\n2. **PR Analysis** - Fetch complete PR data, analyze state, review status, change metrics, timeline\n3. **State Synchronization** - Map PR states to Linear equivalents, handle review cycles, merge events\n4. **Task Updates** - Update Linear task status, add PR references, create comments, sync metadata\n5. **GitHub Enhancement** - Add Linear context to PR, create labels, post task summaries, maintain links\n6. **Workflow Automation** - Configure webhooks, enable real-time sync, implement event handlers, maintain consistency\n\n**Advanced Features**: Smart branch detection, automated state mapping, review integration, commit analysis, comprehensive validation.\n\n**Workflow Integration**: Real-time updates, bidirectional sync, event-driven automation, comprehensive monitoring.\n\n**Output**: Complete PR-task integration with automated synchronization, workflow enhancement, state management, and comprehensive relationship tracking."}