How to Fix Linear GitHub Sync Not Creating Branches or Linking PRs
In this tutorial, you'll learn about How to Fix Linear GitHub Sync Not Creating Branches or Linking PRs. We cover key concepts, practical examples, and best practices.
Linear's GitHub integration automatically creates branches from issues and links pull requests. When the sync stops working, branches are not created from Linear issues, pull requests do not appear in Linear, or commit messages are not reflected on issues.
The Problem
You click "Create branch" on a Linear issue and nothing happens, or a developer creates a PR on GitHub that does not link back to the Linear issue.
Wrong approach — manually creating branches and linking PRs.
The Fix
Check the GitHub integration status:
1. Linear → Settings → Integrations → GitHub
2. Verify the integration shows "Connected"
3. If it shows "Disconnected" or "Error," click "Reconnect"
4. Authorize Linear to access the appropriate GitHub repositories
Ensure the Linear issue ID is in the branch name or commit message:
1. Linear issues are linked by the issue ID in the branch or PR title
2. Branch format: your-org/TEAM-123-fix-login-bug
3. PR title format: [TEAM-123] Fix login bug
4. Commit message: TEAM-123: Fixed login validation
For auto-branch creation not working:
1. Linear → Settings → Integrations → GitHub
2. Check "Auto-create branch from issue" is enabled
3. Verify the repository is selected for auto-creation
4. Check that the team is mapped to the correct GitHub repository
Expected output:
Branch is created in GitHub with the correct naming pattern
Pull request links back to the Linear issue
Issue status updates automatically when PR is merged
Prevention Tips
- Configure the correct GitHub repository mapping for each Linear team
- Use the official branch naming pattern:
org-name/TEAM-ID-issue-number - Include the Linear issue ID in PR titles and commit messages
- Enable "Auto-close issue when PR is merged" in integration settings
- Check the integration status after GitHub organization changes
Common Mistakes with github sync
- Overlapping type class instances that cause GHC to reject the program with ambiguous dispatch errors
- Non-exhaustive pattern matches that compile with warnings then crash at runtime
- Misunderstanding that
Stringis[Char]with poor performance for large text operations
These mistakes appear frequently in real-world LINEAR code. DodaTech's contributors have identified these patterns through analysis of open-source projects and production systems.
Practice Exercise
Write a pure function that safely divides two integers using Maybe, then test it with edge cases like division by zero and negative numbers.
This exercise reinforces the concepts covered in this guide. Try implementing it before checking online solutions.
FAQ
Related: DodaTech's GitHub Sync Status Dashboard monitors the Linear-GitHub connection, logs sync failures, and provides a reconciliation tool for unmatched PRs. Use with DodaZIP for backup.
Built by the developers of DodaTech
Doda Browser, DodaZIP & Durga Antivirus Pro