From be872fe9d93b31d6f5c801f918d55e2719bbd8c9 Mon Sep 17 00:00:00 2001 From: WyriHaximus <147145+WyriHaximus@users.noreply.github.com> Date: Tue, 7 Jan 2025 20:59:01 +0000 Subject: [PATCH] =?UTF-8?q?[GitHubEnterpriseCloud]=20Update=20to=201.1.4-9?= =?UTF-8?q?6301d732a1a9fa2ec272adc08c795bd=20from=201.1.4-2fbd62855475472c?= =?UTF-8?q?85084c56b4a4c6c5=20Detected=20Schema=20changes:=202025-01-07=20?= =?UTF-8?q?20:28:10=20ERROR=20unable=20to=20open=20the=20rolodex=20file,?= =?UTF-8?q?=20check=20specification=20references=20and=20base=20path=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=E2=94=9C=20file:=20/=5F=5Fw/github-root/github-root/server-sta?= =?UTF-8?q?tistics-actions.yaml=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=E2=94=94=20error:=20open=20/=5F=5Fw?= =?UTF-8?q?/github-root/github-root/server-statistics-actions.yaml:=20no?= =?UTF-8?q?=20such=20file=20or=20directory=202025-01-07=2020:28:10=20ERROR?= =?UTF-8?q?=20unable=20to=20open=20the=20rolodex=20file,=20check=20specifi?= =?UTF-8?q?cation=20references=20and=20base=20path=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=E2=94=9C=20file:?= =?UTF-8?q?=20/=5F=5Fw/github-root/github-root/server-statistics-packages.?= =?UTF-8?q?yaml=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=E2=94=94=20error:=20open=20/=5F=5Fw/github-root/gi?= =?UTF-8?q?thub-root/server-statistics-packages.yaml:=20no=20such=20file?= =?UTF-8?q?=20or=20directory=202025-01-07=2020:28:10=20ERROR=20unable=20to?= =?UTF-8?q?=20open=20the=20rolodex=20file,=20check=20specification=20refer?= =?UTF-8?q?ences=20and=20base=20path=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=E2=94=9C=20file:=20/=5F=5Fw/g?= =?UTF-8?q?ithub-root/github-root/server-statistics-advisory-db.yaml=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=E2=94=94=20error:=20open=20/=5F=5Fw/github-root/github-root/se?= =?UTF-8?q?rver-statistics-advisory-db.yaml:=20no=20such=20file=20or=20dir?= =?UTF-8?q?ectory=202025-01-07=2020:28:12=20ERROR=20unable=20to=20open=20t?= =?UTF-8?q?he=20rolodex=20file,=20check=20specification=20references=20and?= =?UTF-8?q?=20base=20path=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=E2=94=9C=20error:=20open=20/=5F=5Fw/githu?= =?UTF-8?q?b-root/github-root/server-statistics-actions.yaml:=20no=20such?= =?UTF-8?q?=20file=20or=20directory=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=E2=94=94=20file:=20/=5F=5Fw/gith?= =?UTF-8?q?ub-root/github-root/server-statistics-actions.yaml=202025-01-07?= =?UTF-8?q?=2020:28:12=20ERROR=20unable=20to=20open=20the=20rolodex=20file?= =?UTF-8?q?,=20check=20specification=20references=20and=20base=20path=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=E2=94=9C=20file:=20/=5F=5Fw/github-root/github-root/server-?= =?UTF-8?q?statistics-packages.yaml=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=E2=94=94=20error:=20open=20/=5F?= =?UTF-8?q?=5Fw/github-root/github-root/server-statistics-packages.yaml:?= =?UTF-8?q?=20no=20such=20file=20or=20directory=202025-01-07=2020:28:12=20?= =?UTF-8?q?ERROR=20unable=20to=20open=20the=20rolodex=20file,=20check=20sp?= =?UTF-8?q?ecification=20references=20and=20base=20path=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=E2=94=9C=20?= =?UTF-8?q?file:=20/=5F=5Fw/github-root/github-root/server-statistics-advi?= =?UTF-8?q?sory-db.yaml=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=E2=94=94=20error:=20open=20/=5F=5Fw/github-r?= =?UTF-8?q?oot/github-root/server-statistics-advisory-db.yaml:=20no=20such?= =?UTF-8?q?=20file=20or=20directory=20ERROR:=20component=20`server-statist?= =?UTF-8?q?ics-actions.yaml`=20does=20not=20exist=20in=20the=20specificati?= =?UTF-8?q?on=20ERROR:=20component=20`server-statistics-packages.yaml`=20d?= =?UTF-8?q?oes=20not=20exist=20in=20the=20specification=20ERROR:=20compone?= =?UTF-8?q?nt=20`server-statistics-advisory-db.yaml`=20does=20not=20exist?= =?UTF-8?q?=20in=20the=20specification=20ERROR:=20cannot=20resolve=20refer?= =?UTF-8?q?ence=20`server-statistics-actions.yaml`,=20it's=20missing:=20?= =?UTF-8?q?=20[213002:11]=20ERROR:=20cannot=20resolve=20reference=20`serve?= =?UTF-8?q?r-statistics-packages.yaml`,=20it's=20missing:=20=20[213004:11]?= =?UTF-8?q?=20ERROR:=20cannot=20resolve=20reference=20`server-statistics-a?= =?UTF-8?q?dvisory-db.yaml`,=20it's=20missing:=20=20[213006:11]=20ERROR:?= =?UTF-8?q?=20component=20`server-statistics-actions.yaml`=20does=20not=20?= =?UTF-8?q?exist=20in=20the=20specification=20ERROR:=20component=20`server?= =?UTF-8?q?-statistics-packages.yaml`=20does=20not=20exist=20in=20the=20sp?= =?UTF-8?q?ecification=20ERROR:=20component=20`server-statistics-advisory-?= =?UTF-8?q?db.yaml`=20does=20not=20exist=20in=20the=20specification=20ERRO?= =?UTF-8?q?R:=20cannot=20resolve=20reference=20`server-statistics-actions.?= =?UTF-8?q?yaml`,=20it's=20missing:=20=20[213002:11]=20ERROR:=20cannot=20r?= =?UTF-8?q?esolve=20reference=20`server-statistics-packages.yaml`,=20it's?= =?UTF-8?q?=20missing:=20=20[213004:11]=20ERROR:=20cannot=20resolve=20refe?= =?UTF-8?q?rence=20`server-statistics-advisory-db.yaml`,=20it's=20missing:?= =?UTF-8?q?=20=20[213006:11]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../etc/openapi-client-generator.state | 18 ++++----- .../src/Internal/Hydrator/Operation/Gists.php | 38 +++++++++++++++++++ .../Hydrator/Operation/Gists/GistId.php | 38 +++++++++++++++++++ .../Hydrator/Operation/Gists/GistId/Forks.php | 19 ++++++++++ .../Hydrator/Operation/Gists/GistId/Sha.php | 38 +++++++++++++++++++ .../src/Schema/BaseGist.php | 7 +++- .../src/Schema/GistSimple.php | 11 +++++- .../src/Schema/GistSimple/ForkOf.php | 7 +++- .../GitHubEnterpriseCloud/current.spec.yaml | 17 +++++---- 9 files changed, 173 insertions(+), 20 deletions(-) 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: