Link Tasks to GitHub, GitLab, Bitbucket | Git PM
Connect GitScrum tasks to code repositories. Automatic commit linking, PR tracking, and task auto-updates when PRs merge. Setup for GitHub, GitLab, Bitbucket.
8 min read
Connecting tasks to code repositories eliminates the gap between project management and actual development work. When commits, branches, and pull requests link directly to tasks, teams gain complete visibility into what code changes relate to which requirementsβno more guessing or manual tracking.
Git Integration Overview
| Platform | Connection Method | Features |
|---|---|---|
| GitHub | OAuth + Webhook | Commits, PRs, branches, issues |
| GitLab | OAuth + Webhook | Commits, MRs, branches |
| Bitbucket | OAuth + Webhook | Commits, PRs, branches |
Setting Up Git Integration
CONNECTING YOUR REPOSITORY
ββββββββββββββββββββββββββ
STEP 1: ACCESS INTEGRATION SETTINGS
βββββββββββββββββββββββββββββββββββββ
GitScrum β Project β Settings β Integrations
βββ Select "GitHub" / "GitLab" / "Bitbucket"
βββ Click "Connect"
βββ Authorize GitScrum access
STEP 2: SELECT REPOSITORY
βββββββββββββββββββββββββββββββββββββ
After authorization:
βββ List of repositories appears
βββ Select the project repository
βββ Configure webhook automatically
βββ Connection status: "Connected"
STEP 3: CONFIGURE BEHAVIOR
βββββββββββββββββββββββββββββββββββββ
Optional settings:
βββ Branch naming pattern
βββ Commit message format
βββ PR description template
βββ Auto-move on merge
VERIFICATION:
βββββββββββββββββββββββββββββββββββββ
βββββββββββββββββββββββββββββββββββββββ
β GitHub Integration β
β ββββββββββββββββββββββββββββββββ β
β Repository: acme/dashboard β
β Status: β Connected β
β Last sync: 2 minutes ago β
β β
β [Disconnect] [Refresh] [Settings] β
βββββββββββββββββββββββββββββββββββββββ
Linking Commits to Tasks
COMMIT MESSAGE CONVENTIONS
ββββββββββββββββββββββββββ
REFERENCE TASK IN COMMIT:
βββββββββββββββββββββββββββββββββββββ
Include task ID in commit message:
git commit -m "Add payment validation #task-123"
git commit -m "Fix login bug [GS-456]"
git commit -m "Implement API endpoint (Task: 789)"
GitScrum automatically:
βββ Detects task reference
βββ Links commit to task
βββ Shows commit in task activity
βββ Updates task timeline
COMMIT APPEARS IN TASK:
βββββββββββββββββββββββββββββββββββββ
βββββββββββββββββββββββββββββββββββββββββββββββββββ
β Task: Implement payment validation β
βββββββββββββββββββββββββββββββββββββββββββββββββββ€
β ACTIVITY β
β β
β π Commit linked 2 min ago β
β "Add payment validation #task-123" β
β by john@acme.co β
β β main (a4f2b1c) β
β β
β π¬ Comment added 1 hour ago β
β "Starting implementation now" β
β β
βββββββββββββββββββββββββββββββββββββββββββββββββββ
BEST PRACTICES:
βββββββββββββββββββββββββββββββββββββ
β Always reference task ID in commits
β Use consistent format across team
β Include task ID in first line
β Add context in commit body
Branch Naming for Task Linking
BRANCH NAMING CONVENTIONS
βββββββββββββββββββββββββ
RECOMMENDED FORMATS:
βββββββββββββββββββββββββββββββββββββ
feature/task-123-payment-validation
bugfix/GS-456-login-error
hotfix/789-critical-security-patch
Structure:
βββ type/ β feature, bugfix, hotfix
βββ task-id β matches GitScrum task
βββ description β human-readable summary
AUTOMATIC BRANCH LINKING:
βββββββββββββββββββββββββββββββββββββ
When branch contains task ID:
βββ GitScrum detects branch creation
βββ Links branch to task
βββ Shows branch status in task
βββ Tracks branch lifecycle
TASK VIEW WITH BRANCH:
βββββββββββββββββββββββββββββββββββββ
βββββββββββββββββββββββββββββββββββββββββββββββββββ
β Task: Payment validation β
βββββββββββββββββββββββββββββββββββββββββββββββββββ€
β STATUS β
β ββββββ β
β Column: In Progress β
β Branch: feature/task-123-payment-validation β
β β³ 3 commits ahead of main β
β PR: #42 (Open - Ready for review) β
β β
βββββββββββββββββββββββββββββββββββββββββββββββββββ
Pull Request Integration
LINKING PULL REQUESTS TO TASKS
ββββββββββββββββββββββββββββββ
PR DESCRIPTION TEMPLATE:
βββββββββββββββββββββββββββββββββββββ
## Summary
Implements payment validation logic.
## Related Task
Closes #task-123
## Changes
- Added validation middleware
- Updated API responses
- Added unit tests
## Testing
- [x] Unit tests pass
- [x] Manual testing complete
GitScrum DETECTION:
βββββββββββββββββββββββββββββββββββββ
When PR is opened:
βββ Detects task reference
βββ Links PR to task
βββ Shows PR status in task
βββ Updates on PR changes
PR LIFECYCLE IN TASK:
βββββββββββββββββββββββββββββββββββββ
βββββββββββββββββββββββββββββββββββββββ
β Pull Request #42 β
β ββββββββββββββββββ β
β Status: Open β
β Reviews: 1/2 approved β
β Checks: β All passing β
β Mergeable: Yes β
β β
β [View on GitHub] β
βββββββββββββββββββββββββββββββββββββββ
Automatic Task Updates
AUTOMATING WORKFLOW WITH GIT EVENTS
βββββββββββββββββββββββββββββββββββ
COLUMN AUTOMATION: ON PR MERGE
βββββββββββββββββββββββββββββββββββββ
Project Settings β Board β Column Settings β Done
Automation trigger:
βββ When: Pull Request merged
βββ Action: Move task to this column
βββ Additional: Auto-archive after 7 days
Result:
βββ Developer merges PR
βββ Task moves to Done automatically
βββ No manual board update needed
βββ Accurate project status always
AUTOMATION FLOW:
βββββββββββββββββββββββββββββββββββββ
Developer GitScrum
β β
β Create branch β
β feature/task-123-... β
ββββββββββββββββββββββββββββΊβ Branch linked
β β
β Push commits β
β "Fix validation #123" β
ββββββββββββββββββββββββββββΊβ Commits linked
β β
β Open Pull Request β
β β
ββββββββββββββββββββββββββββΊβ PR linked
β β Task β In Review
β β
β Merge PR β
β β
ββββββββββββββββββββββββββββΊβ Task β Done
β β (automatic)
β β
Multi-Repository Projects
WORKING WITH MULTIPLE REPOS
βββββββββββββββββββββββββββ
SCENARIO: FRONTEND + BACKEND
βββββββββββββββββββββββββββββββββββββ
Project: E-commerce Platform
βββ Repo 1: acme/frontend (React)
βββ Repo 2: acme/backend (Node.js)
βββ Repo 3: acme/mobile (React Native)
SETUP:
βββββββββββββββββββββββββββββββββββββ
1. Connect all repos to same project
2. Use consistent task references
3. Track cross-repo work in single task
TASK WITH MULTIPLE REPOS:
βββββββββββββββββββββββββββββββββββββ
βββββββββββββββββββββββββββββββββββββββββββββββββββ
β Task: Implement checkout flow β
βββββββββββββββββββββββββββββββββββββββββββββββββββ€
β LINKED CODE β
β β
β acme/frontend β
β βββ Branch: feature/task-123-checkout β
β βββ Commits: 5 β
β βββ PR: #67 (Merged) β
β β
β acme/backend β
β βββ Branch: feature/task-123-checkout-api β
β βββ Commits: 8 β
β βββ PR: #45 (Open) β
β β
βββββββββββββββββββββββββββββββββββββββββββββββββββ
Visibility and Reporting
GIT DATA IN PROJECT REPORTS
βββββββββββββββββββββββββββ
TASK-LEVEL INSIGHTS:
βββββββββββββββββββββββββββββββββββββ
For each task:
βββ Total commits
βββ Contributors
βββ Lines changed (+/-)
βββ Time from first commit to merge
βββ Review turnaround time
PROJECT-LEVEL METRICS:
βββββββββββββββββββββββββββββββββββββ
Across project:
βββ Commits per sprint
βββ PRs opened/merged/closed
βββ Average time to merge
βββ Code churn by feature
βββ Contributor activity
SPRINT REPORT WITH GIT DATA:
βββββββββββββββββββββββββββββββββββββ
βββββββββββββββββββββββββββββββββββββββββββββββββββ
β Sprint 24 - Code Activity β
βββββββββββββββββββββββββββββββββββββββββββββββββββ€
β β
β Commits: 127 β
β Pull Requests: 18 (16 merged, 2 open) β
β Contributors: 5 β
β Lines Added: 2,340 β
β Lines Removed: 890 β
β β
β Avg PR Review: 4.2 hours β
β Avg Time to Merge: 6.8 hours β
β β
βββββββββββββββββββββββββββββββββββββββββββββββββββ
GitScrum Implementation Steps
COMPLETE SETUP GUIDE
ββββββββββββββββββββ
STEP 1: CONNECT REPOSITORY
βββββββββββββββββββββββββββββββββββββ
Project Settings β Integrations
βββ Select provider (GitHub/GitLab/Bitbucket)
βββ Authorize OAuth
βββ Select repository
βββ Verify connection
STEP 2: CONFIGURE TEAM CONVENTIONS
βββββββββββββββββββββββββββββββββββββ
Agree on:
βββ Branch naming: type/task-id-description
βββ Commit format: "Message #task-id"
βββ PR template with task reference
βββ Document in project wiki
STEP 3: SET UP AUTOMATIONS
βββββββββββββββββββββββββββββββββββββ
Board Settings β Column Automations
βββ "In Review" β When PR opened
βββ "Done" β When PR merged
βββ Enable notifications
STEP 4: TRAIN THE TEAM
βββββββββββββββββββββββββββββββββββββ
Share with developers:
βββ How to reference tasks
βββ Branch naming conventions
βββ Expected automation behavior
βββ Benefits of linking
STEP 5: MONITOR AND REFINE
βββββββββββββββββββββββββββββββββββββ
After 1-2 sprints:
βββ Check linking accuracy
βββ Review automation triggers
βββ Gather team feedback
βββ Adjust conventions as needed