🐰 New: Triage — a self-updating cross-repository queue that prioritizes pull requests by value and risk, so you always know what to review next. Now in beta! Explore Triage →
Connect CodeRabbit to Linear to enrich pull request reviews with issue context, validate changes against acceptance criteria, create issues from review comments, and design Coding Plans.
The Linear integration connects CodeRabbit to your Linear workspace, bringing issue context into every stage of development. Here’s what the integration enables:
Context enrichment
Pulls in Linear issue details so CodeRabbit understands why a change is
being made
Requirement validation
Assesses whether code changes address the linked issue’s acceptance criteria
Issue planning
Generates step-by-step Coding Plans from Linear issues for coding agents and
IDE copilots
Issue creation
Creates new Linear issues directly from PR review comments
After connecting Linear, configure which Linear teams CodeRabbit should access by adding your team keys. The team key is a short team identifier—for example, if your issue URL is https://linear.app/company/issue/DEV-123, the team key is DEV.
YAML Configuration
Web Interface
Add the team_keys setting under knowledge_base.linear in your .coderabbit.yaml file:
The usage setting controls when the integration is active:
auto (default): Disabled for public repositories, enabled for private repositories
enabled: Always enabled
disabled: Always disabled
Navigate to your repository or organization settings in the CodeRabbit app
Go to Configuration → Knowledge Base
Under Linear, add your team keys
Save the configuration
Linear configuration in the web interface
By default, Linear integration is enabled for private repositories and
disabled for public repositories. You can override this behavior by setting
knowledge_base.linear.usage: enabled and chat.integrations.linear.usage: enabled in your .coderabbit.yaml file or using the web interface. See the
Configuration reference for details.
To have CodeRabbit validate requirements from a Linear issue, include the issue URL in your pull request description:
This PR implements the user authentication flow.Closes https://linear.app/company/issue/DEV-123
CodeRabbit will fetch the issue details and assess whether your code changes address the requirements specified in the issue. See the Linked issues guide for best practices on linking issues.