diff --git a/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state b/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state index e4cd3d895a4..6780b8c3dbd 100644 --- a/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state +++ b/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state @@ -1,5 +1,5 @@ { - "specHash": "2fbd62855475472c85084c56b4a4c6c5", + "specHash": "96301d732a1a9fa2ec272adc08c795bd", "generatedFiles": { "files": [ { @@ -416,7 +416,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/BaseGist.php", - "hash": "9d636b124c21ad6980e59aedf9b43faf" + "hash": "115c320754394036b15ffbf2b7c0b3e7" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/PublicUser.php", @@ -428,7 +428,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/GistSimple.php", - "hash": "fdeb1df9a0109a2007fc2ac2f2ea6693" + "hash": "7d3c107dcdaa9f6f3ff0a9ebfa459fe5" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/GistComment.php", @@ -2820,7 +2820,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/GistSimple\/ForkOf.php", - "hash": "2952f75792119676cd5de5bb035d69c4" + "hash": "d0f646cd95a9cb930375cde8f59d5392" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/GistSimple\/Files.php", @@ -26940,7 +26940,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Gists.php", - "hash": "1ffec6db01bc1109f6e514e1ec788e9d" + "hash": "3705773d2720f55ec9a49299e14b28bd" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Gists\/Public_.php", @@ -26952,7 +26952,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Gists\/GistId.php", - "hash": "7a3aca4b3b262a6a65b84adabe9b7deb" + "hash": "4dd3c17b8551c8f05c67259bf0332d49" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Gists\/GistId\/Comments.php", @@ -26968,7 +26968,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Gists\/GistId\/Forks.php", - "hash": "14b1cdc9e3ca85b54103070031a5e727" + "hash": "5e9955e82a204d84179ebc485d057cae" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Gists\/GistId\/Star.php", @@ -26976,7 +26976,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Gists\/GistId\/Sha.php", - "hash": "e4cf411e40e11eae7e57ed428ca465a6" + "hash": "d4ba8fd324847004504a74606a88079a" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Gitignore\/Templates\/Name.php", @@ -34184,7 +34184,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/PrivateRegistries.php", - "hash": "e7fa41e48b636fb72ffb9fc10b8422cb" + "hash": "602de4953cecb9eb083620b1a7f8ab73" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/PrivateRegistries.php", diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Gists.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Gists.php index 6622fd9424f..2b43afc4c53 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Gists.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Gists.php @@ -329,6 +329,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_comments: + $value = $payload['comments_enabled'] ?? null; + + if ($value === null) { + $properties['commentsEnabled'] = null; + goto after_commentsEnabled; + } + + $properties['commentsEnabled'] = $value; + + after_commentsEnabled: + $value = $payload['user'] ?? null; if ($value === null) { @@ -564,6 +575,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_comments: + $value = $payload['comments_enabled'] ?? null; + + if ($value === null) { + $properties['commentsEnabled'] = null; + goto after_commentsEnabled; + } + + $properties['commentsEnabled'] = $value; + + after_commentsEnabled: + $value = $payload['user'] ?? null; if ($value === null) { @@ -1310,6 +1332,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_comments: $result['comments'] = $comments; + $commentsEnabled = $object->commentsEnabled; + + if ($commentsEnabled === null) { + goto after_commentsEnabled; + } + + after_commentsEnabled: $result['comments_enabled'] = $commentsEnabled; + $user = $object->user; if ($user === null) { @@ -1399,6 +1429,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou $comments = $object->comments; after_comments: $result['comments'] = $comments; + $commentsEnabled = $object->commentsEnabled; + + if ($commentsEnabled === null) { + goto after_commentsEnabled; + } + + after_commentsEnabled: $result['comments_enabled'] = $commentsEnabled; + $user = $object->user; if ($user === null) { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Gists/GistId.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Gists/GistId.php index 4336370edec..ad1d94f77f2 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Gists/GistId.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Gists/GistId.php @@ -270,6 +270,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_comments: + $value = $payload['comments_enabled'] ?? null; + + if ($value === null) { + $properties['commentsEnabled'] = null; + goto after_commentsEnabled; + } + + $properties['commentsEnabled'] = $value; + + after_commentsEnabled: + $value = $payload['user'] ?? null; if ($value === null) { @@ -505,6 +516,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_comments: + $value = $payload['comments_enabled'] ?? null; + + if ($value === null) { + $properties['commentsEnabled'] = null; + goto after_commentsEnabled; + } + + $properties['commentsEnabled'] = $value; + + after_commentsEnabled: + $value = $payload['user'] ?? null; if ($value === null) { @@ -1389,6 +1411,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_comments: $result['comments'] = $comments; + $commentsEnabled = $object->commentsEnabled; + + if ($commentsEnabled === null) { + goto after_commentsEnabled; + } + + after_commentsEnabled: $result['comments_enabled'] = $commentsEnabled; + $user = $object->user; if ($user === null) { @@ -1478,6 +1508,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou $comments = $object->comments; after_comments: $result['comments'] = $comments; + $commentsEnabled = $object->commentsEnabled; + + if ($commentsEnabled === null) { + goto after_commentsEnabled; + } + + after_commentsEnabled: $result['comments_enabled'] = $commentsEnabled; + $user = $object->user; if ($user === null) { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Gists/GistId/Forks.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Gists/GistId/Forks.php index 414a65adfca..3d8f45a2f58 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Gists/GistId/Forks.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Gists/GistId/Forks.php @@ -284,6 +284,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_comments: + $value = $payload['comments_enabled'] ?? null; + + if ($value === null) { + $properties['commentsEnabled'] = null; + goto after_commentsEnabled; + } + + $properties['commentsEnabled'] = $value; + + after_commentsEnabled: + $value = $payload['user'] ?? null; if ($value === null) { @@ -905,6 +916,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou $comments = $object->comments; after_comments: $result['comments'] = $comments; + $commentsEnabled = $object->commentsEnabled; + + if ($commentsEnabled === null) { + goto after_commentsEnabled; + } + + after_commentsEnabled: $result['comments_enabled'] = $commentsEnabled; + $user = $object->user; if ($user === null) { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Gists/GistId/Sha.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Gists/GistId/Sha.php index fa306238595..a0d88cf03bc 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Gists/GistId/Sha.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Gists/GistId/Sha.php @@ -266,6 +266,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_comments: + $value = $payload['comments_enabled'] ?? null; + + if ($value === null) { + $properties['commentsEnabled'] = null; + goto after_commentsEnabled; + } + + $properties['commentsEnabled'] = $value; + + after_commentsEnabled: + $value = $payload['user'] ?? null; if ($value === null) { @@ -501,6 +512,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_comments: + $value = $payload['comments_enabled'] ?? null; + + if ($value === null) { + $properties['commentsEnabled'] = null; + goto after_commentsEnabled; + } + + $properties['commentsEnabled'] = $value; + + after_commentsEnabled: + $value = $payload['user'] ?? null; if ($value === null) { @@ -1270,6 +1292,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_comments: $result['comments'] = $comments; + $commentsEnabled = $object->commentsEnabled; + + if ($commentsEnabled === null) { + goto after_commentsEnabled; + } + + after_commentsEnabled: $result['comments_enabled'] = $commentsEnabled; + $user = $object->user; if ($user === null) { @@ -1359,6 +1389,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou $comments = $object->comments; after_comments: $result['comments'] = $comments; + $commentsEnabled = $object->commentsEnabled; + + if ($commentsEnabled === null) { + goto after_commentsEnabled; + } + + after_commentsEnabled: $result['comments_enabled'] = $commentsEnabled; + $user = $object->user; if ($user === null) { diff --git a/clients/GitHubEnterpriseCloud/src/Schema/BaseGist.php b/clients/GitHubEnterpriseCloud/src/Schema/BaseGist.php index 0a505a981f4..6e49fd5c4b6 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/BaseGist.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/BaseGist.php @@ -109,6 +109,9 @@ "comments": { "type": "integer" }, + "comments_enabled": { + "type": "boolean" + }, "user": { "anyOf": [ { @@ -487,6 +490,7 @@ "updated_at": "1970-01-01T00:00:00+00:00", "description": "generated", "comments": 8, + "comments_enabled": false, "user": { "name": "generated", "email": "generated", @@ -558,7 +562,8 @@ public function __construct(public string $url, #[MapFrom('forks_url')] public string $gitPushUrl, #[MapFrom('html_url')] public string $htmlUrl, public Schema\BaseGist\Files $files, public bool $public, #[MapFrom('created_at')] public string $createdAt, #[MapFrom('updated_at')] - public string $updatedAt, public string|null $description, public int $comments, public Schema\SimpleUser|null $user, #[MapFrom('comments_url')] + public string $updatedAt, public string|null $description, public int $comments, #[MapFrom('comments_enabled')] + public bool|null $commentsEnabled, public Schema\SimpleUser|null $user, #[MapFrom('comments_url')] public string $commentsUrl, public Schema\SimpleUser|null $owner, public bool|null $truncated, public array|null $forks, public array|null $history,) { } diff --git a/clients/GitHubEnterpriseCloud/src/Schema/GistSimple.php b/clients/GitHubEnterpriseCloud/src/Schema/GistSimple.php index f9730033c45..4464439f1a8 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/GistSimple.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/GistSimple.php @@ -591,6 +591,9 @@ "comments": { "type": "integer" }, + "comments_enabled": { + "type": "boolean" + }, "user": { "anyOf": [ { @@ -1038,6 +1041,9 @@ "comments": { "type": "integer" }, + "comments_enabled": { + "type": "boolean" + }, "user": { "type": [ "string", @@ -1241,6 +1247,7 @@ "updated_at": "1970-01-01T00:00:00+00:00", "description": "generated", "comments": 8, + "comments_enabled": false, "user": { "name": "generated", "email": "generated", @@ -1314,6 +1321,7 @@ "updated_at": "generated", "description": "generated", "comments": 8, + "comments_enabled": false, "user": "generated", "comments_url": "generated", "owner": { @@ -1356,7 +1364,8 @@ public function __construct(public array|null $forks, public array|null $history public string|null $gitPushUrl, #[MapFrom('html_url')] public string|null $htmlUrl, public Schema\GistSimple\Files|null $files, public bool|null $public, #[MapFrom('created_at')] public string|null $createdAt, #[MapFrom('updated_at')] - public string|null $updatedAt, public string|null $description, public int|null $comments, public string|null $user, #[MapFrom('comments_url')] + public string|null $updatedAt, public string|null $description, public int|null $comments, #[MapFrom('comments_enabled')] + public bool|null $commentsEnabled, public string|null $user, #[MapFrom('comments_url')] public string|null $commentsUrl, public Schema\SimpleUser|null $owner, public bool|null $truncated,) { } diff --git a/clients/GitHubEnterpriseCloud/src/Schema/GistSimple/ForkOf.php b/clients/GitHubEnterpriseCloud/src/Schema/GistSimple/ForkOf.php index 1d2ba7cfaaf..dd0333ed8b2 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/GistSimple/ForkOf.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/GistSimple/ForkOf.php @@ -107,6 +107,9 @@ "comments": { "type": "integer" }, + "comments_enabled": { + "type": "boolean" + }, "user": { "anyOf": [ { @@ -492,6 +495,7 @@ "updated_at": "1970-01-01T00:00:00+00:00", "description": "generated", "comments": 8, + "comments_enabled": false, "user": { "name": "generated", "email": "generated", @@ -560,7 +564,8 @@ public function __construct(public string $url, #[MapFrom('forks_url')] public string $gitPushUrl, #[MapFrom('html_url')] public string $htmlUrl, public Schema\GistSimple\ForkOf\Files $files, public bool $public, #[MapFrom('created_at')] public string $createdAt, #[MapFrom('updated_at')] - public string $updatedAt, public string|null $description, public int $comments, public Schema\SimpleUser|null $user, #[MapFrom('comments_url')] + public string $updatedAt, public string|null $description, public int $comments, #[MapFrom('comments_enabled')] + public bool|null $commentsEnabled, public Schema\SimpleUser|null $user, #[MapFrom('comments_url')] public string $commentsUrl, public Schema\SimpleUser|null $owner, public bool|null $truncated, public array|null $forks, public array|null $history,) { } diff --git a/etc/specs/GitHubEnterpriseCloud/current.spec.yaml b/etc/specs/GitHubEnterpriseCloud/current.spec.yaml index fa9a6cb8c24..ee4471ff5ae 100644 --- a/etc/specs/GitHubEnterpriseCloud/current.spec.yaml +++ b/etc/specs/GitHubEnterpriseCloud/current.spec.yaml @@ -17806,17 +17806,11 @@ paths: items: type: integer examples: - update-username-and-encrypted-value: + default: value: username: monalisa encrypted_value: c2VjcmV0 key_id: '012345678912345678' - update-with-selected-visibility: - value: - visibility: selected - selected_repository_ids: - - 1296269 - - 1296280 responses: '204': description: Response @@ -45042,7 +45036,7 @@ paths: get: summary: Get secret scanning scan history for a repository description: |- - Lists the latest incremental and backfill scans by type for a repository. + Lists the latest default incremental and backfill scans by type for a repository. Scans from Copilot Secret Scanning are not included. OAuth app tokens and personal access tokens (classic) need the `repo` or `security_events` scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the `public_repo` scope instead. tags: @@ -81812,6 +81806,8 @@ components: - 'null' comments: type: integer + comments_enabled: + type: boolean user: anyOf: - type: 'null' @@ -82138,6 +82134,8 @@ components: - 'null' comments: type: integer + comments_enabled: + type: boolean user: anyOf: - type: 'null' @@ -82228,6 +82226,8 @@ components: - 'null' comments: type: integer + comments_enabled: + type: boolean user: type: - string @@ -214963,6 +214963,7 @@ components: updated_at: '2022-09-21T10:28:06Z' description: An updated gist description. comments: 0 + comments_enabled: true user: comments_url: https://api.github.com/gists/2decf6c462d9b4418f2/comments owner: