Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions src/utils/linear.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ export async function fetchIssueDetails(
project?: { name: string } | null
projectMilestone?: { name: string } | null
cycle?: { name?: string | null; number: number } | null
labels?: Array<{ id: string; name: string; color: string }>
parent?: {
identifier: string
title: string
Expand Down Expand Up @@ -225,6 +226,13 @@ export async function fetchIssueDetails(
name
number
}
labels(first: 50) {
nodes {
id
name
color
}
}
parent {
identifier
title
Expand Down Expand Up @@ -298,6 +306,13 @@ export async function fetchIssueDetails(
name
number
}
labels(first: 50) {
nodes {
id
name
color
}
}
parent {
identifier
title
Expand Down Expand Up @@ -338,6 +353,7 @@ export async function fetchIssueDetails(
spinner?.stop()
return {
...data.issue,
labels: data.issue.labels?.nodes || [],
children: data.issue.children?.nodes || [],
comments: data.issue.comments?.nodes || [],
attachments: data.issue.attachments?.nodes || [],
Expand All @@ -347,6 +363,7 @@ export async function fetchIssueDetails(
spinner?.stop()
return {
...data.issue,
labels: data.issue.labels?.nodes || [],
children: data.issue.children?.nodes || [],
attachments: data.issue.attachments?.nodes || [],
}
Expand Down
Loading