Skip to content

Commit c28a513

Browse files
authored
Merge pull request #1223 from php-api-clients/GitHubEnterpriseCloud/from-1.1.4-4fef0f9e03cf11aed96c1dfc31630f25-from-1.1.4-4fef0f9e03cf11aed96c1dfc31630f25
2 parents 0c6e6a7 + 2e66bee commit c28a513

File tree

452 files changed

+3159
-784
lines changed

Some content is hidden

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

452 files changed

+3159
-784
lines changed

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

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

clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/PullRequest.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20710,7 +20710,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
2071020710
if (is_array($value)) {
2071120711
try {
2071220712
$this->hydrationStack[] = 'repo';
20713-
$value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Base⚡️Repo($value);
20713+
$value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPullRequestAutoMergeEnabled⚡️PullRequest⚡️Head⚡️Repo($value);
2071420714
} finally {
2071520715
array_pop($this->hydrationStack);
2071620716
}
@@ -20741,7 +20741,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
2074120741
if (is_array($value)) {
2074220742
try {
2074320743
$this->hydrationStack[] = 'user';
20744-
$value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Base⚡️User($value);
20744+
$value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPullRequestAutoMergeEnabled⚡️PullRequest⚡️Head⚡️User($value);
2074520745
} finally {
2074620746
array_pop($this->hydrationStack);
2074720747
}
@@ -21363,7 +21363,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
2136321363
if (is_array($value)) {
2136421364
try {
2136521365
$this->hydrationStack[] = 'license';
21366-
$value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Base⚡️Repo⚡️License($value);
21366+
$value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPullRequestAutoMergeEnabled⚡️PullRequest⚡️Head⚡️Repo⚡️License($value);
2136721367
} finally {
2136821368
array_pop($this->hydrationStack);
2136921369
}
@@ -21515,7 +21515,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
2151521515
if (is_array($value)) {
2151621516
try {
2151721517
$this->hydrationStack[] = 'owner';
21518-
$value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Base⚡️Repo⚡️Owner($value);
21518+
$value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPullRequestAutoMergeEnabled⚡️PullRequest⚡️Head⚡️Repo⚡️Owner($value);
2151921519
} finally {
2152021520
array_pop($this->hydrationStack);
2152121521
}
@@ -21535,7 +21535,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
2153521535
if (is_array($value)) {
2153621536
try {
2153721537
$this->hydrationStack[] = 'permissions';
21538-
$value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Base⚡️Repo⚡️Permissions($value);
21538+
$value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPullRequestAutoMergeEnabled⚡️PullRequest⚡️Head⚡️Repo⚡️Permissions($value);
2153921539
} finally {
2154021540
array_pop($this->hydrationStack);
2154121541
}
@@ -99942,7 +99942,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou
9994299942
after_ref: $result['ref'] = $ref;
9994399943

9994499944
$repo = $object->repo;
99945-
$repo = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Base⚡️Repo($repo);
99945+
$repo = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPullRequestAutoMergeEnabled⚡️PullRequest⚡️Head⚡️Repo($repo);
9994699946
after_repo: $result['repo'] = $repo;
9994799947

9994899948
$sha = $object->sha;
@@ -99954,7 +99954,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou
9995499954
goto after_user;
9995599955
}
9995699956

99957-
$user = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Base⚡️User($user);
99957+
$user = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPullRequestAutoMergeEnabled⚡️PullRequest⚡️Head⚡️User($user);
9995899958
after_user: $result['user'] = $user;
9995999959

9996099960
return $result;
@@ -100190,7 +100190,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou
100190100190
goto after_license;
100191100191
}
100192100192

100193-
$license = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Base⚡️Repo⚡️License($license);
100193+
$license = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPullRequestAutoMergeEnabled⚡️PullRequest⚡️Head⚡️Repo⚡️License($license);
100194100194
after_license: $result['license'] = $license;
100195100195

100196100196
$masterBranch = $object->masterBranch;
@@ -100260,7 +100260,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou
100260100260
goto after_owner;
100261100261
}
100262100262

100263-
$owner = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Base⚡️Repo⚡️Owner($owner);
100263+
$owner = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPullRequestAutoMergeEnabled⚡️PullRequest⚡️Head⚡️Repo⚡️Owner($owner);
100264100264
after_owner: $result['owner'] = $owner;
100265100265

100266100266
$permissions = $object->permissions;
@@ -100269,7 +100269,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou
100269100269
goto after_permissions;
100270100270
}
100271100271

100272-
$permissions = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Base⚡️Repo⚡️Permissions($permissions);
100272+
$permissions = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPullRequestAutoMergeEnabled⚡️PullRequest⚡️Head⚡️Repo⚡️Permissions($permissions);
100273100273
after_permissions: $result['permissions'] = $permissions;
100274100274

100275100275
$private = $object->private;

clients/GitHubEnterpriseCloud/src/Internal/Operation/Orgs/AddSecurityManagerTeam.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,6 @@ public function createResponse(ResponseInterface $response): WithoutBody
4141
**/
4242
case 204:
4343
return new WithoutBody(204, []);
44-
/**
45-
* The organization has reached the maximum number of security manager teams.
46-
**/
47-
48-
case 409:
49-
return new WithoutBody(409, []);
5044
}
5145

5246
throw new RuntimeException('Unable to find matching response code and content type');

clients/GitHubEnterpriseCloud/src/Internal/Operator/Orgs/AddSecurityManagerTeam.php

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

25-
/** @return */
2625
public function call(string $org, string $teamSlug): WithoutBody
2726
{
2827
$operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\Orgs\AddSecurityManagerTeam($org, $teamSlug);

clients/GitHubEnterpriseCloud/src/Internal/Router/Put/Orgs.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,6 @@ public function createOrUpdateCustomProperty(array $params): OrgCustomProperty
181181
return $operator->call($arguments['org'], $arguments['custom_property_name'], $params);
182182
}
183183

184-
/** @return */
185184
public function addSecurityManagerTeam(array $params): WithoutBody
186185
{
187186
$arguments = [];

clients/GitHubEnterpriseCloud/src/Internal/Router/Put/Six.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ public function __construct(private Routers $routers)
2020
{
2121
}
2222

23+
/** @return |\ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody */
2324
public function call(string $call, array $params, array $pathChunks): WithoutBody|EmptyObject|OrgCustomProperty|RepositoryInvitation|FileCommit|Environment|RepositoryRuleset
2425
{
2526
if ($pathChunks[0] === '') {

clients/GitHubEnterpriseCloud/src/Operation/Orgs.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,6 @@ public function listSecurityManagerTeams(string $org): iterable
625625
return $this->operators->orgs👷ListSecurityManagerTeams()->call($org);
626626
}
627627

628-
/** @return */
629628
public function addSecurityManagerTeam(string $org, string $teamSlug): WithoutBody
630629
{
631630
return $this->operators->orgs👷AddSecurityManagerTeam()->call($org, $teamSlug);

clients/GitHubEnterpriseCloud/src/PHPStan/ClientCallReturnTypes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1712,7 +1712,7 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method
17121712
}
17131713

17141714
if ($call === 'PUT /orgs/{org}/security-managers/teams/{team_slug}') {
1715-
return $this->typeResolver->resolve('');
1715+
return $this->typeResolver->resolve('\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody');
17161716
}
17171717

17181718
if ($call === 'DELETE /orgs/{org}/security-managers/teams/{team_slug}') {
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
declare(strict_types=1);
44

5-
namespace ApiClients\Client\GitHubEnterpriseCloud\Schema\AliasAbstract\TietA1A170D3\Tiet6BB4F183\Tiet5A21E86F;
5+
namespace ApiClients\Client\GitHubEnterpriseCloud\Schema\AliasAbstract\Tiet01453758\Tiet6E98457A\Tiet8F1E61C9;
66

77
use ApiClients\Client\GitHubEnterpriseCloud\Schema;
88

9-
abstract readonly class Tiet6C397B72
9+
abstract readonly class Tiet3FD9A6C4
1010
{
1111
public const SCHEMA_JSON = '{
1212
"required": [
@@ -305,7 +305,8 @@
305305
},
306306
"id": {
307307
"type": "integer",
308-
"description": "Unique identifier of the repository"
308+
"description": "Unique identifier of the repository",
309+
"format": "int64"
309310
},
310311
"is_template": {
311312
"type": "boolean"
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
declare(strict_types=1);
44

5-
namespace ApiClients\Client\GitHubEnterpriseCloud\Schema\AliasAbstract\TietD0F4187F\Tiet80279EC8\Tiet0EDB1C19;
5+
namespace ApiClients\Client\GitHubEnterpriseCloud\Schema\AliasAbstract\Tiet070CDFA2\TietE9BEF6E9\Tiet0F07A943;
66

77
use ApiClients\Client\GitHubEnterpriseCloud\Schema;
88
use EventSauce\ObjectHydrator\MapFrom;
99

10-
abstract readonly class Tiet55CCD6EA
10+
abstract readonly class Tiet66A40160
1111
{
1212
public const SCHEMA_JSON = '{
1313
"title": "Repository",
@@ -284,7 +284,8 @@
284284
},
285285
"id": {
286286
"type": "integer",
287-
"description": "Unique identifier of the repository"
287+
"description": "Unique identifier of the repository",
288+
"format": "int64"
288289
},
289290
"is_template": {
290291
"type": "boolean"

0 commit comments

Comments
 (0)