feat(git-workflow): Add automatic git branch-tag integration

- Implement automatic tag creation when switching to new git branches

- Add branch-tag mapping system for seamless context switching

- Enable auto-switch of task contexts based on current git branch

- Provide isolated task contexts per branch to prevent merge conflicts

- Add configuration support for enabling/disabling git workflow features

- Fix ES module compatibility issues in git-utils module

- Maintain zero migration impact with automatic 'master' tag creation

- Support parallel development with branch-specific task contexts

The git workflow system automatically detects branch changes and creates corresponding empty task tags, enabling developers to maintain separate task contexts for different features/branches while preventing task-related merge conflicts during collaborative development.

Resolves git workflow integration requirements for multi-context development.
This commit is contained in:
Eyal Toledano
2025-06-13 18:27:51 -04:00
parent a047886910
commit 32236a0bc5
16 changed files with 127 additions and 41 deletions

View File

@@ -0,0 +1,13 @@
---
"task-master-ai": minor
---
Add an experimental automatic git branch-tag integration for seamless multi-context development
- **Automatic Tag Creation**: System now automatically creates empty tags when switching to new git branches
- **Branch-Tag Mapping**: Maintains mapping between git branches and task contexts for seamless workflow
- **Auto-Switch on Branch Change**: Task context automatically switches when you change git branches (when git workflow is enabled)
- **Isolated Task Contexts**: Each branch gets its own clean task context, preventing merge conflicts and enabling parallel development
- **Configuration Support**: Git workflow features can be enabled/disabled via `.taskmaster/config.json`
- **Zero Migration Impact**: Existing projects continue working unchanged with automatic migration to "master" tag
- **ES Module Compatibility**: Fixed git-utils module to work properly with ES module architecture