Skip to content

Fix Linear team lookup — use teams filter instead of team(key:)#596

Merged
riddim-developer-bot[bot] merged 1 commit into
mainfrom
fix/linear-team-query
May 25, 2026
Merged

Fix Linear team lookup — use teams filter instead of team(key:)#596
riddim-developer-bot[bot] merged 1 commit into
mainfrom
fix/linear-team-query

Conversation

@riddim-developer-bot

Copy link
Copy Markdown
Contributor

Why

The `resolve_team` query used `team(key: $key)` which Linear's API doesn't support — the `team` root field only accepts `id`. Caused `GRAPHQL_VALIDATION_FAILED` on every handler run after the Bearer and state-filter fixes landed. Discovered and confirmed by running the script locally against the real Linear API before pushing.

What changed

  • `resolve_team`: switched from `team(key: $key)` to `teams(filter: { key: { eq: $key } })` and updated parsing to read from `teams.nodes[0]`
  • Updated the corresponding test fixture and state-filter query assertion to match

Test plan

22/22 unit tests pass. Script tested locally end-to-end — exits cleanly and creates a Linear issue.

@riddim-developer-bot
riddim-developer-bot Bot enabled auto-merge (squash) May 25, 2026 18:39
@riddim-developer-bot
riddim-developer-bot Bot merged commit 2787cfa into main May 25, 2026
5 checks passed
@riddim-developer-bot
riddim-developer-bot Bot deleted the fix/linear-team-query branch May 25, 2026 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant