Skip to content

Commit e532311

Browse files
authored
Merge pull request #887 from php-api-clients/GitHubAE/from-1.1.4-4c5e05b63b9b55649d3117efa99d0e48-from-1.1.4-4c5e05b63b9b55649d3117efa99d0e48
2 parents 7c5f57d + 0e928c4 commit e532311

File tree

281 files changed

+1542
-593
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

281 files changed

+1542
-593
lines changed

clients/GitHubAE/etc/openapi-client-generator.state

Lines changed: 308 additions & 276 deletions
Large diffs are not rendered by default.

clients/GitHubAE/src/Internal/Attribute/CastUnionToType/Schema/SecretScanningLocation/Details.php

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,62 @@ public function cast(mixed $value, ObjectMapper $hydrator): mixed
5252
} catch (Throwable) {
5353
}
5454
}
55+
56+
if ($signature === 'discussion_title_url') {
57+
try {
58+
return $hydrator->hydrateObject(Schema\SecretScanningLocationDiscussionTitle::class, $value);
59+
} catch (Throwable) {
60+
}
61+
}
62+
63+
if ($signature === 'discussion_body_url') {
64+
try {
65+
return $hydrator->hydrateObject(Schema\SecretScanningLocationDiscussionBody::class, $value);
66+
} catch (Throwable) {
67+
}
68+
}
69+
70+
if ($signature === 'discussion_comment_url') {
71+
try {
72+
return $hydrator->hydrateObject(Schema\SecretScanningLocationDiscussionComment::class, $value);
73+
} catch (Throwable) {
74+
}
75+
}
76+
77+
if ($signature === 'pull_request_title_url') {
78+
try {
79+
return $hydrator->hydrateObject(Schema\SecretScanningLocationPullRequestTitle::class, $value);
80+
} catch (Throwable) {
81+
}
82+
}
83+
84+
if ($signature === 'pull_request_body_url') {
85+
try {
86+
return $hydrator->hydrateObject(Schema\SecretScanningLocationPullRequestBody::class, $value);
87+
} catch (Throwable) {
88+
}
89+
}
90+
91+
if ($signature === 'pull_request_comment_url') {
92+
try {
93+
return $hydrator->hydrateObject(Schema\SecretScanningLocationPullRequestComment::class, $value);
94+
} catch (Throwable) {
95+
}
96+
}
97+
98+
if ($signature === 'pull_request_review_url') {
99+
try {
100+
return $hydrator->hydrateObject(Schema\SecretScanningLocationPullRequestReview::class, $value);
101+
} catch (Throwable) {
102+
}
103+
}
104+
105+
if ($signature === 'pull_request_review_comment_url') {
106+
try {
107+
return $hydrator->hydrateObject(Schema\SecretScanningLocationPullRequestReviewComment::class, $value);
108+
} catch (Throwable) {
109+
}
110+
}
55111
}
56112

57113
return $value;

clients/GitHubAE/src/Internal/Hydrator/Operation/Meta.php

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️Ap
340340
$properties['packages'] = $value;
341341

342342
after_packages:
343+
344+
$value = $payload['actions'] ?? null;
345+
346+
if ($value === null) {
347+
$properties['actions'] = null;
348+
goto after_actions;
349+
}
350+
351+
$properties['actions'] = $value;
352+
353+
after_actions:
343354
} catch (Throwable $exception) {
344355
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubAE\Schema\ApiOverview\Domains', $exception, stack: $this->hydrationStack);
345356
}
@@ -735,6 +746,21 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema
735746
$packages = $packagesSerializer0->serialize($packages, $this);
736747
after_packages: $result['packages'] = $packages;
737748

749+
$actions = $object->actions;
750+
751+
if ($actions === null) {
752+
goto after_actions;
753+
}
754+
755+
static $actionsSerializer0;
756+
757+
if ($actionsSerializer0 === null) {
758+
$actionsSerializer0 = new SerializeArrayItems(...[]);
759+
}
760+
761+
$actions = $actionsSerializer0->serialize($actions, $this);
762+
after_actions: $result['actions'] = $actions;
763+
738764
return $result;
739765
}
740766

clients/GitHubAE/src/Internal/Hydrator/WebHook/SecretScanningAlertLocation.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4330,6 +4330,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema
43304330
'ApiClients\Client\GitHubAE\Schema\SecretScanningLocationIssueTitle' => $this->serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️SecretScanningLocationIssueTitle($details),
43314331
'ApiClients\Client\GitHubAE\Schema\SecretScanningLocationIssueBody' => $this->serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️SecretScanningLocationIssueBody($details),
43324332
'ApiClients\Client\GitHubAE\Schema\SecretScanningLocationIssueComment' => $this->serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️SecretScanningLocationIssueComment($details),
4333+
'ApiClients\Client\GitHubAE\Schema\SecretScanningLocationDiscussionTitle' => $this->serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️SecretScanningLocationDiscussionTitle($details),
4334+
'ApiClients\Client\GitHubAE\Schema\SecretScanningLocationDiscussionBody' => $this->serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️SecretScanningLocationDiscussionBody($details),
4335+
'ApiClients\Client\GitHubAE\Schema\SecretScanningLocationDiscussionComment' => $this->serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️SecretScanningLocationDiscussionComment($details),
4336+
'ApiClients\Client\GitHubAE\Schema\SecretScanningLocationPullRequestTitle' => $this->serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️SecretScanningLocationPullRequestTitle($details),
4337+
'ApiClients\Client\GitHubAE\Schema\SecretScanningLocationPullRequestBody' => $this->serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️SecretScanningLocationPullRequestBody($details),
4338+
'ApiClients\Client\GitHubAE\Schema\SecretScanningLocationPullRequestComment' => $this->serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️SecretScanningLocationPullRequestComment($details),
4339+
'ApiClients\Client\GitHubAE\Schema\SecretScanningLocationPullRequestReview' => $this->serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️SecretScanningLocationPullRequestReview($details),
4340+
'ApiClients\Client\GitHubAE\Schema\SecretScanningLocationPullRequestReviewComment' => $this->serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️SecretScanningLocationPullRequestReviewComment($details),
43334341
};
43344342
after_details: $result['details'] = $details;
43354343

clients/GitHubAE/src/Internal/Operator/Repos/CreateDeploymentBranchPolicy.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ public function __construct(private Browser $browser, private AuthenticationInte
2525
{
2626
}
2727

28+
/** @return */
2829
public function call(string $owner, string $repo, string $environmentName, array $params): DeploymentBranchPolicy|WithoutBody
2930
{
3031
$operation = new \ApiClients\Client\GitHubAE\Internal\Operation\Repos\CreateDeploymentBranchPolicy($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $owner, $repo, $environmentName);

clients/GitHubAE/src/Internal/Operator/Repos/CreateForAuthenticatedUser.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ public function __construct(private Browser $browser, private AuthenticationInte
2525
{
2626
}
2727

28+
/** @return */
2829
public function call(array $params): FullRepository|WithoutBody
2930
{
3031
$operation = new \ApiClients\Client\GitHubAE\Internal\Operation\Repos\CreateForAuthenticatedUser($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator);

clients/GitHubAE/src/Internal/Operator/Repos/CreateInOrg.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte
2424
{
2525
}
2626

27+
/** @return */
2728
public function call(string $org, array $params): FullRepository
2829
{
2930
$operation = new \ApiClients\Client\GitHubAE\Internal\Operation\Repos\CreateInOrg($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $org);

clients/GitHubAE/src/Internal/Operator/Repos/CreateOrUpdateEnvironment.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte
2424
{
2525
}
2626

27+
/** @return */
2728
public function call(string $owner, string $repo, string $environmentName, array $params): Environment
2829
{
2930
$operation = new \ApiClients\Client\GitHubAE\Internal\Operation\Repos\CreateOrUpdateEnvironment($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $owner, $repo, $environmentName);

clients/GitHubAE/src/Internal/Operator/Repos/CreateUsingTemplate.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte
2424
{
2525
}
2626

27+
/** @return */
2728
public function call(string $templateOwner, string $templateRepo, array $params): FullRepository
2829
{
2930
$operation = new \ApiClients\Client\GitHubAE\Internal\Operation\Repos\CreateUsingTemplate($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $templateOwner, $templateRepo);

clients/GitHubAE/src/Internal/Operator/Repos/DeleteAnEnvironment.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ public function __construct(private Browser $browser, private AuthenticationInte
2222
{
2323
}
2424

25+
/** @return */
2526
public function call(string $owner, string $repo, string $environmentName): WithoutBody
2627
{
2728
$operation = new \ApiClients\Client\GitHubAE\Internal\Operation\Repos\DeleteAnEnvironment($owner, $repo, $environmentName);

0 commit comments

Comments
 (0)