Sync Pr To Task
Link GitHub pull requests to Linear tasks with automated state synchronization and workflow integration
$ npx claude-code-templates@latest --command="sync/sync-pr-to-task" --yesRequires Claude Code. The command adds this command to your project's .claudedirectory — nothing runs on ToolZip's servers.
What's inside this command
Component source
Sync PR to Task
Link GitHub pull requests to Linear tasks with comprehensive workflow integration: $ARGUMENTS
Current PR Context
- Repository: !
gh repo view --json nameWithOwner -q .nameWithOwner 2>/dev/null || echo "No repo context" - PR details: Based on $ARGUMENTS PR number or auto-detection criteria
- Linear references: Detection of task IDs in PR content and branch names
- Webhook status: Current automation configuration for PR-task synchronization
Task
Implement comprehensive pull request to Linear task linking with automated workflow integration:
PR Target: Use $ARGUMENTS to specify PR number, task assignment, auto-detection mode, or automation configuration Integration Framework:- Reference Detection - Extract Linear task IDs from PR title, body, branch names, commit messages
- PR Analysis - Fetch complete PR data, analyze state, review status, change metrics, timeline
- State Synchronization - Map PR states to Linear equivalents, handle review cycles, merge events
- Task Updates - Update Linear task status, add PR references, create comments, sync metadata
- GitHub Enhancement - Add Linear context to PR, create labels, post task summaries, maintain links
- Workflow Automation - Configure webhooks, enable real-time sync, implement event handlers, maintain consistency
Related Claude Code Commands
Sync Automation Setup
Setup comprehensive automated synchronization workflows with monitoring and CI/CD integration
Linear Task To Issue
Convert Linear tasks to GitHub issues with relationship preservation and metadata mapping
Bidirectional Sync
Enable comprehensive bidirectional GitHub-Linear synchronization with conflict resolution
Bulk Import Issues
Bulk import GitHub issues to Linear with comprehensive progress tracking and error handling
Cross Reference Manager
Manage cross-platform reference links between GitHub and Linear with integrity checking
Task From Pr
Create Linear tasks from GitHub pull requests with intelligent content extraction and task sizing
Catalog data and component content are sourced from the open-source davila7/claude-code-templates project (MIT license). ToolZip curates the listing and writes original descriptions; every component links back to its original source. Claude Code is a product of Anthropic. ToolZip is an independent catalog and is not affiliated with or endorsed by Anthropic.