Skip to content

Commit f0bccdc

Browse files
committed
fix: remove 'invalid' graphql '()
1 parent 06b2ee7 commit f0bccdc

File tree

2 files changed

+40
-24
lines changed

2 files changed

+40
-24
lines changed

schema/github.schema.graphqls

+17-10
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,9 @@ type ContextRepository {
280280

281281
# Connections
282282

283-
PullRequest: ContextPullRequest @graphql(key: "pullRequest(number: $pr)") @internal
283+
PullRequest: ContextPullRequest
284+
@graphql(key: "pullRequest(number: $pr)")
285+
@internal
284286
}
285287

286288
"A label for categorizing Issues, Pull Requests, Milestones, or Discussions with a given Repository"
@@ -405,7 +407,6 @@ type ContextPullRequest {
405407
"The HTTP URL for this Pull Request"
406408
URL: String!
407409

408-
409410
#
410411
# Connections
411412
#
@@ -416,19 +417,25 @@ type ContextPullRequest {
416417
@internal
417418

418419
"Information about the first commit made"
419-
FirstCommit: ContextCommit @generated()
420+
FirstCommit: ContextCommit @generated
420421
"Information about the last commit made"
421-
LastCommit: ContextCommit @generated()
422+
LastCommit: ContextCommit @generated
422423
"Duration between first and last commit made"
423-
TimeBetweenFirstAndLastCommit: Duration @generated()
424+
TimeBetweenFirstAndLastCommit: Duration @generated
424425
"Duration (from 'now') since the first commit was made"
425-
TimeSinceFirstCommit: Duration @generated()
426+
TimeSinceFirstCommit: Duration @generated
426427
"Duration (from 'now') since the last commit was made"
427-
TimeSinceLastCommit: Duration @generated()
428+
TimeSinceLastCommit: Duration @generated
428429
"Labels available on this project"
429430
Labels: [ContextLabel!] @generated
430431

431-
ResponseFirstCommits: ContextCommitsNode @internal @graphql(key: "first_commit: commits(first:1)")
432-
ResponseLastCommits: ContextCommitsNode @internal @graphql(key: "last_commit: commits(last:1)")
433-
ResponseLabels: ContextLabelConnection @internal @graphql(key: "labels(first:100)")
432+
ResponseFirstCommits: ContextCommitsNode
433+
@internal
434+
@graphql(key: "first_commit: commits(first:1)")
435+
ResponseLastCommits: ContextCommitsNode
436+
@internal
437+
@graphql(key: "last_commit: commits(last:1)")
438+
ResponseLabels: ContextLabelConnection
439+
@internal
440+
@graphql(key: "labels(first:100)")
434441
}

schema/gitlab.schema.graphqls

+23-14
Original file line numberDiff line numberDiff line change
@@ -86,20 +86,23 @@ input ListMergeRequestsQueryInput {
8686

8787
type ListMergeRequestsQuery {
8888
"The project the Merge Request belongs to"
89-
Project: ListMergeRequestsProject @graphql(key: "project(fullPath: $project_id)")
89+
Project: ListMergeRequestsProject
90+
@graphql(key: "project(fullPath: $project_id)")
9091
}
9192

9293
type ListMergeRequestsProject {
93-
MergeRequests: ListMergeRequestsProjectMergeRequestNodes @graphql(key: "mergeRequests(state: $state, first: $first)") @internal
94+
MergeRequests: ListMergeRequestsProjectMergeRequestNodes
95+
@graphql(key: "mergeRequests(state: $state, first: $first)")
96+
@internal
9497
}
9598

9699
type ListMergeRequestsProjectMergeRequestNodes {
97100
Nodes: [ListMergeRequestsProjectMergeRequest!]
98101
}
99102

100103
type ListMergeRequestsProjectMergeRequest {
101-
ID: String! @graphql(key: "iid") @internal
102-
DiffHeadSha: String @graphql(key: "diffHeadSha") @internal
104+
ID: String! @graphql(key: "iid") @internal
105+
DiffHeadSha: String @graphql(key: "diffHeadSha") @internal
103106
}
104107

105108
# https://docs.gitlab.com/ee/api/graphql/reference/#project
@@ -136,9 +139,11 @@ type ContextProject {
136139
"Labels available on this project"
137140
Labels: [ContextLabel!] @generated
138141

139-
ResponseLabels: ContextLabelNode @internal @graphql(key: "labels(first: 200)")
140-
MergeRequest: ContextMergeRequest @internal @graphql(key: "mergeRequest(iid: $mr_id)")
141-
ResponseGroup: ContextGroup @internal @graphql(key: "group")
142+
ResponseLabels: ContextLabelNode @internal @graphql(key: "labels(first: 200)")
143+
MergeRequest: ContextMergeRequest
144+
@internal
145+
@graphql(key: "mergeRequest(iid: $mr_id)")
146+
ResponseGroup: ContextGroup @internal @graphql(key: "group")
142147
}
143148

144149
# https://docs.gitlab.com/ee/api/graphql/reference/#group
@@ -261,24 +266,28 @@ type ContextMergeRequest {
261266
Notes: [ContextNote!] @generated
262267

263268
"Information about the first commit made"
264-
FirstCommit: ContextCommit @generated()
269+
FirstCommit: ContextCommit @generated
265270
"Information about the last commit made"
266-
LastCommit: ContextCommit @generated()
271+
LastCommit: ContextCommit @generated
267272
"Duration between first and last commit made"
268-
TimeBetweenFirstAndLastCommit: Duration @generated()
273+
TimeBetweenFirstAndLastCommit: Duration @generated
269274
"Duration (from 'now') since the first commit was made"
270-
TimeSinceFirstCommit: Duration @generated()
275+
TimeSinceFirstCommit: Duration @generated
271276
"Duration (from 'now') since the last commit was made"
272-
TimeSinceLastCommit: Duration @generated()
277+
TimeSinceLastCommit: Duration @generated
273278

274279
#
275280
# scm-engine internal
276281
#
277282

278283
CurrentUser: ContextUser! @generated @internal
279284
ResponseLabels: ContextLabelNode @internal @graphql(key: "labels(first: 200)")
280-
ResponseFirstCommits: ContextCommitsNode @internal @graphql(key: "first_commit: commits(first:1)")
281-
ResponseLastCommits: ContextCommitsNode @internal @graphql(key: "last_commit: commits(last:1)")
285+
ResponseFirstCommits: ContextCommitsNode
286+
@internal
287+
@graphql(key: "first_commit: commits(first:1)")
288+
ResponseLastCommits: ContextCommitsNode
289+
@internal
290+
@graphql(key: "last_commit: commits(last:1)")
282291
ResponseNotes: ContextNotesNode @internal @graphql(key: "notes(last: 10)")
283292
}
284293

0 commit comments

Comments
 (0)