diff --git a/data/graphql/ghae/schema.docs-ghae.graphql b/data/graphql/ghae/schema.docs-ghae.graphql index 7c634972f8fc..54dfa837025d 100644 --- a/data/graphql/ghae/schema.docs-ghae.graphql +++ b/data/graphql/ghae/schema.docs-ghae.graphql @@ -34377,6 +34377,16 @@ type Repository implements Node & ProjectOwner & RepositoryInfo & Starrable & Su """ visibility: RepositoryVisibility! + """ + Returns a single vulnerability alert from the current repository by number. + """ + vulnerabilityAlert( + """ + The number for the vulnerability alert to be returned. + """ + number: Int! + ): RepositoryVulnerabilityAlert + """ A list of vulnerability alerts that are on this repository. """ diff --git a/data/graphql/ghec/schema.docs.graphql b/data/graphql/ghec/schema.docs.graphql index 88fd2d8cf0c1..a1144ccac6f6 100644 --- a/data/graphql/ghec/schema.docs.graphql +++ b/data/graphql/ghec/schema.docs.graphql @@ -41004,6 +41004,16 @@ type Repository implements Node & PackageOwner & ProjectOwner & ProjectV2Recent """ visibility: RepositoryVisibility! + """ + Returns a single vulnerability alert from the current repository by number. + """ + vulnerabilityAlert( + """ + The number for the vulnerability alert to be returned. + """ + number: Int! + ): RepositoryVulnerabilityAlert + """ A list of vulnerability alerts that are on this repository. """ diff --git a/data/graphql/schema.docs.graphql b/data/graphql/schema.docs.graphql index 88fd2d8cf0c1..a1144ccac6f6 100644 --- a/data/graphql/schema.docs.graphql +++ b/data/graphql/schema.docs.graphql @@ -41004,6 +41004,16 @@ type Repository implements Node & PackageOwner & ProjectOwner & ProjectV2Recent """ visibility: RepositoryVisibility! + """ + Returns a single vulnerability alert from the current repository by number. + """ + vulnerabilityAlert( + """ + The number for the vulnerability alert to be returned. + """ + number: Int! + ): RepositoryVulnerabilityAlert + """ A list of vulnerability alerts that are on this repository. """ diff --git a/src/graphql/data/changelog.json b/src/graphql/data/changelog.json index f6f2288fc4ca..591727636540 100644 --- a/src/graphql/data/changelog.json +++ b/src/graphql/data/changelog.json @@ -1,4 +1,17 @@ [ + { + "schemaChanges": [ + { + "title": "The GraphQL schema includes these changes:", + "changes": [ + "

Field vulnerabilityAlert was added to object type Repository

" + ] + } + ], + "previewChanges": [], + "upcomingChanges": [], + "date": "2023-02-15" + }, { "schemaChanges": [ { diff --git a/src/graphql/data/schema-dotcom.json b/src/graphql/data/schema-dotcom.json index 265f4ac61525..0e0b73fed73f 100644 --- a/src/graphql/data/schema-dotcom.json +++ b/src/graphql/data/schema-dotcom.json @@ -57733,6 +57733,26 @@ "kind": "enums", "href": "/graphql/reference/enums#repositoryvisibility" }, + { + "name": "vulnerabilityAlert", + "description": "

Returns a single vulnerability alert from the current repository by number.

", + "type": "RepositoryVulnerabilityAlert", + "id": "repositoryvulnerabilityalert", + "kind": "objects", + "href": "/graphql/reference/objects#repositoryvulnerabilityalert", + "arguments": [ + { + "name": "number", + "description": "

The number for the vulnerability alert to be returned.

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

A list of vulnerability alerts that are on this repository.

", diff --git a/src/graphql/data/schema-ghae.json b/src/graphql/data/schema-ghae.json index c674163c80d0..5daa65e930ce 100644 --- a/src/graphql/data/schema-ghae.json +++ b/src/graphql/data/schema-ghae.json @@ -48841,6 +48841,26 @@ "kind": "enums", "href": "/graphql/reference/enums#repositoryvisibility" }, + { + "name": "vulnerabilityAlert", + "description": "

Returns a single vulnerability alert from the current repository by number.

", + "type": "RepositoryVulnerabilityAlert", + "id": "repositoryvulnerabilityalert", + "kind": "objects", + "href": "/graphql/reference/objects#repositoryvulnerabilityalert", + "arguments": [ + { + "name": "number", + "description": "

The number for the vulnerability alert to be returned.

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

A list of vulnerability alerts that are on this repository.

", diff --git a/src/graphql/data/schema-ghec.json b/src/graphql/data/schema-ghec.json index 265f4ac61525..0e0b73fed73f 100644 --- a/src/graphql/data/schema-ghec.json +++ b/src/graphql/data/schema-ghec.json @@ -57733,6 +57733,26 @@ "kind": "enums", "href": "/graphql/reference/enums#repositoryvisibility" }, + { + "name": "vulnerabilityAlert", + "description": "

Returns a single vulnerability alert from the current repository by number.

", + "type": "RepositoryVulnerabilityAlert", + "id": "repositoryvulnerabilityalert", + "kind": "objects", + "href": "/graphql/reference/objects#repositoryvulnerabilityalert", + "arguments": [ + { + "name": "number", + "description": "

The number for the vulnerability alert to be returned.

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

A list of vulnerability alerts that are on this repository.

",