File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ const discussionCommentFieldsFragment = `
7
7
author {
8
8
...UserFields
9
9
}
10
+ contents
10
11
html
11
12
inlineURL
12
13
createdAt
@@ -90,13 +91,17 @@ export async function createThread(
90
91
...DiscussionThreadFields
91
92
comments {
92
93
totalCount
94
+ nodes {
95
+ ...DiscussionCommentFields
96
+ }
93
97
}
94
98
}
95
99
}
96
100
}
97
101
${ discussionThreadFieldsFragment ( relativeRev ) }
102
+ ${ discussionCommentFieldsFragment }
98
103
` ,
99
- { input }
104
+ { input, relativeRev }
100
105
)
101
106
if ( ! data || ! data . discussions || ! data . discussions . createThread ) {
102
107
throw createAggregateError ( errors )
@@ -190,7 +195,7 @@ export async function fetchDiscussionThreadAndComments(
190
195
${ discussionThreadFieldsFragment ( relativeRev ) }
191
196
${ discussionCommentFieldsFragment }
192
197
` ,
193
- { threadID }
198
+ { threadID, relativeRev }
194
199
)
195
200
if (
196
201
! data ||
@@ -231,7 +236,7 @@ export async function addCommentToThread(
231
236
${ discussionThreadFieldsFragment ( relativeRev ) }
232
237
${ discussionCommentFieldsFragment }
233
238
` ,
234
- { threadID, contents }
239
+ { threadID, contents, relativeRev }
235
240
)
236
241
if ( ! data || ! data . discussions || ! data . discussions . addCommentToThread ) {
237
242
throw createAggregateError ( errors )
You can’t perform that action at this time.
0 commit comments