From aab830125269911e2e37ec8cd867db08bd221a88 Mon Sep 17 00:00:00 2001 From: WyriHaximus <147145+WyriHaximus@users.noreply.github.com> Date: Tue, 7 Jan 2025 19:50:51 +0000 Subject: [PATCH] [GitHub] Update to 1.1.4-d543c2cfa43a2dcdc9526a6061319dd0 from 1.1.4-c1e4d4617fb30b28dd9ff95dbcd32f2e Detected Schema changes: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ``` ├─┬Paths │ ├─┬/gists │ │ └─┬POST │ │ └─┬Responses │ │ └─┬201 │ │ └─┬application/json │ │ └─┬default │ │ ├──[🔀] value (204299:9) │ │ ├──[🔀] value (204299:9) │ │ ├──[🔀] value (204299:9) │ │ ├──[🔀] value (204299:9) │ │ ├──[🔀] value (204299:9) │ │ ├──[🔀] value (204299:9) │ │ ├──[🔀] value (204299:9) │ │ ├──[🔀] value (204299:9) │ │ ├──[🔀] value (204299:9) │ │ ├──[🔀] value (204299:9) │ │ ├──[🔀] value (204299:9) │ │ ├──[🔀] value (204299:9) │ │ ├──[🔀] value (204299:9) │ │ ├──[🔀] value (204299:9) │ │ ├──[🔀] value (204299:9) │ │ ├──[🔀] value (204299:9) │ │ ├──[🔀] value (204299:9) │ │ ├──[🔀] value (204299:9) │ │ ├──[🔀] value (204299:9) │ │ └──[➖] value (204305:9) │ ├─┬/repos/{owner}/{repo}/secret-scanning/scan-history │ │ └─┬GET │ │ └──[🔀] description (40213:20) │ ├─┬/gists/{gist_id} │ │ ├─┬GET │ │ │ └─┬Responses │ │ │ └─┬200 │ │ │ └─┬application/json │ │ │ └─┬default │ │ │ ├──[🔀] value (204299:9) │ │ │ ├──[🔀] value (204299:9) │ │ │ ├──[🔀] value (204299:9) │ │ │ ├──[🔀] value (204299:9) │ │ │ ├──[🔀] value (204299:9) │ │ │ ├──[🔀] value (204299:9) │ │ │ ├──[🔀] value (204299:9) │ │ │ ├──[🔀] value (204299:9) │ │ │ ├──[🔀] value (204299:9) │ │ │ ├──[🔀] value (204299:9) │ │ │ ├──[🔀] value (204299:9) │ │ │ ├──[🔀] value (204299:9) │ │ │ ├──[🔀] value (204299:9) │ │ │ ├──[🔀] value (204299:9) │ │ │ ├──[🔀] value (204299:9) │ │ │ ├──[🔀] value (204299:9) │ │ │ ├──[🔀] value (204299:9) │ │ │ ├──[🔀] value (204299:9) │ │ │ ├──[🔀] value (204299:9) │ │ │ └──[➖] value (204305:9) │ │ └─┬PATCH │ │ └─┬Responses │ │ └─┬200 │ │ └─┬application/json │ │ └─┬updateGist │ │ ├──[🔀] value (204299:9) │ │ ├──[🔀] value (204299:9) │ │ ├──[🔀] value (204299:9) │ │ ├──[🔀] value (204299:9) │ │ ├──[🔀] value (204299:9) │ │ ├──[🔀] value (204299:9) │ │ ├──[🔀] value (204299:9) │ │ ├──[🔀] value (204299:9) │ │ ├──[🔀] value (204299:9) │ │ ├──[🔀] value (204299:9) │ │ ├──[🔀] value (204299:9) │ │ ├──[🔀] value (204299:9) │ │ ├──[🔀] value (204299:9) │ │ ├──[🔀] value (204299:9) │ │ ├──[🔀] value (204299:9) │ │ ├──[🔀] value (204299:9) │ │ ├──[🔀] value (204299:9) │ │ ├──[🔀] value (204299:9) │ │ ├──[🔀] value (204299:9) │ │ └──[➖] value (204305:9) │ └─┬/gists/{gist_id}/{sha} │ └─┬GET │ └─┬Responses │ └─┬200 │ └─┬application/json │ └─┬default │ ├──[🔀] value (204299:9) │ ├──[🔀] value (204299:9) │ ├──[🔀] value (204299:9) │ ├──[🔀] value (204299:9) │ ├──[🔀] value (204299:9) │ ├──[🔀] value (204299:9) │ ├──[🔀] value (204299:9) │ ├──[🔀] value (204299:9) │ ├──[🔀] value (204299:9) │ ├──[🔀] value (204299:9) │ ├──[🔀] value (204299:9) │ ├──[🔀] value (204299:9) │ ├──[🔀] value (204299:9) │ ├──[🔀] value (204299:9) │ ├──[🔀] value (204299:9) │ ├──[🔀] value (204299:9) │ ├──[🔀] value (204299:9) │ ├──[🔀] value (204299:9) │ ├──[🔀] value (204299:9) │ └──[➖] value (204305:9) └─┬Components ├─┬base-gist │ └──[➖] properties (71527:9)❌ └─┬gist-simple ├──[➖] properties (71947:9)❌ └─┬fork_of └──[➖] properties (71855:13)❌ ``` | Document Element | Total Changes | Breaking Changes | |------------------|---------------|------------------| | paths | 81 | 0 | | components | 3 | 3 | Date: 01/07/25 | Commit: New: etc/specs/GitHub/previous.spec.yaml, Original: etc/specs/GitHub/current.spec.yaml - ❌ **BREAKING Changes**: _3_ out of _84_ - **Modifications**: _77_ - **Removals**: _7_ - **Breaking Removals**: _3_ ERROR: breaking changes discovered --- .../GitHub/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 +++++++++++++++++++ clients/GitHub/src/Schema/BaseGist.php | 7 +++- clients/GitHub/src/Schema/GistSimple.php | 11 +++++- .../GitHub/src/Schema/GistSimple/ForkOf.php | 7 +++- etc/specs/GitHub/current.spec.yaml | 9 ++++- 9 files changed, 172 insertions(+), 13 deletions(-) diff --git a/clients/GitHub/etc/openapi-client-generator.state b/clients/GitHub/etc/openapi-client-generator.state index 79a747a7685..700d6d1c962 100644 --- a/clients/GitHub/etc/openapi-client-generator.state +++ b/clients/GitHub/etc/openapi-client-generator.state @@ -1,5 +1,5 @@ { - "specHash": "c1e4d4617fb30b28dd9ff95dbcd32f2e", + "specHash": "d543c2cfa43a2dcdc9526a6061319dd0", "generatedFiles": { "files": [ { @@ -216,7 +216,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/BaseGist.php", - "hash": "6a4c0f624e46228684170909267749bb" + "hash": "3db403d0909d3622d6938216823ed029" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/PublicUser.php", @@ -228,7 +228,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/GistSimple.php", - "hash": "830ff132801cff2da8c06596d183f567" + "hash": "7dbbdfe3e6de7b333f5a55417d4a8d88" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/GistComment.php", @@ -2612,7 +2612,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/GistSimple\/ForkOf.php", - "hash": "8ee1e1e01693a49c7d89564e80f0290e" + "hash": "6a2ecb3a9df1b563f1ac267ced489d0c" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/GistSimple\/Files.php", @@ -25156,7 +25156,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Gists.php", - "hash": "f3cd0b797cc4d04c11ef320706f1d418" + "hash": "4fb009673141dc515bd893aec88a5063" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Gists\/Public_.php", @@ -25168,7 +25168,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Gists\/GistId.php", - "hash": "f59b327f24067b8fd169192ac6dc8f1c" + "hash": "9a072f8beece9100d403e1bbe946f866" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Gists\/GistId\/Comments.php", @@ -25184,7 +25184,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Gists\/GistId\/Forks.php", - "hash": "dcacb75feea340a9887786655fe979a5" + "hash": "749382e1f6056dcf0f3a0eb4565196df" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Gists\/GistId\/Star.php", @@ -25192,7 +25192,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Gists\/GistId\/Sha.php", - "hash": "2c721313d55016c2b8696ee71ba8efc0" + "hash": "26bd01f1069c35c11dd97e82322edc1f" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Gitignore\/Templates\/Name.php", @@ -31468,7 +31468,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/PrivateRegistries.php", - "hash": "8eb1b85a46ebf692eac4887162044dce" + "hash": "42129b777cab6a6ddff1350f6cde5015" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/PrivateRegistries.php", diff --git a/clients/GitHub/src/Internal/Hydrator/Operation/Gists.php b/clients/GitHub/src/Internal/Hydrator/Operation/Gists.php index 157cb450436..ec6b74dd46a 100644 --- a/clients/GitHub/src/Internal/Hydrator/Operation/Gists.php +++ b/clients/GitHub/src/Internal/Hydrator/Operation/Gists.php @@ -329,6 +329,17 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Gist 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⚡️GitHub⚡️Schema⚡️Gist 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⚡️GitHub⚡️Schema 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⚡️GitHub⚡️Schema $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/GitHub/src/Internal/Hydrator/Operation/Gists/GistId.php b/clients/GitHub/src/Internal/Hydrator/Operation/Gists/GistId.php index 19b31bccf96..700f12437fc 100644 --- a/clients/GitHub/src/Internal/Hydrator/Operation/Gists/GistId.php +++ b/clients/GitHub/src/Internal/Hydrator/Operation/Gists/GistId.php @@ -270,6 +270,17 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Gist 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⚡️GitHub⚡️Schema⚡️Gist 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⚡️GitHub⚡️Schema 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⚡️GitHub⚡️Schema $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/GitHub/src/Internal/Hydrator/Operation/Gists/GistId/Forks.php b/clients/GitHub/src/Internal/Hydrator/Operation/Gists/GistId/Forks.php index 5db35be06a4..89e1459fd88 100644 --- a/clients/GitHub/src/Internal/Hydrator/Operation/Gists/GistId/Forks.php +++ b/clients/GitHub/src/Internal/Hydrator/Operation/Gists/GistId/Forks.php @@ -284,6 +284,17 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Base 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⚡️GitHub⚡️Schema $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/GitHub/src/Internal/Hydrator/Operation/Gists/GistId/Sha.php b/clients/GitHub/src/Internal/Hydrator/Operation/Gists/GistId/Sha.php index 4e498e729fb..24eebd01219 100644 --- a/clients/GitHub/src/Internal/Hydrator/Operation/Gists/GistId/Sha.php +++ b/clients/GitHub/src/Internal/Hydrator/Operation/Gists/GistId/Sha.php @@ -266,6 +266,17 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Gist 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⚡️GitHub⚡️Schema⚡️Gist 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⚡️GitHub⚡️Schema 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⚡️GitHub⚡️Schema $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/GitHub/src/Schema/BaseGist.php b/clients/GitHub/src/Schema/BaseGist.php index 6e0461cd087..1c9ba5b4c58 100644 --- a/clients/GitHub/src/Schema/BaseGist.php +++ b/clients/GitHub/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/GitHub/src/Schema/GistSimple.php b/clients/GitHub/src/Schema/GistSimple.php index be53cf369a8..7027de62013 100644 --- a/clients/GitHub/src/Schema/GistSimple.php +++ b/clients/GitHub/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/GitHub/src/Schema/GistSimple/ForkOf.php b/clients/GitHub/src/Schema/GistSimple/ForkOf.php index 7754367073b..c286b602e59 100644 --- a/clients/GitHub/src/Schema/GistSimple/ForkOf.php +++ b/clients/GitHub/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/GitHub/current.spec.yaml b/etc/specs/GitHub/current.spec.yaml index 3d61a79a5d8..33c80287a12 100644 --- a/etc/specs/GitHub/current.spec.yaml +++ b/etc/specs/GitHub/current.spec.yaml @@ -40211,7 +40211,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: @@ -71524,6 +71524,8 @@ components: - 'null' comments: type: integer + comments_enabled: + type: boolean user: anyOf: - type: 'null' @@ -71850,6 +71852,8 @@ components: - 'null' comments: type: integer + comments_enabled: + type: boolean user: anyOf: - type: 'null' @@ -71940,6 +71944,8 @@ components: - 'null' comments: type: integer + comments_enabled: + type: boolean user: type: - string @@ -204319,6 +204325,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: