How to connect GitHub or GitLab to Linear
In Linear (verified 2026-10-24), open Settings → Features → Integrations (or Workspace Settings → Integrations) → connect GitHub or GitLab → authorize the org/repos you need. Create branches from an issue (or include the issue ID like ENG-123 in the branch/PR title) so Linear links the PR. Configure automation so merge can move the issue toward Done.
You need admin rights on both Linear and the git host org for the first connect. Start with one team’s repos before enabling every repository.
Applies to Linear workspaces on plans that include git integrations. Exact Settings paths and GitHub Apps vs OAuth flows change over time — follow the in-product connector.
Connect the git host and link a PR
Connect the integration
- Linear → Settings → Integrations.
- Choose GitHub or GitLab → Connect.
- Authorize and select organizations/repositories.
Link work from an issue
- Open a Linear issue → use Copy git branch name / create branch if offered.
- Or include the issue key (e.g. ENG-123) in the branch or PR title.
- Confirm the PR appears on the Linear issue activity.
Tune automation
- In integration settings, enable status updates on PR open/merge as your team prefers.
- Test with a sample PR on a non-critical issue.
- Disconnect unused repos to reduce noise.
Our take: issue key in every branch name
Automation only works when humans include the ID — make TEAM-123-short-slug the default branch recipe.
If it fails
- Connect button fails: missing org admin on GitHub/GitLab — ask an owner to approve the app.
- PR not linking: issue key missing or typo — edit the PR title to include ENG-123.
- Wrong repo: re-open integration settings and grant the repository.
- Status jumped too early: loosen automation so only merge (not draft PR) moves Done.
Frequently asked questions
How do I connect GitHub to Linear?
Settings → Integrations → GitHub → Connect → authorize and select repos.
How does Linear link a pull request?
Include the issue identifier in the branch or PR title, or start the branch from the issue’s git helpers.
Does merge close the Linear issue?
When automation is enabled, merge can transition the issue — confirm the rule in integration settings.
GitHub vs GitLab?
Linear supports both via Integrations; pick the host your team uses and connect that one.
Do I need to be a Linear admin?
Usually yes to install workspace integrations; members can still link PRs after it is connected.