diff --git a/data/graphql/ghae/graphql_upcoming_changes.public-ghae.yml b/data/graphql/ghae/graphql_upcoming_changes.public-ghae.yml index b9772bb76b8c..03bd2821c4e4 100644 --- a/data/graphql/ghae/graphql_upcoming_changes.public-ghae.yml +++ b/data/graphql/ghae/graphql_upcoming_changes.public-ghae.yml @@ -344,6 +344,12 @@ upcoming_changes: date: '2024-07-01T00:00:00+00:00' criticality: breaking owner: deborah-digges + - location: OrganizationInvitation.inviter + description: '`inviter` will be removed. `inviter` will be replaced by `inviterActor`.' + reason: '`inviter` will be removed.' + date: '2024-07-01T00:00:00+00:00' + criticality: breaking + owner: jdennes - location: TeamDiscussion.authorAssociation description: '`authorAssociation` will be removed. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ diff --git a/data/graphql/ghae/schema.docs-ghae.graphql b/data/graphql/ghae/schema.docs-ghae.graphql index 1b92502f0af2..ee9ee3ae33c6 100644 --- a/data/graphql/ghae/schema.docs-ghae.graphql +++ b/data/graphql/ghae/schema.docs-ghae.graphql @@ -26171,6 +26171,14 @@ type OrganizationInvitation implements Node { The user who created the invitation. """ inviter: User! + @deprecated( + reason: "`inviter` will be removed. `inviter` will be replaced by `inviterActor`. Removal on 2024-07-01 UTC." + ) + + """ + The user who created the invitation. + """ + inviterActor: User """ The organization the invite is for @@ -32265,6 +32273,36 @@ type Ref implements Node { """ repository: Repository! + """ + A list of rules from active Repository and Organization rulesets that apply to this ref. + """ + rules( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: String + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: String + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Ordering options for repository rules. + """ + orderBy: RepositoryRuleOrder = {field: UPDATED_AT, direction: DESC} + ): RepositoryRuleConnection + """ The object the ref points to. Returns null when object does not exist. """ @@ -38588,6 +38626,41 @@ input RepositoryRuleInput { type: RepositoryRuleType! } +""" +Ordering options for repository rules. +""" +input RepositoryRuleOrder { + """ + The ordering direction. + """ + direction: OrderDirection! + + """ + The field to order repository rules by. + """ + field: RepositoryRuleOrderField! +} + +""" +Properties by which repository rule connections can be ordered. +""" +enum RepositoryRuleOrderField { + """ + Order repository rules by created time + """ + CREATED_AT + + """ + Order repository rules by type + """ + TYPE + + """ + Order repository rules by updated time + """ + UPDATED_AT +} + """ The rule types supported in rulesets """ diff --git a/data/graphql/ghec/graphql_upcoming_changes.public.yml b/data/graphql/ghec/graphql_upcoming_changes.public.yml index e404dbf6dfd4..53a4e1ce0951 100644 --- a/data/graphql/ghec/graphql_upcoming_changes.public.yml +++ b/data/graphql/ghec/graphql_upcoming_changes.public.yml @@ -466,6 +466,12 @@ upcoming_changes: date: '2024-07-01T00:00:00+00:00' criticality: breaking owner: deborah-digges + - location: OrganizationInvitation.inviter + description: '`inviter` will be removed. `inviter` will be replaced by `inviterActor`.' + reason: '`inviter` will be removed.' + date: '2024-07-01T00:00:00+00:00' + criticality: breaking + owner: jdennes - location: TeamDiscussion.authorAssociation description: '`authorAssociation` will be removed. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ diff --git a/data/graphql/ghec/schema.docs.graphql b/data/graphql/ghec/schema.docs.graphql index 4f3a058dd0e4..97bb718ae6f2 100644 --- a/data/graphql/ghec/schema.docs.graphql +++ b/data/graphql/ghec/schema.docs.graphql @@ -29712,6 +29712,14 @@ type OrganizationInvitation implements Node { The user who created the invitation. """ inviter: User! + @deprecated( + reason: "`inviter` will be removed. `inviter` will be replaced by `inviterActor`. Removal on 2024-07-01 UTC." + ) + + """ + The user who created the invitation. + """ + inviterActor: User """ The organization the invite is for @@ -39180,6 +39188,36 @@ type Ref implements Node { """ repository: Repository! + """ + A list of rules from active Repository and Organization rulesets that apply to this ref. + """ + rules( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: String + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: String + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Ordering options for repository rules. + """ + orderBy: RepositoryRuleOrder = {field: UPDATED_AT, direction: DESC} + ): RepositoryRuleConnection + """ The object the ref points to. Returns null when object does not exist. """ @@ -45938,6 +45976,41 @@ input RepositoryRuleInput { type: RepositoryRuleType! } +""" +Ordering options for repository rules. +""" +input RepositoryRuleOrder { + """ + The ordering direction. + """ + direction: OrderDirection! + + """ + The field to order repository rules by. + """ + field: RepositoryRuleOrderField! +} + +""" +Properties by which repository rule connections can be ordered. +""" +enum RepositoryRuleOrderField { + """ + Order repository rules by created time + """ + CREATED_AT + + """ + Order repository rules by type + """ + TYPE + + """ + Order repository rules by updated time + """ + UPDATED_AT +} + """ The rule types supported in rulesets """ diff --git a/data/graphql/graphql_upcoming_changes.public.yml b/data/graphql/graphql_upcoming_changes.public.yml index e404dbf6dfd4..53a4e1ce0951 100644 --- a/data/graphql/graphql_upcoming_changes.public.yml +++ b/data/graphql/graphql_upcoming_changes.public.yml @@ -466,6 +466,12 @@ upcoming_changes: date: '2024-07-01T00:00:00+00:00' criticality: breaking owner: deborah-digges + - location: OrganizationInvitation.inviter + description: '`inviter` will be removed. `inviter` will be replaced by `inviterActor`.' + reason: '`inviter` will be removed.' + date: '2024-07-01T00:00:00+00:00' + criticality: breaking + owner: jdennes - location: TeamDiscussion.authorAssociation description: '`authorAssociation` will be removed. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ diff --git a/data/graphql/schema.docs.graphql b/data/graphql/schema.docs.graphql index 4f3a058dd0e4..97bb718ae6f2 100644 --- a/data/graphql/schema.docs.graphql +++ b/data/graphql/schema.docs.graphql @@ -29712,6 +29712,14 @@ type OrganizationInvitation implements Node { The user who created the invitation. """ inviter: User! + @deprecated( + reason: "`inviter` will be removed. `inviter` will be replaced by `inviterActor`. Removal on 2024-07-01 UTC." + ) + + """ + The user who created the invitation. + """ + inviterActor: User """ The organization the invite is for @@ -39180,6 +39188,36 @@ type Ref implements Node { """ repository: Repository! + """ + A list of rules from active Repository and Organization rulesets that apply to this ref. + """ + rules( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: String + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: String + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Ordering options for repository rules. + """ + orderBy: RepositoryRuleOrder = {field: UPDATED_AT, direction: DESC} + ): RepositoryRuleConnection + """ The object the ref points to. Returns null when object does not exist. """ @@ -45938,6 +45976,41 @@ input RepositoryRuleInput { type: RepositoryRuleType! } +""" +Ordering options for repository rules. +""" +input RepositoryRuleOrder { + """ + The ordering direction. + """ + direction: OrderDirection! + + """ + The field to order repository rules by. + """ + field: RepositoryRuleOrderField! +} + +""" +Properties by which repository rule connections can be ordered. +""" +enum RepositoryRuleOrderField { + """ + Order repository rules by created time + """ + CREATED_AT + + """ + Order repository rules by type + """ + TYPE + + """ + Order repository rules by updated time + """ + UPDATED_AT +} + """ The rule types supported in rulesets """ diff --git a/src/audit-logs/lib/config.json b/src/audit-logs/lib/config.json index 7f8201303a01..852aa0290eaf 100644 --- a/src/audit-logs/lib/config.json +++ b/src/audit-logs/lib/config.json @@ -1,4 +1,4 @@ { "apiOnlyEventsAdditionalDescription": "This event is not available in the web interface, only via the REST API, audit log streaming, or JSON/CSV exports.", - "sha": "52e66eb2d1c3cd4e4b495b437463fe73d99a43c4" + "sha": "4c3e6d507196163bc76afe061b28dbe60106319b" } \ No newline at end of file diff --git a/src/graphql/data/fpt/changelog.json b/src/graphql/data/fpt/changelog.json index 333c19a56755..3313d8ce3087 100644 --- a/src/graphql/data/fpt/changelog.json +++ b/src/graphql/data/fpt/changelog.json @@ -1,4 +1,27 @@ [ + { + "schemaChanges": [ + { + "title": "The GraphQL schema includes these changes:", + "changes": [ + "

Type RepositoryRuleOrder was added

", + "

Type RepositoryRuleOrderField was added

", + "

Field inviterActor was added to object type OrganizationInvitation

", + "

Field rules was added to object type Ref

" + ] + } + ], + "previewChanges": [], + "upcomingChanges": [ + { + "title": "The following changes will be made to the schema:", + "changes": [ + "

On member OrganizationInvitation.inviter:inviter will be removed. inviter will be replaced by inviterActor. Effective 2024-07-01.

" + ] + } + ], + "date": "2024-01-09" + }, { "schemaChanges": [ { diff --git a/src/graphql/data/fpt/schema.json b/src/graphql/data/fpt/schema.json index efba37539039..0db2e47389b7 100644 --- a/src/graphql/data/fpt/schema.json +++ b/src/graphql/data/fpt/schema.json @@ -42179,6 +42179,16 @@ "type": "User!", "id": "user", "kind": "objects", + "href": "/graphql/reference/objects#user", + "isDeprecated": true, + "deprecationReason": "

inviter will be removed. inviter will be replaced by inviterActor. Removal on 2024-07-01 UTC.

" + }, + { + "name": "inviterActor", + "description": "

The user who created the invitation.

", + "type": "User", + "id": "user", + "kind": "objects", "href": "/graphql/reference/objects#user" }, { @@ -53988,6 +53998,66 @@ "kind": "objects", "href": "/graphql/reference/objects#repository" }, + { + "name": "rules", + "description": "

A list of rules from active Repository and Organization rulesets that apply to this ref.

", + "type": "RepositoryRuleConnection", + "id": "repositoryruleconnection", + "kind": "objects", + "href": "/graphql/reference/objects#repositoryruleconnection", + "arguments": [ + { + "name": "after", + "description": "

Returns the elements in the list that come after the specified cursor.

", + "type": { + "name": "String", + "id": "string", + "kind": "scalars", + "href": "/graphql/reference/scalars#string" + } + }, + { + "name": "before", + "description": "

Returns the elements in the list that come before the specified cursor.

", + "type": { + "name": "String", + "id": "string", + "kind": "scalars", + "href": "/graphql/reference/scalars#string" + } + }, + { + "name": "first", + "description": "

Returns the first n elements from the list.

", + "type": { + "name": "Int", + "id": "int", + "kind": "scalars", + "href": "/graphql/reference/scalars#int" + } + }, + { + "name": "last", + "description": "

Returns the last n elements from the list.

", + "type": { + "name": "Int", + "id": "int", + "kind": "scalars", + "href": "/graphql/reference/scalars#int" + } + }, + { + "name": "orderBy", + "description": "

Ordering options for repository rules.

", + "type": { + "name": "RepositoryRuleOrder", + "id": "repositoryruleorder", + "kind": "input-objects", + "href": "/graphql/reference/input-objects#repositoryruleorder" + } + } + ] + }, { "name": "target", "description": "

The object the ref points to. Returns null when object does not exist.

", @@ -85589,6 +85659,27 @@ } ] }, + { + "name": "RepositoryRuleOrderField", + "kind": "enums", + "id": "repositoryruleorderfield", + "href": "/graphql/reference/enums#repositoryruleorderfield", + "description": "

Properties by which repository rule connections can be ordered.

", + "values": [ + { + "name": "CREATED_AT", + "description": "

Order repository rules by created time.

" + }, + { + "name": "TYPE", + "description": "

Order repository rules by type.

" + }, + { + "name": "UPDATED_AT", + "description": "

Order repository rules by updated time.

" + } + ] + }, { "name": "RepositoryRuleType", "kind": "enums", @@ -98050,6 +98141,31 @@ } ] }, + { + "name": "RepositoryRuleOrder", + "kind": "inputObjects", + "id": "repositoryruleorder", + "href": "/graphql/reference/input-objects#repositoryruleorder", + "description": "

Ordering options for repository rules.

", + "inputFields": [ + { + "name": "direction", + "description": "

The ordering direction.

", + "type": "OrderDirection!", + "id": "orderdirection", + "kind": "enums", + "href": "/graphql/reference/enums#orderdirection" + }, + { + "name": "field", + "description": "

The field to order repository rules by.

", + "type": "RepositoryRuleOrderField!", + "id": "repositoryruleorderfield", + "kind": "enums", + "href": "/graphql/reference/enums#repositoryruleorderfield" + } + ] + }, { "name": "RepositoryRulesetBypassActorInput", "kind": "inputObjects", diff --git a/src/graphql/data/fpt/upcoming-changes.json b/src/graphql/data/fpt/upcoming-changes.json index 9a84d07fb183..5c0d22af686c 100644 --- a/src/graphql/data/fpt/upcoming-changes.json +++ b/src/graphql/data/fpt/upcoming-changes.json @@ -152,6 +152,14 @@ "criticality": "breaking", "owner": "deborah-digges" }, + { + "location": "OrganizationInvitation.inviter", + "description": "

inviter will be removed. inviter will be replaced by inviterActor.

", + "reason": "

inviter will be removed.

", + "date": "2024-07-01", + "criticality": "breaking", + "owner": "jdennes" + }, { "location": "CreateTeamDiscussionPayload.teamDiscussion", "description": "

teamDiscussion will be removed. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement.

", diff --git a/src/graphql/data/ghae/schema.json b/src/graphql/data/ghae/schema.json index bd0f7958ccc8..9cd64882bbf3 100644 --- a/src/graphql/data/ghae/schema.json +++ b/src/graphql/data/ghae/schema.json @@ -37057,6 +37057,16 @@ "type": "User!", "id": "user", "kind": "objects", + "href": "/graphql/reference/objects#user", + "isDeprecated": true, + "deprecationReason": "

inviter will be removed. inviter will be replaced by inviterActor. Removal on 2024-07-01 UTC.

" + }, + { + "name": "inviterActor", + "description": "

The user who created the invitation.

", + "type": "User", + "id": "user", + "kind": "objects", "href": "/graphql/reference/objects#user" }, { @@ -44715,6 +44725,66 @@ "kind": "objects", "href": "/graphql/reference/objects#repository" }, + { + "name": "rules", + "description": "

A list of rules from active Repository and Organization rulesets that apply to this ref.

", + "type": "RepositoryRuleConnection", + "id": "repositoryruleconnection", + "kind": "objects", + "href": "/graphql/reference/objects#repositoryruleconnection", + "arguments": [ + { + "name": "after", + "description": "

Returns the elements in the list that come after the specified cursor.

", + "type": { + "name": "String", + "id": "string", + "kind": "scalars", + "href": "/graphql/reference/scalars#string" + } + }, + { + "name": "before", + "description": "

Returns the elements in the list that come before the specified cursor.

", + "type": { + "name": "String", + "id": "string", + "kind": "scalars", + "href": "/graphql/reference/scalars#string" + } + }, + { + "name": "first", + "description": "

Returns the first n elements from the list.

", + "type": { + "name": "Int", + "id": "int", + "kind": "scalars", + "href": "/graphql/reference/scalars#int" + } + }, + { + "name": "last", + "description": "

Returns the last n elements from the list.

", + "type": { + "name": "Int", + "id": "int", + "kind": "scalars", + "href": "/graphql/reference/scalars#int" + } + }, + { + "name": "orderBy", + "description": "

Ordering options for repository rules.

", + "type": { + "name": "RepositoryRuleOrder", + "id": "repositoryruleorder", + "kind": "input-objects", + "href": "/graphql/reference/input-objects#repositoryruleorder" + } + } + ] + }, { "name": "target", "description": "

The object the ref points to. Returns null when object does not exist.

", @@ -71689,6 +71759,27 @@ } ] }, + { + "name": "RepositoryRuleOrderField", + "kind": "enums", + "id": "repositoryruleorderfield", + "href": "/graphql/reference/enums#repositoryruleorderfield", + "description": "

Properties by which repository rule connections can be ordered.

", + "values": [ + { + "name": "CREATED_AT", + "description": "

Order repository rules by created time.

" + }, + { + "name": "TYPE", + "description": "

Order repository rules by type.

" + }, + { + "name": "UPDATED_AT", + "description": "

Order repository rules by updated time.

" + } + ] + }, { "name": "RepositoryRuleType", "kind": "enums", @@ -80767,6 +80858,31 @@ } ] }, + { + "name": "RepositoryRuleOrder", + "kind": "inputObjects", + "id": "repositoryruleorder", + "href": "/graphql/reference/input-objects#repositoryruleorder", + "description": "

Ordering options for repository rules.

", + "inputFields": [ + { + "name": "direction", + "description": "

The ordering direction.

", + "type": "OrderDirection!", + "id": "orderdirection", + "kind": "enums", + "href": "/graphql/reference/enums#orderdirection" + }, + { + "name": "field", + "description": "

The field to order repository rules by.

", + "type": "RepositoryRuleOrderField!", + "id": "repositoryruleorderfield", + "kind": "enums", + "href": "/graphql/reference/enums#repositoryruleorderfield" + } + ] + }, { "name": "RepositoryRulesetBypassActorInput", "kind": "inputObjects", diff --git a/src/graphql/data/ghae/upcoming-changes.json b/src/graphql/data/ghae/upcoming-changes.json index 65756036cad4..a516411d7bd5 100644 --- a/src/graphql/data/ghae/upcoming-changes.json +++ b/src/graphql/data/ghae/upcoming-changes.json @@ -152,6 +152,14 @@ "criticality": "breaking", "owner": "deborah-digges" }, + { + "location": "OrganizationInvitation.inviter", + "description": "

inviter will be removed. inviter will be replaced by inviterActor.

", + "reason": "

inviter will be removed.

", + "date": "2024-07-01", + "criticality": "breaking", + "owner": "jdennes" + }, { "location": "CreateTeamDiscussionPayload.teamDiscussion", "description": "

teamDiscussion will be removed. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement.

", diff --git a/src/graphql/data/ghec/schema.json b/src/graphql/data/ghec/schema.json index efba37539039..0db2e47389b7 100644 --- a/src/graphql/data/ghec/schema.json +++ b/src/graphql/data/ghec/schema.json @@ -42179,6 +42179,16 @@ "type": "User!", "id": "user", "kind": "objects", + "href": "/graphql/reference/objects#user", + "isDeprecated": true, + "deprecationReason": "

inviter will be removed. inviter will be replaced by inviterActor. Removal on 2024-07-01 UTC.

" + }, + { + "name": "inviterActor", + "description": "

The user who created the invitation.

", + "type": "User", + "id": "user", + "kind": "objects", "href": "/graphql/reference/objects#user" }, { @@ -53988,6 +53998,66 @@ "kind": "objects", "href": "/graphql/reference/objects#repository" }, + { + "name": "rules", + "description": "

A list of rules from active Repository and Organization rulesets that apply to this ref.

", + "type": "RepositoryRuleConnection", + "id": "repositoryruleconnection", + "kind": "objects", + "href": "/graphql/reference/objects#repositoryruleconnection", + "arguments": [ + { + "name": "after", + "description": "

Returns the elements in the list that come after the specified cursor.

", + "type": { + "name": "String", + "id": "string", + "kind": "scalars", + "href": "/graphql/reference/scalars#string" + } + }, + { + "name": "before", + "description": "

Returns the elements in the list that come before the specified cursor.

", + "type": { + "name": "String", + "id": "string", + "kind": "scalars", + "href": "/graphql/reference/scalars#string" + } + }, + { + "name": "first", + "description": "

Returns the first n elements from the list.

", + "type": { + "name": "Int", + "id": "int", + "kind": "scalars", + "href": "/graphql/reference/scalars#int" + } + }, + { + "name": "last", + "description": "

Returns the last n elements from the list.

", + "type": { + "name": "Int", + "id": "int", + "kind": "scalars", + "href": "/graphql/reference/scalars#int" + } + }, + { + "name": "orderBy", + "description": "

Ordering options for repository rules.

", + "type": { + "name": "RepositoryRuleOrder", + "id": "repositoryruleorder", + "kind": "input-objects", + "href": "/graphql/reference/input-objects#repositoryruleorder" + } + } + ] + }, { "name": "target", "description": "

The object the ref points to. Returns null when object does not exist.

", @@ -85589,6 +85659,27 @@ } ] }, + { + "name": "RepositoryRuleOrderField", + "kind": "enums", + "id": "repositoryruleorderfield", + "href": "/graphql/reference/enums#repositoryruleorderfield", + "description": "

Properties by which repository rule connections can be ordered.

", + "values": [ + { + "name": "CREATED_AT", + "description": "

Order repository rules by created time.

" + }, + { + "name": "TYPE", + "description": "

Order repository rules by type.

" + }, + { + "name": "UPDATED_AT", + "description": "

Order repository rules by updated time.

" + } + ] + }, { "name": "RepositoryRuleType", "kind": "enums", @@ -98050,6 +98141,31 @@ } ] }, + { + "name": "RepositoryRuleOrder", + "kind": "inputObjects", + "id": "repositoryruleorder", + "href": "/graphql/reference/input-objects#repositoryruleorder", + "description": "

Ordering options for repository rules.

", + "inputFields": [ + { + "name": "direction", + "description": "

The ordering direction.

", + "type": "OrderDirection!", + "id": "orderdirection", + "kind": "enums", + "href": "/graphql/reference/enums#orderdirection" + }, + { + "name": "field", + "description": "

The field to order repository rules by.

", + "type": "RepositoryRuleOrderField!", + "id": "repositoryruleorderfield", + "kind": "enums", + "href": "/graphql/reference/enums#repositoryruleorderfield" + } + ] + }, { "name": "RepositoryRulesetBypassActorInput", "kind": "inputObjects", diff --git a/src/graphql/data/ghec/upcoming-changes.json b/src/graphql/data/ghec/upcoming-changes.json index 9a84d07fb183..5c0d22af686c 100644 --- a/src/graphql/data/ghec/upcoming-changes.json +++ b/src/graphql/data/ghec/upcoming-changes.json @@ -152,6 +152,14 @@ "criticality": "breaking", "owner": "deborah-digges" }, + { + "location": "OrganizationInvitation.inviter", + "description": "

inviter will be removed. inviter will be replaced by inviterActor.

", + "reason": "

inviter will be removed.

", + "date": "2024-07-01", + "criticality": "breaking", + "owner": "jdennes" + }, { "location": "CreateTeamDiscussionPayload.teamDiscussion", "description": "

teamDiscussion will be removed. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement.

",