improvement(linear): cleanup linear checks#2075
Merged
icecrasher321 merged 1 commit intostagingfrom Nov 20, 2025
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
Greptile OverviewGreptile SummaryThis PR refactors Linear integration tools to improve code quality and fix a deprecation issue. The changes migrate from the deprecated Key Changes:
The refactoring is purely stylistic with no functional changes to validation logic. All tools maintain the same input filtering behavior. Confidence Score: 5/5
Important Files ChangedFile Analysis
Sequence DiagramsequenceDiagram
participant Client as API Client
participant Tool as Linear Tool
participant Validator as Input Validator
participant Linear as Linear GraphQL API
Note over Client,Linear: Archive Project Flow (Updated Mutation)
Client->>Tool: Call archive_project(projectId)
Tool->>Validator: Check projectId != null
alt projectId is null/undefined
Validator-->>Client: Error: Missing projectId
else projectId valid
Validator->>Linear: GraphQL mutation projectDelete(id)
Note over Linear: Uses projectDelete instead of<br/>deprecated projectArchive
Linear-->>Tool: { success, entity: { id } }
Tool-->>Client: { success, projectId }
end
Note over Client,Linear: Create/Update Operations Flow (Simplified Checks)
Client->>Tool: Call create/update with params
Tool->>Validator: Check optional fields != null
Note over Validator: Simplified from:<br/>(x !== undefined && x !== null)<br/>to: (x != null)
Validator->>Validator: Filter out null/undefined values
Validator->>Validator: Validate empty strings separately
Validator->>Linear: GraphQL mutation with filtered input
Linear-->>Tool: Response with created/updated entity
Tool-->>Client: Return formatted response
|
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.
Summary
Type of Change
Testing
No functional change
Checklist