Turn a Linear label into a PR
A PR linked to the issue
Label a Linear issue and an agent picks it up, does the work in the Project's repository and opens a pull request.
Best for
- Teams that triage in Linear
- Small, well-described issues
Uses
- A Linear connection
- A connected GitHub repository
- An automation with a Linear trigger
Automation · Linear: agent label
POST /o/{org}/p/{project}/automations/{automation}/triggers{
"kind": "linear",
"events": ["linear.issue.labeled"],
"config": {
"labels": ["agent"]
}
}Watch it work, then read what comes back
GET /o/{org}/sessions/{session}/eventsevent: thinkingENG-42 asks for a dark mode toggle in settings.event: tool_useedit · settings/Appearance.tsxevent: tool_resultbuild passedevent: messageOpened a pull request that links ENG-42.GET /o/{org}/sessions/{session}- status
completed- branch
rush/eng-42-dark-mode- pr_url
github.com/acme/web/pull/…
Steps
- 01
Connect Linear
Sign in to Linear once from Settings, Integrations.
- 02
Add the trigger
A
lineartrigger onlinear.issue.labeledwith the labels that should fire it. Changes made by an app integration never fire. - 03
Label an issue
The run starts with the issue as its context and opens a pull request on its own branch.
In the API and the docs
Related
All use casesWrite the missing tests
A PR with passing checks
A nightly schedule starts an agent that finds untested code, writes the tests and opens a pull request by morning.
Open the recipeReview every pull request
A review on the PR
Each pull request gets an agent that checks it out in its own sandbox, runs the tests and posts a review with the evidence.
Open the recipe