Skip to content

Commit 6083412

Browse files
Octomergerrachmari
andauthored
GraphQL schema update (github#31821)
Co-authored-by: rachmari <[email protected]>
1 parent e398bab commit 6083412

11 files changed

+1742
-0
lines changed

data/graphql/ghae/graphql_upcoming_changes.public-ghae.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,3 +265,23 @@ upcoming_changes:
265265
date: '2023-04-01T00:00:00+00:00'
266266
criticality: breaking
267267
owner: alcere
268+
- location: ProjectV2View.sortBy
269+
description:
270+
'`sortBy` will be removed. Check out the `ProjectV2View#sort_by_fields`
271+
API as an example for the more capable alternative.'
272+
reason:
273+
The `ProjectV2View#sort_by` API is deprecated in favour of the more capable
274+
`ProjectV2View#sort_by_fields` API.
275+
date: '2023-04-01T00:00:00+00:00'
276+
criticality: breaking
277+
owner: traumverloren
278+
- location: ProjectV2View.verticalGroupBy
279+
description:
280+
'`verticalGroupBy` will be removed. Check out the `ProjectV2View#vertical_group_by_fields`
281+
API as an example for the more capable alternative.'
282+
reason:
283+
The `ProjectV2View#vertical_group_by` API is deprecated in favour of the
284+
more capable `ProjectV2View#vertical_group_by_fields` API.
285+
date: '2023-04-01T00:00:00+00:00'
286+
criticality: breaking
287+
owner: traumverloren

data/graphql/ghae/schema.docs-ghae.graphql

Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4654,6 +4654,117 @@ input CommittableBranch {
46544654
repositoryNameWithOwner: String
46554655
}
46564656

4657+
"""
4658+
Represents a comparison between two commit revisions.
4659+
"""
4660+
type Comparison implements Node {
4661+
"""
4662+
The number of commits ahead of the base branch.
4663+
"""
4664+
aheadBy: Int!
4665+
4666+
"""
4667+
The base revision of this comparison.
4668+
"""
4669+
baseTarget: GitObject!
4670+
4671+
"""
4672+
The number of commits behind the base branch.
4673+
"""
4674+
behindBy: Int!
4675+
4676+
"""
4677+
The commits which compose this comparison.
4678+
"""
4679+
commits(
4680+
"""
4681+
Returns the elements in the list that come after the specified cursor.
4682+
"""
4683+
after: String
4684+
4685+
"""
4686+
Returns the elements in the list that come before the specified cursor.
4687+
"""
4688+
before: String
4689+
4690+
"""
4691+
Returns the first _n_ elements from the list.
4692+
"""
4693+
first: Int
4694+
4695+
"""
4696+
Returns the last _n_ elements from the list.
4697+
"""
4698+
last: Int
4699+
): ComparisonCommitConnection!
4700+
4701+
"""
4702+
The head revision of this comparison.
4703+
"""
4704+
headTarget: GitObject!
4705+
id: ID!
4706+
4707+
"""
4708+
The status of this comparison.
4709+
"""
4710+
status: ComparisonStatus!
4711+
}
4712+
4713+
"""
4714+
The connection type for Commit.
4715+
"""
4716+
type ComparisonCommitConnection {
4717+
"""
4718+
The total count of authors and co-authors across all commits.
4719+
"""
4720+
authorCount: Int!
4721+
4722+
"""
4723+
A list of edges.
4724+
"""
4725+
edges: [CommitEdge]
4726+
4727+
"""
4728+
A list of nodes.
4729+
"""
4730+
nodes: [Commit]
4731+
4732+
"""
4733+
Information to aid in pagination.
4734+
"""
4735+
pageInfo: PageInfo!
4736+
4737+
"""
4738+
Identifies the total count of items in the connection.
4739+
"""
4740+
totalCount: Int!
4741+
}
4742+
4743+
"""
4744+
The status of a git comparison between two refs.
4745+
"""
4746+
enum ComparisonStatus {
4747+
"""
4748+
The head ref is ahead of the base ref.
4749+
"""
4750+
AHEAD
4751+
4752+
"""
4753+
The head ref is behind the base ref.
4754+
"""
4755+
BEHIND
4756+
4757+
"""
4758+
The head ref is both ahead and behind of the base ref, indicating git history has diverged.
4759+
"""
4760+
DIVERGED
4761+
4762+
"""
4763+
The head ref and base ref are identical.
4764+
"""
4765+
IDENTICAL
4766+
}
4767+
46574768
"""
46584769
Represents a 'connected' event on a given issue or pull request.
46594770
"""
@@ -28738,6 +28849,16 @@ type Ref implements Node {
2873828849
Branch protection rules for this ref
2873928850
"""
2874028851
branchProtectionRule: BranchProtectionRule
28852+
28853+
"""
28854+
Compares the current ref as a base ref to another head ref, if the comparison can be made.
28855+
"""
28856+
compare(
28857+
"""
28858+
The head ref to compare against.
28859+
"""
28860+
headRef: String!
28861+
): Comparison
2874128862
id: ID!
2874228863

2874328864
"""

data/graphql/ghec/graphql_upcoming_changes.public.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1756,3 +1756,23 @@ upcoming_changes:
17561756
date: '2023-04-01T00:00:00+00:00'
17571757
criticality: breaking
17581758
owner: alcere
1759+
- location: ProjectV2View.sortBy
1760+
description:
1761+
'`sortBy` will be removed. Check out the `ProjectV2View#sort_by_fields`
1762+
API as an example for the more capable alternative.'
1763+
reason:
1764+
The `ProjectV2View#sort_by` API is deprecated in favour of the more capable
1765+
`ProjectV2View#sort_by_fields` API.
1766+
date: '2023-04-01T00:00:00+00:00'
1767+
criticality: breaking
1768+
owner: traumverloren
1769+
- location: ProjectV2View.verticalGroupBy
1770+
description:
1771+
'`verticalGroupBy` will be removed. Check out the `ProjectV2View#vertical_group_by_fields`
1772+
API as an example for the more capable alternative.'
1773+
reason:
1774+
The `ProjectV2View#vertical_group_by` API is deprecated in favour of the
1775+
more capable `ProjectV2View#vertical_group_by_fields` API.
1776+
date: '2023-04-01T00:00:00+00:00'
1777+
criticality: breaking
1778+
owner: traumverloren

0 commit comments

Comments
 (0)