β‘Taskfile Integration
π Quick Integration
To integrate branch management tasks into your existing Taskfile.yml:
# Run the integration script
./scripts/branch-templates/integrate-taskfile.sh
# Or manually copy from the integrated version
cp Taskfile-integrated.yml Taskfile.ymlπ New Tasks Overview
Branch Creation Tasks
task branch
Interactive branch creation
task branch
task branch:feature
Create feature branch
task branch:feature -- "desc" [issue]
task branch:fix
Create fix branch
task branch:fix -- "description" [issue]
task branch:security
Create security branch
task branch:security -- "description"
task branch:chore
Create chore branch
task branch:chore -- "description"
task branch:hotfix
Create hotfix branch
task branch:hotfix -- "description"
task branch:release
Create release branch
task branch:release -- "v1.0.0"
Branch Management Tasks
task branch:validate
Validate current branch
task branch:validate
task branch:validate:all
Validate all branches
task branch:validate:all
task branch:check
Check specific branch
task branch:check -- "branch-name"
task branch:status
Show branch status
task branch:status
task branch:sync
Sync with main
task branch:sync
task branch:clean
Show cleanup commands
task branch:clean
task branch:list
List all branches
task branch:list
Workflow Tasks
task work:start
Start new work
task work:start
task work:save
Save current work
task work:save
task work:finish
Finish and prepare PR
task work:finish
task branch:ready
Check PR readiness
task branch:ready
task branch:workflow
Complete workflow
task branch:workflow
π― Usage Examples
Starting New Work
During Development
Finishing Work
Quality Assurance Integration
π Integration with Existing Tasks
The new branch tasks work seamlessly with your existing workflow:
π¨ Task Features
Command Line Arguments
Interactive Mode
Status and Information
π§ Advanced Usage
Custom Workflows
Git Integration
CI/CD Integration
π οΈ Customization
Modifying Tasks
You can customize the branch tasks by editing the Taskfile.yml:
Environment Variables
The tasks respect your existing environment:
π Task List Integration
The new tasks are organized in the task list:
Shows organized sections:
Branch Management: All branch-related tasks
Development Setup: Existing setup tasks
Code Quality: Existing quality tasks
Testing: Existing test tasks
etc.
π Migration and Compatibility
Backward Compatibility
All your existing tasks remain unchanged:
β
task setup- Still works exactly the sameβ
task quick- No changes to existing workflowβ
task check- All quality checks unchangedβ
task ci- CI simulation unchanged
New Dependencies
The branch tasks only require:
Git (already required for your project)
Bash (standard on macOS/Linux)
The branch template scripts (included)
No additional dependencies needed!
π¨ Troubleshooting
Common Issues
Task not found:
Branch script not executable:
Git errors:
Getting Help
π Quick Start Cheat Sheet
This integration makes branch management a natural part of your existing Task workflow while maintaining all the power and flexibility of your current setup!
Last updated
Was this helpful?