Skip to content

[GitHub] Update to 1.1.4-165dc4edaf3899f8fa74f18ab70adbb6 from 1.1.4-7b81f53085c7eb703517cc9edd6bed5e #1183

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions clients/GitHub/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21553,7 +21553,7 @@ You can find more about this operation over at the [API method documentation](ht

### repos/list-tag-protection

List tag protection states for a repository
Deprecated - List tag protection states for a repository

Using the `call` method:
```php
Expand All @@ -21570,12 +21570,12 @@ $client->operations()->repos()->listTagProtection( owner: 'generated',
);
```

You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/repos/tags#list-tag-protection-states-for-a-repository).
You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/repos/tags#deprecated---list-tag-protection-states-for-a-repository).


### repos/create-tag-protection

Create a tag protection state for a repository
Deprecated - Create a tag protection state for a repository

Using the `call` method:
```php
Expand All @@ -21592,12 +21592,12 @@ $client->operations()->repos()->createTagProtection( owner: 'generated',
);
```

You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/repos/tags#create-a-tag-protection-state-for-a-repository).
You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/repos/tags#deprecated---create-a-tag-protection-state-for-a-repository).


### repos/delete-tag-protection

Delete a tag protection state for a repository
Deprecated - Delete a tag protection state for a repository

Using the `call` method:
```php
Expand All @@ -21616,7 +21616,7 @@ $client->operations()->repos()->deleteTagProtection( owner: 'generated',
);
```

You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/repos/tags#delete-a-tag-protection-state-for-a-repository).
You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/repos/tags#deprecated---delete-a-tag-protection-state-for-a-repository).


### repos/download-tarball-archive
Expand Down
14 changes: 5 additions & 9 deletions clients/GitHub/etc/openapi-client-generator.state
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"specHash": "7b81f53085c7eb703517cc9edd6bed5e",
"specHash": "165dc4edaf3899f8fa74f18ab70adbb6",
"generatedFiles": {
"files": [
{
Expand Down Expand Up @@ -1780,7 +1780,7 @@
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookFork.php",
"hash": "219d173d08eed559835d437d5e781949"
"hash": "149c23f333a44134601e9d7075e06671"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookGithubAppAuthorizationRevoked.php",
Expand Down Expand Up @@ -3488,7 +3488,7 @@
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookFork\/Forkee.php",
"hash": "e1aa0765ec72888ffd864ec2417e748a"
"hash": "005633dcb3201975a6f12481234f7c3f"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookFork\/Forkee\/License.php",
Expand Down Expand Up @@ -27236,7 +27236,7 @@
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrators.php",
"hash": "99249ec5532c0e46a08937acb5501da3"
"hash": "f8a62fdffbd42820e452155cf51ca62f"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/OrganizationSimpleWebhooks.php",
Expand Down Expand Up @@ -27782,10 +27782,6 @@
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet822B8B83\/Tiet93E9FF34\/Tiet64571DFE\/Tiet4D2FA622.php",
"hash": "04a6477eb2edebc4797b68dc827857e2"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookFork\/Forkee\/CustomProperties.php",
"hash": "103d90f7b9368728a7cc4b2348bc9797"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesOpened\/Changes\/OldRepository\/CustomProperties.php",
"hash": "c80cb58f8a896af192bbf5644a78c021"
Expand Down Expand Up @@ -28236,7 +28232,7 @@
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Fork.php",
"hash": "a967f1db50c975232fad5125c8964d5c"
"hash": "926cc24d71e6c029fb051ac43336576d"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/GithubAppAuthorization.php",
Expand Down
56 changes: 3 additions & 53 deletions clients/GitHub/src/Internal/Hydrator/WebHook/Fork.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
use ApiClients\Client\GitHub\Schema\LicenseSimple;
use ApiClients\Client\GitHub\Schema\OrganizationSimpleWebhooks;
use ApiClients\Client\GitHub\Schema\RepositoryWebhooks;
use ApiClients\Client\GitHub\Schema\RepositoryWebhooks\CustomProperties;
use ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository;
use ApiClients\Client\GitHub\Schema\SimpleInstallation;
use ApiClients\Client\GitHub\Schema\SimpleUser;
use ApiClients\Client\GitHub\Schema\SimpleUserWebhooks;
use ApiClients\Client\GitHub\Schema\WebhookFork;
use ApiClients\Client\GitHub\Schema\WebhookFork\Forkee;
use ApiClients\Client\GitHub\Schema\WebhookFork\Forkee\CustomProperties;
use ApiClients\Client\GitHub\Schema\WebhookFork\Forkee\License;
use ApiClients\Client\GitHub\Schema\WebhookFork\Forkee\Owner;
use ApiClients\Client\GitHub\Schema\WebhookFork\Forkee\Permissions;
Expand Down Expand Up @@ -69,7 +69,6 @@ public function hydrateObject(string $className, array $payload): object
'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($payload),
'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload),
'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload),
'ApiClients\Client\GitHub\Schema\WebhookFork\Forkee\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookFork⚡️Forkee⚡️CustomProperties($payload),
'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($payload),
default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack),
};
Expand Down Expand Up @@ -557,26 +556,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh

after_createdAt:

$value = $payload['custom_properties'] ?? null;

if ($value === null) {
$properties['customProperties'] = null;
goto after_customProperties;
}

if (is_array($value)) {
try {
$this->hydrationStack[] = 'customProperties';
$value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookFork⚡️Forkee⚡️CustomProperties($value);
} finally {
array_pop($this->hydrationStack);
}
}

$properties['customProperties'] = $value;

after_customProperties:

$value = $payload['default_branch'] ?? null;

if ($value === null) {
Expand Down Expand Up @@ -5106,13 +5085,13 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Simp
}
}

private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookFork⚡️Forkee⚡️CustomProperties(array $payload): CustomProperties
private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties(array $payload): CustomProperties
{
$properties = [];
$missingFields = [];
try {
} catch (Throwable $exception) {
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\WebhookFork\Forkee\CustomProperties', $exception, stack: $this->hydrationStack);
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\RepositoryWebhooks\CustomProperties', $exception, stack: $this->hydrationStack);
}

if (count($missingFields) > 0) {
Expand All @@ -5121,26 +5100,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh

try {
return new CustomProperties(...$properties);
} catch (Throwable $exception) {
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\WebhookFork\Forkee\CustomProperties', $exception, stack: $this->hydrationStack);
}
}

private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties(array $payload): \ApiClients\Client\GitHub\Schema\RepositoryWebhooks\CustomProperties
{
$properties = [];
$missingFields = [];
try {
} catch (Throwable $exception) {
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\RepositoryWebhooks\CustomProperties', $exception, stack: $this->hydrationStack);
}

if (count($missingFields) > 0) {
throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\GitHub\Schema\RepositoryWebhooks\CustomProperties::class, $missingFields, stack: $this->hydrationStack);
}

try {
return new \ApiClients\Client\GitHub\Schema\RepositoryWebhooks\CustomProperties(...$properties);
} catch (Throwable $exception) {
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\RepositoryWebhooks\CustomProperties', $exception, stack: $this->hydrationStack);
}
Expand Down Expand Up @@ -5452,15 +5411,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
$createdAt = $object->createdAt;
after_createdAt: $result['created_at'] = $createdAt;

$customProperties = $object->customProperties;

if ($customProperties === null) {
goto after_customProperties;
}

$customProperties = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookFork⚡️Forkee⚡️CustomProperties($customProperties);
after_customProperties: $result['custom_properties'] = $customProperties;

$defaultBranch = $object->defaultBranch;
after_defaultBranch: $result['default_branch'] = $defaultBranch;

Expand Down
Loading
Loading