Skip to content

Commit 9e2c956

Browse files
authored
Merge pull request #12601 from github/repo-sync
repo sync
2 parents e568736 + be11f85 commit 9e2c956

13 files changed

Lines changed: 5649 additions & 5598 deletions

data/graphql/ghae/graphql_previews.ghae.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,6 @@
7575
- RemovedFromProjectEvent.projectColumnName
7676
owning_teams:
7777
- '@github/github-projects'
78-
- title: Create content attachments
79-
description: This preview adds support for creating content attachments.
80-
toggled_by: ':corsair-preview'
81-
announcement: null
82-
updates: null
83-
toggled_on:
84-
- Mutation.createContentAttachment
85-
owning_teams:
86-
- '@github/feature-lifecycle'
8778
- title: Labels Preview
8879
description: >-
8980
This preview adds support for adding, updating, creating and deleting

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

Lines changed: 96 additions & 92 deletions
Original file line numberDiff line numberDiff line change
@@ -1492,6 +1492,11 @@ type Bot implements Actor & Node & UniformResourceLocatable {
14921492
url: URI!
14931493
}
14941494

1495+
"""
1496+
Types which can be actors for `BranchActorAllowance` objects.
1497+
"""
1498+
union BranchActorAllowanceActor = Team | User
1499+
14951500
"""
14961501
A branch protection rule.
14971502
"""
@@ -1531,6 +1536,31 @@ type BranchProtectionRule implements Node {
15311536
last: Int
15321537
): BranchProtectionRuleConflictConnection!
15331538

1539+
"""
1540+
A list of actors able to bypass PRs for this branch protection rule.
1541+
"""
1542+
bypassPullRequestAllowances(
1543+
"""
1544+
Returns the elements in the list that come after the specified cursor.
1545+
"""
1546+
after: String
1547+
1548+
"""
1549+
Returns the elements in the list that come before the specified cursor.
1550+
"""
1551+
before: String
1552+
1553+
"""
1554+
Returns the first _n_ elements from the list.
1555+
"""
1556+
first: Int
1557+
1558+
"""
1559+
Returns the last _n_ elements from the list.
1560+
"""
1561+
last: Int
1562+
): BypassPullRequestAllowanceConnection!
1563+
15341564
"""
15351565
The actor who created this branch protection rule.
15361566
"""
@@ -1803,6 +1833,62 @@ type BranchProtectionRuleEdge {
18031833
node: BranchProtectionRule
18041834
}
18051835

1836+
"""
1837+
A team or user who has the ability to bypass a pull request requirement on a protected branch.
1838+
"""
1839+
type BypassPullRequestAllowance implements Node {
1840+
"""
1841+
The actor that can dismiss.
1842+
"""
1843+
actor: BranchActorAllowanceActor
1844+
1845+
"""
1846+
Identifies the branch protection rule associated with the allowed user or team.
1847+
"""
1848+
branchProtectionRule: BranchProtectionRule
1849+
id: ID!
1850+
}
1851+
1852+
"""
1853+
The connection type for BypassPullRequestAllowance.
1854+
"""
1855+
type BypassPullRequestAllowanceConnection {
1856+
"""
1857+
A list of edges.
1858+
"""
1859+
edges: [BypassPullRequestAllowanceEdge]
1860+
1861+
"""
1862+
A list of nodes.
1863+
"""
1864+
nodes: [BypassPullRequestAllowance]
1865+
1866+
"""
1867+
Information to aid in pagination.
1868+
"""
1869+
pageInfo: PageInfo!
1870+
1871+
"""
1872+
Identifies the total count of items in the connection.
1873+
"""
1874+
totalCount: Int!
1875+
}
1876+
1877+
"""
1878+
An edge in a connection.
1879+
"""
1880+
type BypassPullRequestAllowanceEdge {
1881+
"""
1882+
A cursor for use in pagination.
1883+
"""
1884+
cursor: String!
1885+
1886+
"""
1887+
The item at the end of the edge.
1888+
"""
1889+
node: BypassPullRequestAllowance
1890+
}
1891+
18061892
"""
18071893
The Common Vulnerability Scoring System
18081894
"""
@@ -4337,48 +4423,6 @@ type ConnectedEvent implements Node {
43374423
subject: ReferencedSubject!
43384424
}
43394425

4340-
"""
4341-
A content attachment
4342-
"""
4343-
type ContentAttachment {
4344-
"""
4345-
The body text of the content attachment. This parameter supports markdown.
4346-
"""
4347-
body: String!
4348-
4349-
"""
4350-
The content reference that the content attachment is attached to.
4351-
"""
4352-
contentReference: ContentReference!
4353-
4354-
"""
4355-
Identifies the primary key from the database.
4356-
"""
4357-
databaseId: Int!
4358-
id: ID!
4359-
4360-
"""
4361-
The title of the content attachment.
4362-
"""
4363-
title: String!
4364-
}
4365-
4366-
"""
4367-
A content reference
4368-
"""
4369-
type ContentReference {
4370-
"""
4371-
Identifies the primary key from the database.
4372-
"""
4373-
databaseId: Int!
4374-
id: ID!
4375-
4376-
"""
4377-
The reference of the content reference.
4378-
"""
4379-
reference: String!
4380-
}
4381-
43824426
"""
43834427
Represents a contribution a user made on GitHub, such as opening an issue.
43844428
"""
@@ -5132,6 +5176,11 @@ input CreateBranchProtectionRuleInput {
51325176
"""
51335177
allowsForcePushes: Boolean
51345178

5179+
"""
5180+
A list of User or Team IDs allowed to bypass pull requests targeting matching branches.
5181+
"""
5182+
bypassPullRequestActorIds: [ID!]
5183+
51355184
"""
51365185
A unique identifier for the client performing the mutation.
51375186
"""
@@ -5408,46 +5457,6 @@ type CreateCommitOnBranchPayload {
54085457
ref: Ref
54095458
}
54105459

5411-
"""
5412-
Autogenerated input type of CreateContentAttachment
5413-
"""
5414-
input CreateContentAttachmentInput {
5415-
"""
5416-
The body of the content attachment, which may contain markdown.
5417-
"""
5418-
body: String!
5419-
5420-
"""
5421-
A unique identifier for the client performing the mutation.
5422-
"""
5423-
clientMutationId: String
5424-
5425-
"""
5426-
The node ID of the content_reference.
5427-
"""
5428-
contentReferenceId: ID! @possibleTypes(concreteTypes: ["ContentReference"])
5429-
5430-
"""
5431-
The title of the content attachment.
5432-
"""
5433-
title: String!
5434-
}
5435-
5436-
"""
5437-
Autogenerated return type of CreateContentAttachment
5438-
"""
5439-
type CreateContentAttachmentPayload {
5440-
"""
5441-
A unique identifier for the client performing the mutation.
5442-
"""
5443-
clientMutationId: String
5444-
5445-
"""
5446-
The newly created content attachment.
5447-
"""
5448-
contentAttachment: ContentAttachment
5449-
}
5450-
54515460
"""
54525461
Autogenerated input type of CreateDeployment
54535462
"""
@@ -16669,16 +16678,6 @@ type Mutation {
1666916678
input: CreateCommitOnBranchInput!
1667016679
): CreateCommitOnBranchPayload
1667116680

16672-
"""
16673-
Create a content attachment.
16674-
"""
16675-
createContentAttachment(
16676-
"""
16677-
Parameters for CreateContentAttachment
16678-
"""
16679-
input: CreateContentAttachmentInput!
16680-
): CreateContentAttachmentPayload @preview(toggledBy: "corsair-preview")
16681-
1668216681
"""
1668316682
Creates a new deployment event.
1668416683
"""
@@ -37984,6 +37983,11 @@ input UpdateBranchProtectionRuleInput {
3798437983
"""
3798537984
branchProtectionRuleId: ID! @possibleTypes(concreteTypes: ["BranchProtectionRule"])
3798637985

37986+
"""
37987+
A list of User or Team IDs allowed to bypass pull requests targeting matching branches.
37988+
"""
37989+
bypassPullRequestActorIds: [ID!]
37990+
3798737991
"""
3798837992
A unique identifier for the client performing the mutation.
3798937993
"""

data/graphql/ghec/graphql_previews.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -91,15 +91,6 @@
9191
- RemovedFromProjectEvent.projectColumnName
9292
owning_teams:
9393
- '@github/github-projects'
94-
- title: Create content attachments
95-
description: This preview adds support for creating content attachments.
96-
toggled_by: ':corsair-preview'
97-
announcement: null
98-
updates: null
99-
toggled_on:
100-
- Mutation.createContentAttachment
101-
owning_teams:
102-
- '@github/feature-lifecycle'
10394
- title: Labels Preview
10495
description: >-
10596
This preview adds support for adding, updating, creating and deleting

0 commit comments

Comments
 (0)