diff --git a/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state b/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state index 466179b6edd..0ebde65c9f3 100644 --- a/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state +++ b/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state @@ -1,5 +1,5 @@ { - "specHash": "1e75d6425ed4e4aae7d5a75047e1095c", + "specHash": "041810bc991810fa97b34eae71cba9ac", "generatedFiles": { "files": [ { @@ -52,7 +52,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/HookDeliveryItem.php", - "hash": "c7b80e781c190dfb3ab7828352aa3df8" + "hash": "b2613c3f77da7c9551e96c47342fcc71" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/ScimError.php", @@ -72,7 +72,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/HookDelivery.php", - "hash": "183e07d14181382391ce1f8b7dbfb892" + "hash": "2ac3b6c4675f2b98df7453b3a626a56b" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Enterprise.php", @@ -5984,7 +5984,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Repos.php", - "hash": "45b5ecd6f7e191ea93d6a89563cd57bf" + "hash": "ea53d5900ef20eeca40759702d1d7333" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Reactions.php", @@ -6008,7 +6008,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Pulls.php", - "hash": "195c50db109fb94083e2cc1d7d0903a1" + "hash": "de2c25c9cb75e3ac17a7889ad5296a73" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/SecurityAdvisories.php", @@ -22032,7 +22032,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Pulls\/Get.php", - "hash": "e2b45b79358b41962e580a172359cde7" + "hash": "3cf2d689f271c48968cfa819c67655d7" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Pulls\/GetTest.php", @@ -26240,7 +26240,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Pulls.php", - "hash": "99d6a711d7f91b5c5b286d72e3ea828c" + "hash": "02b07d628ac64e573f60f753c10960dd" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Billing.php", @@ -26728,7 +26728,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Six.php", - "hash": "1cef6ff39abe5e8e2b67bf2e0e259b54" + "hash": "28c7d64a38f9ae61536e5ff3af0ea112" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Seven.php", @@ -26964,7 +26964,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/App\/Hook\/Deliveries\/DeliveryId.php", - "hash": "d25230005c132cf9560267b297bc952f" + "hash": "60e7d01819dc6b010bf608a39c80e130" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/App\/Hook\/Deliveries\/DeliveryId\/Attempts.php", @@ -27464,7 +27464,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Hooks\/HookId\/Deliveries\/DeliveryId.php", - "hash": "564f687db19e800b94d81ccb3a240ecc" + "hash": "33ede7be074b6b474f82cb429208215b" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Hooks\/HookId\/Deliveries\/DeliveryId\/Attempts.php", @@ -28312,7 +28312,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Hooks\/HookId\/Deliveries\/DeliveryId.php", - "hash": "d73eb986195dda5530f3e5fada8f25c5" + "hash": "915bd75a10bdea9946c166394532c048" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Hooks\/HookId\/Deliveries\/DeliveryId\/Attempts.php", @@ -29952,11 +29952,11 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php", - "hash": "60a4ffcd33ebdd26952492229d3c5366" + "hash": "9804e3abd8d57ebf2ca49444b94a2844" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php", - "hash": "2761e873802b9bc95ac726085f88df59" + "hash": "cc212d9689dac720d02ca8d739e5fbed" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon", diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/App/Hook/Deliveries/DeliveryId.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/App/Hook/Deliveries/DeliveryId.php index 1918e8b1420..19327e2b27a 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/App/Hook/Deliveries/DeliveryId.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/App/Hook/Deliveries/DeliveryId.php @@ -186,6 +186,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_repositoryId: + $value = $payload['throttled_at'] ?? null; + + if ($value === null) { + $properties['throttledAt'] = null; + goto after_throttledAt; + } + + $properties['throttledAt'] = $value; + + after_throttledAt: + $value = $payload['url'] ?? null; if ($value === null) { @@ -772,6 +783,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repositoryId: $result['repository_id'] = $repositoryId; + $throttledAt = $object->throttledAt; + + if ($throttledAt === null) { + goto after_throttledAt; + } + + after_throttledAt: $result['throttled_at'] = $throttledAt; + $url = $object->url; if ($url === null) { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/Hooks/HookId/Deliveries/DeliveryId.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/Hooks/HookId/Deliveries/DeliveryId.php index cd817713183..6aaa9f7cfa3 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/Hooks/HookId/Deliveries/DeliveryId.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/Hooks/HookId/Deliveries/DeliveryId.php @@ -186,6 +186,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_repositoryId: + $value = $payload['throttled_at'] ?? null; + + if ($value === null) { + $properties['throttledAt'] = null; + goto after_throttledAt; + } + + $properties['throttledAt'] = $value; + + after_throttledAt: + $value = $payload['url'] ?? null; if ($value === null) { @@ -772,6 +783,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repositoryId: $result['repository_id'] = $repositoryId; + $throttledAt = $object->throttledAt; + + if ($throttledAt === null) { + goto after_throttledAt; + } + + after_throttledAt: $result['throttled_at'] = $throttledAt; + $url = $object->url; if ($url === null) { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Hooks/HookId/Deliveries/DeliveryId.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Hooks/HookId/Deliveries/DeliveryId.php index 622c1138a87..01b26698042 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Hooks/HookId/Deliveries/DeliveryId.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Hooks/HookId/Deliveries/DeliveryId.php @@ -186,6 +186,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_repositoryId: + $value = $payload['throttled_at'] ?? null; + + if ($value === null) { + $properties['throttledAt'] = null; + goto after_throttledAt; + } + + $properties['throttledAt'] = $value; + + after_throttledAt: + $value = $payload['url'] ?? null; if ($value === null) { @@ -772,6 +783,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repositoryId: $result['repository_id'] = $repositoryId; + $throttledAt = $object->throttledAt; + + if ($throttledAt === null) { + goto after_throttledAt; + } + + after_throttledAt: $result['throttled_at'] = $throttledAt; + $url = $object->url; if ($url === null) { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Pulls/Get.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Pulls/Get.php index 248f09ebb11..478c105066d 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Pulls/Get.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Pulls/Get.php @@ -25,6 +25,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } + /** @return */ public function call(string $owner, string $repo, int $pullNumber): PullRequest|WithoutBody { $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\Pulls\Get($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $pullNumber); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Pulls.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Pulls.php index c3a0a2dcb0e..3e8d98b9083 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Pulls.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Pulls.php @@ -138,6 +138,7 @@ public function listReviewCommentsForRepo(array $params): iterable return $operator->call($arguments['owner'], $arguments['repo'], $arguments['sort'], $arguments['direction'], $arguments['since'], $arguments['per_page'], $arguments['page']); } + /** @return */ public function get(array $params): PullRequest|WithoutBody { $arguments = []; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Six.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Six.php index 61f27d11533..899576160cc 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Six.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Six.php @@ -80,7 +80,7 @@ public function __construct(private Routers $routers) { } - /** @return |Observable|Observable|Observable|Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\PullRequest|\ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody|Observable|Observable|Observable|Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Observable|Observable|Observable|Observable */ + /** @return |Observable|Observable|Observable|Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): ActionsCacheUsageOrgEnterprise|Ok|SelectedActions|ActionsGetDefaultWorkflowPermissions|RunnerGroupsEnterprise|iterable|Runner|ActionsBillingUsage|AdvancedSecurityActiveCommitters|PackagesBillingUsage|CombinedBillingUsage|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetActionsCacheUsageByRepoForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelectedRepositoriesEnabledGithubActionsOrganization\Response\ApplicationJson\Ok|RunnerGroupsOrg|ActionsPublicKey|OrganizationActionsSecret|OrganizationActionsVariable|CodespacesPublicKey|CodespacesOrgSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\ListCopilotSeats\Response\ApplicationJson\Ok|DependabotPublicKey|OrganizationDependabotSecret|WebhookConfig|Json|WithoutBody|CopilotSeatDetails|Package|OrgCustomProperty|RuleSuite|ExternalGroups|ProjectCollaboratorPermission|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListArtifactsForRepo\Response\ApplicationJson\Ok|ActionsCacheList|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoOrganizationSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoOrganizationVariables\Response\ApplicationJson\Ok|ActionsRepositoryPermissions|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelfHostedRunnersForRepo\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListWorkflowRunsForRepo\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoVariables\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoWorkflows\Response\ApplicationJson\Ok|Autolink|BranchWithProtection|BasicError|CheckRun|CheckSuite|CodeScanningDefaultSetup|CodeownersErrors|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListDevcontainersInRepositoryForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\RepoMachinesForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\PreFlightWithRepoForAuthenticatedUser\Response\ApplicationJson\Ok|CodespacesPermissionsCheckForDevcontainer|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListRepoSecrets\Response\ApplicationJson\Ok|CommitComment|Commit|CommunityProfile|CommitComparison|ContentDirectory|ContentFile|ContentSymlink|ContentSubmodule|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Dependabot\ListRepoSecrets\Response\ApplicationJson\Ok|DependencyGraphSpdxSbom|Deployment|Environment|Hook|Issue|DeployKey|Label|Milestone|PagesHealthCheck|EmptyObject|PullRequest|Release|RepositoryRuleset|RepositoryAdvisory|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|ParticipationStats|CloneTraffic|ViewTraffic|ScimEnterpriseGroupList|ScimEnterpriseUserList|ScimUserList|TeamRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListRepositoriesForSecretForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|CodespaceExportDetails { if ($pathChunks[0] === '') { diff --git a/clients/GitHubEnterpriseCloud/src/Operation/Pulls.php b/clients/GitHubEnterpriseCloud/src/Operation/Pulls.php index a2928178958..a32e0ec6b0f 100644 --- a/clients/GitHubEnterpriseCloud/src/Operation/Pulls.php +++ b/clients/GitHubEnterpriseCloud/src/Operation/Pulls.php @@ -69,6 +69,7 @@ public function updateReviewComment(string $owner, string $repo, int $commentId, return $this->operators->pulls👷UpdateReviewComment()->call($owner, $repo, $commentId, $params); } + /** @return */ public function get(string $owner, string $repo, int $pullNumber): PullRequest|WithoutBody { return $this->operators->pulls👷Get()->call($owner, $repo, $pullNumber); diff --git a/clients/GitHubEnterpriseCloud/src/PHPStan/ClientCallReturnTypes.php b/clients/GitHubEnterpriseCloud/src/PHPStan/ClientCallReturnTypes.php index ff1eb5a5acf..eba7f00c20a 100644 --- a/clients/GitHubEnterpriseCloud/src/PHPStan/ClientCallReturnTypes.php +++ b/clients/GitHubEnterpriseCloud/src/PHPStan/ClientCallReturnTypes.php @@ -3568,7 +3568,7 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'GET /repos/{owner}/{repo}/pulls/{pull_number}') { - return $this->typeResolver->resolve('Schema\\PullRequest|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody'); + return $this->typeResolver->resolve(''); } if ($call === 'PATCH /repos/{owner}/{repo}/pulls/{pull_number}') { diff --git a/clients/GitHubEnterpriseCloud/src/Schema/HookDelivery.php b/clients/GitHubEnterpriseCloud/src/Schema/HookDelivery.php index c701f1abf14..06da45e5f58 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/HookDelivery.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/HookDelivery.php @@ -115,6 +115,17 @@ 123 ] }, + "throttled_at": { + "type": [ + "string", + "null" + ], + "description": "Time when the webhook delivery was throttled.", + "format": "date-time", + "examples": [ + "2021-05-12T20:33:44Z" + ] + }, "url": { "type": "string", "description": "The URL target of the delivery.", @@ -189,6 +200,7 @@ "action": "opened", "installation_id": 123, "repository_id": 123, + "throttled_at": "2021-05-12T20:33:44Z", "url": "https:\\/\\/www.example.com", "request": { "headers": [], @@ -212,13 +224,15 @@ * action: The type of activity for the event that triggered the delivery. * installationId: The id of the GitHub App installation associated with this event. * repositoryId: The id of the repository associated with this event. + * throttledAt: Time when the webhook delivery was throttled. * url: The URL target of the delivery. */ public function __construct(public int $id, public string $guid, #[MapFrom('delivered_at')] public string $deliveredAt, public bool $redelivery, public int|float $duration, public string $status, #[MapFrom('status_code')] public int $statusCode, public string $event, public string|null $action, #[MapFrom('installation_id')] public int|null $installationId, #[MapFrom('repository_id')] - public int|null $repositoryId, public string|null $url, public Schema\HookDelivery\Request $request, public Schema\HookDelivery\Response $response,) + public int|null $repositoryId, #[MapFrom('throttled_at')] + public string|null $throttledAt, public string|null $url, public Schema\HookDelivery\Request $request, public Schema\HookDelivery\Response $response,) { } } diff --git a/clients/GitHubEnterpriseCloud/src/Schema/HookDeliveryItem.php b/clients/GitHubEnterpriseCloud/src/Schema/HookDeliveryItem.php index d7e748c4830..93496b3d11c 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/HookDeliveryItem.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/HookDeliveryItem.php @@ -111,6 +111,17 @@ "examples": [ 123 ] + }, + "throttled_at": { + "type": [ + "string", + "null" + ], + "description": "Time when the webhook delivery was throttled.", + "format": "date-time", + "examples": [ + "2021-05-12T20:33:44Z" + ] } }, "description": "Delivery made by a webhook, without request and response information." @@ -128,7 +139,8 @@ "event": "issues", "action": "opened", "installation_id": 123, - "repository_id": 123 + "repository_id": 123, + "throttled_at": "2021-05-12T20:33:44Z" }'; /** @@ -143,12 +155,14 @@ * action: The type of activity for the event that triggered the delivery. * installationId: The id of the GitHub App installation associated with this event. * repositoryId: The id of the repository associated with this event. + * throttledAt: Time when the webhook delivery was throttled. */ public function __construct(public int $id, public string $guid, #[MapFrom('delivered_at')] public string $deliveredAt, public bool $redelivery, public int|float $duration, public string $status, #[MapFrom('status_code')] public int $statusCode, public string $event, public string|null $action, #[MapFrom('installation_id')] public int|null $installationId, #[MapFrom('repository_id')] - public int|null $repositoryId,) + public int|null $repositoryId, #[MapFrom('throttled_at')] + public string|null $throttledAt,) { } } diff --git a/clients/GitHubEnterpriseCloud/tests/Types/ClientCallReturnTypes.php b/clients/GitHubEnterpriseCloud/tests/Types/ClientCallReturnTypes.php index c2b70008938..b22a0b6d98d 100644 --- a/clients/GitHubEnterpriseCloud/tests/Types/ClientCallReturnTypes.php +++ b/clients/GitHubEnterpriseCloud/tests/Types/ClientCallReturnTypes.php @@ -898,7 +898,7 @@ function authHeader(): string assertType('Observable', $client->call('LIST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions')); assertType('', $client->call('POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions')); assertType('', $client->call('DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}')); -assertType('Schema\\PullRequest|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody', $client->call('GET /repos/{owner}/{repo}/pulls/{pull_number}')); +assertType('', $client->call('GET /repos/{owner}/{repo}/pulls/{pull_number}')); assertType('', $client->call('PATCH /repos/{owner}/{repo}/pulls/{pull_number}')); assertType('', $client->call('POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces')); assertType('Observable', $client->call('GET /repos/{owner}/{repo}/pulls/{pull_number}/comments')); diff --git a/etc/specs/GitHubEnterpriseCloud/current.spec.yaml b/etc/specs/GitHubEnterpriseCloud/current.spec.yaml index 96720832793..e08b6fdfd00 100644 --- a/etc/specs/GitHubEnterpriseCloud/current.spec.yaml +++ b/etc/specs/GitHubEnterpriseCloud/current.spec.yaml @@ -68297,6 +68297,14 @@ components: - 'null' examples: - 123 + throttled_at: + description: Time when the webhook delivery was throttled. + type: + - string + - 'null' + format: date-time + examples: + - '2021-05-12T20:33:44Z' required: - id - guid @@ -68447,6 +68455,14 @@ components: - 'null' examples: - 123 + throttled_at: + description: Time when the webhook delivery was throttled. + type: + - string + - 'null' + format: date-time + examples: + - '2021-05-12T20:33:44Z' url: description: The URL target of the delivery. type: string @@ -200742,6 +200758,7 @@ components: action: opened installation_id: 123 repository_id: 456 + throttled_at: '2019-06-03T00:57:16Z' - id: 123456789 guid: 0b989ba4-242f-11e5-81e1-c7b6966d2516 delivered_at: '2019-06-04T00:57:16Z' @@ -200753,6 +200770,7 @@ components: action: opened installation_id: 123 repository_id: 456 + throttled_at: hook-delivery: value: id: 12345678 @@ -200767,6 +200785,7 @@ components: installation_id: 123 repository_id: 456 url: https://www.example.com + throttled_at: '2019-06-03T00:57:16Z' request: headers: X-GitHub-Delivery: 0b989ba4-242f-11e5-81e1-c7b6966d2516