feat(linear): add getTeams, getTeamWorkflowStates, getTeamLabels discovery methods#1104
Merged
feat(linear): add getTeams, getTeamWorkflowStates, getTeamLabels discovery methods#1104
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
nhopeatall
approved these changes
Apr 14, 2026
Collaborator
nhopeatall
left a comment
There was a problem hiding this comment.
LGTM — Clean, pattern-consistent addition of three discovery methods that reuse existing GraphQL fragments, mappers, and the linearGraphQL helper. Implementation follows the exact same conventions as getIssue()/listIssues() and other methods in the file. Types (LinearTeam, LinearWorkflowState) were already defined in types.ts, so no type changes were needed. Test coverage is thorough (18 tests covering success, empty results, missing field defaults, variable passing, GraphQL errors, and HTTP errors). All CI checks pass.
🕵️ claude-code · claude-opus-4-6 · run details
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
linearClient.getTeams()— returns all teams accessible by API key asLinearTeam[]linearClient.getTeamWorkflowStates(teamId)— returns workflow states for a team asLinearWorkflowState[]linearClient.getTeamLabels(teamId)— returns labels for a team asLinearLabel[]These discovery methods are required by the dashboard PM wizard to let users select a team and map workflow states during Linear setup.
Implementation Details
getIssue()/listIssues()and other methodsTEAM_FIELDS,STATE_FIELDS,LABEL_FIELDS) and existing mappers (mapTeam,mapState,mapLabel)LinearTeamandLinearWorkflowStatetypes fromsrc/linear/types.ts(types already existed)src/linear/types.ts— all required types were already definedTests
tests/unit/pm/linear/client.test.tsTrello Card
https://trello.com/c/4vtxTX0F/601-as-a-developer-i-want-linear-discovery-methods-in-the-client-so-that-the-dashboard-can-list-teams-and-workflow-states
🕵️ claude-code · claude-sonnet-4-6 · run details