feat(server): add Linear workflow state operations - #308
Merged
Merged
Conversation
siisee11
enabled auto-merge (squash)
July 13, 2026 21:17
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
onequery-landing | 4d31354 | Commit Preview URL Branch Preview URL |
Jul 13 2026, 09:20 PM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
One-Line Summary
Linear source connections can discover team workflow states and move existing issues between them.
User-Facing Changes
list_workflow_statesfor read and read-write Linear connections; callers provideteamIdand receive the team's workflow state IDs and metadata.update_issuefor read-write Linear connections; callers provideissueIdandstateIdto change an issue's workflow state.update_issueunavailable to mention-only and read-only connections.Why This Changed
The Linear adapter exposed issue state data and allowed a state during issue creation, but it had no operation to discover a team's available states or update an existing issue. Agents therefore could not complete a normal issue status transition through the audited Source API.
How It Changed
list_workflow_statesto Linear'steam.statesGraphQL query.update_issueto Linear'sissueUpdatemutation withIssueUpdateInput.stateId.linear.v2and adds CLI examples and access-mode notes.Extra Context / Decisions (Optional)
update_issueis intentionally limited to workflow-state changes in this PR. OtherIssueUpdateInputfields can be added later with explicit validation and policy review.Verification
bun run formatbunx oxlint --type-aware --type-check packages/server/src/source-api/adapters/linear.ts packages/server/src/source-api/adapters/linear.test.tsbun run typecheckfrompackages/serverbun run testfrompackages/server— 49 test files and 186 tests passed, including workflow-state lookup, issue-state update, and required-input rejection coverage inlinear.test.ts.Video / Screenshot (Optional)