Skip to content

fix: use IssueRelationType enum in relation create mutation#10

Open
bayazee wants to merge 1 commit intoFinesssee:masterfrom
bayazee:fix/relation-type-graphql-enum
Open

fix: use IssueRelationType enum in relation create mutation#10
bayazee wants to merge 1 commit intoFinesssee:masterfrom
bayazee:fix/relation-type-graphql-enum

Conversation

@bayazee
Copy link

@bayazee bayazee commented Feb 24, 2026

Summary

Fixes rel add failing for all relation types with a GraphQL type mismatch.

Root Cause

The $type variable in the issueRelationCreate mutation was declared as String! instead of IssueRelationType!, which the Linear API expects.

Reproducing

linear-cli rel add ISSUE-1 ISSUE-2 -r blocks
# Error: HTTP 400 Bad Request: Variable "$type" of type "String!" used in position expecting type "IssueRelationType!".

Fixes #9

@bayazee
Copy link
Author

bayazee commented Feb 24, 2026

Hi @Finesssee, could you please check this? I've tested it locally and it also worked for ~20 Linear tickets.

ink-splatters added a commit to ink-splatters/linear-cli that referenced this pull request Feb 25, 2026
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.

rel add fails with GraphQL type mismatch for all relation types

1 participant