We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cf862d6 + 34c3b3c commit 097bad6Copy full SHA for 097bad6
3 files changed
api/export_pr_test.go
@@ -107,6 +107,32 @@ func TestIssue_ExportData(t *testing.T) {
107
}
108
`),
109
},
110
+ {
111
+ name: "assignees",
112
+ fields: []string{"assignees"},
113
+ inputJSON: heredoc.Doc(`
114
+ { "assignees": { "nodes": [
115
116
+ "id": "MDQ6VXNlcjE=",
117
+ "login": "monalisa",
118
+ "name": "Mona Lisa",
119
+ "databaseId": 1234
120
+ }
121
+ ] } }
122
+ `),
123
+ outputJSON: heredoc.Doc(`
124
125
+ "assignees": [
126
127
128
129
130
131
132
+ ]
133
134
135
+ },
136
{
137
name: "linked pull requests",
138
fields: []string{"closedByPullRequestsReferences"},
@@ -316,6 +342,32 @@ func TestPullRequest_ExportData(t *testing.T) {
316
342
317
343
318
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
319
371
320
372
name: "linked issues",
321
373
fields: []string{"closingIssuesReferences"},
api/query_builder.go
@@ -388,7 +388,7 @@ func IssueGraphQL(fields []string) string {
388
case "headRepository":
389
q = append(q, `headRepository{id,name}`)
390
case "assignees":
391
- q = append(q, `assignees(first:100){nodes{id,login,name},totalCount}`)
+ q = append(q, `assignees(first:100){nodes{id,login,name,databaseId},totalCount}`)
392
case "assignedActors":
393
q = append(q, assignedActors)
394
case "labels":
api/query_builder_test.go
@@ -21,7 +21,7 @@ func TestPullRequestGraphQL(t *testing.T) {
21
22
name: "fields with nested structures",
23
fields: []string{"author", "assignees"},
24
- want: "author{login,...on User{id,name}},assignees(first:100){nodes{id,login,name},totalCount}",
+ want: "author{login,...on User{id,name}},assignees(first:100){nodes{id,login,name,databaseId},totalCount}",
25
26
27
name: "compressed query",
@@ -67,7 +67,7 @@ func TestIssueGraphQL(t *testing.T) {
67
68
69
70
71
72
73
0 commit comments