Skip to content

fix(linear): use String teamId for label queries - #160

Merged
camwest merged 1 commit into
masterfrom
fix/linear-teamid-label-query-type
Feb 12, 2026
Merged

fix(linear): use String teamId for label queries#160
camwest merged 1 commit into
masterfrom
fix/linear-teamid-label-query-type

Conversation

@camwest

@camwest camwest commented Feb 12, 2026

Copy link
Copy Markdown
Owner

Summary

Fix Linear label queries by changing teamId variable type to String! for team(id: $teamId) lookups.

This unblocks these Linear flows:

  • isq label list
  • isq issue create --title "..." --label ...
  • isq issue label <id> add <label>

Root Cause

Two queries used query($teamId: ID!) while querying team(id: $teamId). Linear validates this and returns:

Variable "$teamId" of type "ID!" used in position expecting type "String!"

Changes

  • Added TEAM_LABELS_QUERY in src/forges/linear/issues.rs with query($teamId: String!)
  • Added LIST_LABELS_QUERY in src/forges/linear/forge_impl.rs with query($teamId: String!)
  • Updated get_label_ids and list_labels to use the shared constants
  • Added regression tests:
    • forges::linear::issues::tests::team_labels_query_uses_string_team_id
    • forges::linear::forge_impl::tests::list_labels_query_uses_string_team_id

Validation

  • cargo test (191 passed)

Closes #159

camwest commented Feb 12, 2026

Copy link
Copy Markdown
Owner Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@camwest
camwest marked this pull request as ready for review February 12, 2026 18:43
@camwest
camwest force-pushed the fix/linear-teamid-label-query-type branch from 585ffa1 to 8e778d4 Compare February 12, 2026 18:48
@camwest
camwest merged commit 2ef57d1 into master Feb 12, 2026
3 checks passed
@camwest
camwest deleted the fix/linear-teamid-label-query-type branch February 12, 2026 18:50
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.

Bug: --label on issue create and label list fail with GraphQL error (Linear)

1 participant