| name | linear-ci-integration |
| description | Integrate Linear with GitHub Actions CI/CD pipelines.
Use when setting up automated testing, PR-to-issue linking,
or creating Linear issues from CI failures.
Trigger: "linear CI", "linear GitHub Actions", "linear CI/CD",
"linear automated tests", "linear PR integration".
|
| allowed-tools | Read, Write, Edit, Bash(gh:*) |
| version | 1.12.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","linear","testing","ci-cd"] |
| compatibility | Designed for Claude Code, also compatible with Codex and OpenClaw |
Linear CI Integration
Overview
Integrate Linear into GitHub Actions CI/CD pipelines: run integration tests against the Linear API, automatically link PRs to issues, transition issue states on PR events, and create Linear issues from build failures.
Prerequisites
- GitHub repository with Actions enabled
- Linear API key stored as GitHub secret
- npm/pnpm project with
@linear/sdk configured
Instructions
Step 1: Store Secrets in GitHub
gh secret set LINEAR_API_KEY --body "lin_api_xxxxxxxxxxxx"
gh secret set LINEAR_WEBHOOK_SECRET --body "whsec_xxxxxxxxxxxx"
gh variable set LINEAR_TEAM_ID --body "team-uuid-here"
Step 2: Integration Test Workflow
name: Linear Integration Tests
on:
push:
branches: [main]
pull_request:
env:
LINEAR_API_KEY: ${{ secrets.LINEAR_API_KEY }}
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'