Skip to content

Commit 3e1802c

Browse files
committed
add metadata and its types to IssueViewForAttachmentUrl GraphQL query
1 parent 53a1a78 commit 3e1802c

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

dist/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -51675,6 +51675,7 @@ var issueViewForAttachmentQuery = gql`
5167551675
query IssueViewForAttachmentUrl($url: String!, $commentBody: String!) {
5167651676
attachmentsForURL(url: $url) {
5167751677
nodes {
51678+
metadata
5167851679
issue {
5167951680
id
5168051681
identifier

dist/index.js.map

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/services/linear-client.ts

+7
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ const gql = String.raw
7171
interface IssueViewForAttachmentUrlQueryResponse {
7272
attachmentsForURL: {
7373
nodes: {
74+
metadata: {
75+
linkKind?: 'links' | 'closes' | (string & {})
76+
}
7477
issue: {
7578
id: string
7679
identifier: string
@@ -88,6 +91,7 @@ const issueViewForAttachmentQuery = gql`
8891
query IssueViewForAttachmentUrl($url: String!, $commentBody: String!) {
8992
attachmentsForURL(url: $url) {
9093
nodes {
94+
metadata
9195
issue {
9296
id
9397
identifier
@@ -112,6 +116,9 @@ export function getLinearClientTest(client?: Partial<Effect.Effect.Success<typeo
112116
attachmentsForURL: {
113117
nodes: [
114118
{
119+
metadata: {
120+
linkKind: 'closes',
121+
},
115122
issue: {
116123
id: '87d696f1-4467-4f35-843e-c62b31b26' + url.slice(-3),
117124
identifier: 'TEST-' + url.slice(-3),

0 commit comments

Comments
 (0)