Git Workflow Integration | Auto-Link Tasks
Link commits, branches, and PRs to tasks automatically. GitScrum updates task status when PRs open or merge, eliminating manual status updates.
4 min read
Connecting Git activity to project management creates complete traceability from requirements to code. GitScrum's native Git integration automatically links commits, branches, and pull requests to tasks, providing real-time visibility into development progress without manual status updates.
Git Integration Benefits
| Without Integration | With Integration |
|---|---|
| Manual status updates | Automatic from Git activity |
| No traceability | Commits linked to tasks |
| Context switching | Single source of truth |
| Duplicate info entry | Synced automatically |
| Review lacks context | PR shows related task |
Git Workflow with GitScrum
INTEGRATED DEVELOPMENT WORKFLOW
1. PICK UP TASK
βββββββββββββββββββββββββββββββββββββββββββββββββββ
β Developer assigns self to task GS-456 β
β Task: "Add user authentication" β
β Status: To Do β In Progress β
βββββββββββββββββββββββββββββββββββββββββββββββββββ
β
βΌ
2. CREATE BRANCH
βββββββββββββββββββββββββββββββββββββββββββββββββββ
β git checkout -b feature/GS-456-user-auth β
β β
β GitScrum detects: Branch linked to GS-456 β
β Status: Automatically updated β
βββββββββββββββββββββββββββββββββββββββββββββββββββ
β
βΌ
3. COMMIT WITH REFERENCE
βββββββββββββββββββββββββββββββββββββββββββββββββββ
β git commit -m "GS-456: Add login endpoint" β
β git commit -m "GS-456: Add auth middleware" β
β β
β GitScrum: Commits appear in task timeline β
βββββββββββββββββββββββββββββββββββββββββββββββββββ
β
βΌ
4. OPEN PULL REQUEST
βββββββββββββββββββββββββββββββββββββββββββββββββββ
β PR Title: "GS-456: User authentication" β
β Description: Links to task automatically β
β β
β GitScrum: PR linked, status β In Review β
βββββββββββββββββββββββββββββββββββββββββββββββββββ
β
βΌ
5. MERGE & COMPLETE
βββββββββββββββββββββββββββββββββββββββββββββββββββ
β PR merged to main β
β β
β GitScrum: Status β Done β
β Full history preserved β
βββββββββββββββββββββββββββββββββββββββββββββββββββ
Branch Naming Conventions
BRANCH NAMING PATTERNS
FORMAT: <type>/<task-id>-<short-description>
EXAMPLES:
βββββββββββββββββββββββββββββββββββββββββββββββββββ
β feature/GS-123-user-authentication β
β bugfix/GS-456-fix-login-error β
β hotfix/GS-789-security-patch β
β refactor/GS-101-cleanup-api β
βββββββββββββββββββββββββββββββββββββββββββββββββββ
TYPE PREFIXES:
β’ feature/ - New features
β’ bugfix/ - Bug fixes
β’ hotfix/ - Production emergency
β’ refactor/ - Code improvement
β’ docs/ - Documentation
β’ test/ - Test additions
Commit Message Format
CONVENTIONAL COMMITS WITH TASK ID
FORMAT:
<task-id>: <type>: <description>
EXAMPLES:
βββββββββββββββββββββββββββββββββββββββββββββββββββ
β GS-123: feat: add user registration endpoint β
β GS-123: test: add registration tests β
β GS-456: fix: resolve null pointer in login β
β GS-789: docs: update API documentation β
βββββββββββββββββββββββββββββββββββββββββββββββββββ
TYPES:
β’ feat - New feature
β’ fix - Bug fix
β’ docs - Documentation
β’ style - Formatting
β’ refactor - Code restructuring
β’ test - Tests
β’ chore - Maintenance
Automation Rules
GIT β TASK STATUS AUTOMATION
TRIGGER: Branch created with task ID
ACTION: Move task to "In Progress"
βββββββββββββββββββββββββββββββββββββββββββββββββββ
β When: Branch name matches /GS-\d+/ β
β Then: Update task status β In Progress β
β Also: Assign to branch creator (if unassigned) β
βββββββββββββββββββββββββββββββββββββββββββββββββββ
TRIGGER: PR opened with task ID
ACTION: Move task to "In Review"
βββββββββββββββββββββββββββββββββββββββββββββββββββ
β When: PR title/body contains GS-XXX β
β Then: Update task status β In Review β
β Also: Link PR to task β
βββββββββββββββββββββββββββββββββββββββββββββββββββ
TRIGGER: PR merged
ACTION: Move task to "Done"
βββββββββββββββββββββββββββββββββββββββββββββββββββ
β When: PR merged to main/master β
β Then: Update task status β Done β
β Also: Add completion timestamp β
βββββββββββββββββββββββββββββββββββββββββββββββββββ
Best Practices
Anti-Patterns
β Commits without task references
β Manual status updates when automation possible
β Multiple tasks in single branch
β No PR to task linkage
β Inconsistent naming conventions
β Separate tracking of code and tasks