Linear & GitHub Integration Guide

Yes—Linear and GitHub integrate natively, automatically closing Linear issues when their linked pull requests are merged.

Overview

Linear and GitHub are both essential tools for modern development teams, but they serve different purposes. Linear handles issue tracking, project planning, and team workflows, while GitHub manages code repositories and pull request reviews. When these two platforms are connected, your team gets a unified view of work: issues in Linear stay synchronized with code changes in GitHub, and merged pull requests automatically update their corresponding issues without manual intervention.

This integration eliminates a common friction point in development workflows—the need to manually close issues after code is merged. It also ensures that your issue tracking system always reflects the actual state of your codebase, reducing the risk of stale or orphaned issues.

How the Integration Works

  • GitHub PR Linking: Developers reference Linear issues in GitHub pull request titles, descriptions, or commit messages using Linear’s issue identifiers (e.g., “PROJ-123”). GitHub recognizes these references and creates a link between the PR and the Linear issue.
  • Automatic Status Updates: When a pull request is merged into your default branch, the integration automatically updates the status of the linked Linear issue. By default, merged PRs close their associated issues, moving them to a “Done” or completed state.
  • Bidirectional Awareness: Team members can see the GitHub PR status directly from the Linear issue view, and vice versa. This creates a single source of truth for work progress across both platforms.
  • No Manual Sync Required: The integration runs in the background without requiring developers to manually trigger updates or switch between tools to confirm status changes.
  • Customizable Workflows: Teams can configure which issue statuses trigger closure and set up additional automation rules based on their development process (e.g., closing issues only when PRs are merged to production, not to staging branches).

Key Features & Capabilities

  • Auto-Close on Merge: Linked Linear issues automatically transition to “Done” when their GitHub PR is merged, eliminating manual status updates and keeping your backlog clean.
  • PR Status Visibility in Linear: View the current status of linked GitHub pull requests directly within Linear issue details, including whether the PR is open, under review, or merged.
  • Commit Message Linking: Developers can reference Linear issues in commit messages (e.g., “Fix bug PROJ-456”), and those commits appear as activity on the Linear issue, creating an audit trail of code changes.
  • Cross-Platform Search: Find related work across both platforms—search for a Linear issue and see its GitHub PR, or search a PR and jump to the corresponding issue in Linear.
  • Team Notification Sync: Comments and updates on GitHub PRs can be surfaced to Linear, and vice versa, keeping conversations visible to the full team regardless of which platform they’re using.
  • Deployment Tracking: For teams using GitHub Deployments, the integration can track when code linked to a Linear issue has been deployed to production or staging environments.

Setup Difficulty: Easy

Estimated time: 5–10 minutes

Connecting Linear and GitHub requires minimal configuration. Here’s the typical process:

  1. In Linear, navigate to your workspace settings and find the GitHub integration option.
  2. Authorize Linear to access your GitHub account or organization by clicking the connection prompt. You’ll be redirected to GitHub to grant permissions.
  3. Select which GitHub repositories you want to connect to Linear. You can link multiple repos to a single Linear workspace.
  4. Choose your default behavior for auto-closing issues (e.g., close on merge to main branch, or only on merge to production).
  5. Save your settings. The integration is now active.

No code, API keys, or developer involvement is required. Any team member with workspace admin access can set this up in under 10 minutes.

Alternatives & Workarounds

If the native Linear-GitHub integration doesn’t fully meet your needs, consider these options:

  • Zapier or Make (formerly Integromat): These automation platforms offer pre-built workflows that can trigger Linear actions based on GitHub events. Use this if you need more granular control over which PRs close which issues, or if you want to trigger additional actions (e.g., send a Slack notification when an issue closes).
  • GitHub Actions + Linear API: For teams comfortable with scripting, GitHub Actions can call the Linear API directly to update issue statuses based on custom logic. This gives you complete control but requires development effort.
  • Alternative Issue Trackers: If you’re still evaluating tools, consider Jira (which has deep GitHub integration), YouTrack, or Shortcut, all of which offer similar native GitHub connectivity with different feature sets.

Frequently Asked Questions

Does the integration work with GitHub Enterprise?

Yes, Linear supports GitHub Enterprise Server and GitHub Enterprise Cloud. You may need to configure additional authentication settings in your workspace. Check with your GitHub Enterprise administrator to ensure Linear has the necessary permissions to access your instance.

What happens if I close a GitHub PR without merging it?

Closing a PR without merging it does not automatically close the linked Linear issue. The issue will only close when the PR is actually merged. This prevents accidental closure of issues when PRs are abandoned or rejected during review.

Can I reopen a Linear issue if a merged PR is reverted?

The native integration does not automatically reopen issues when PRs are reverted. You’ll need to manually reopen the issue in Linear or set up a custom workflow using Zapier or GitHub Actions to handle revert scenarios.

Does the integration sync issue comments between Linear and GitHub?

The native integration primarily focuses on status synchronization and PR linking. Comments are not automatically synced between platforms. However, team members can see linked PRs and issues from within each platform, and you can use third-party automation tools to create comment notifications.

Best Practices for Using This Integration

To get the most out of the Linear-GitHub integration, establish a naming convention for issue references. For example, your team might agree to always include the Linear issue ID in PR titles: “PROJ-123: Add user authentication”. This ensures the integration reliably links PRs to issues and prevents duplicate or orphaned issues.

Also, consider setting up branch protection rules in GitHub that require PR descriptions to reference a Linear issue. This enforces traceability and ensures every code change is tied to tracked work.

Finally, periodically review your integration settings to ensure they still match your team’s workflow. As your development process evolves—for example, if you move from merging to main to a trunk-based development model—you may need to adjust which branches trigger auto-close behavior.

Disclaimer

Integration features and capabilities may change as Linear and GitHub release updates. Always verify current functionality by checking the official Linear integration documentation and GitHub’s integration marketplace. Test the integration in a non-production environment before rolling it out to your entire team.