Skip to content

Commit 6bbb19a

Browse files
authored
Merge pull request #1224 from php-api-clients/GitHub/from-1.1.4-ed9f9c8a528083c4f510bc9ec29e7cbc-from-1.1.4-ed9f9c8a528083c4f510bc9ec29e7cbc
2 parents c28a513 + aaedea4 commit 6bbb19a

File tree

447 files changed

+3150
-779
lines changed

Some content is hidden

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

447 files changed

+3150
-779
lines changed

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

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

clients/GitHub/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⚡️GitHub⚡️Schema⚡️Webh
2071020710
if (is_array($value)) {
2071120711
try {
2071220712
$this->hydrationStack[] = 'repo';
20713-
$value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Base⚡️Repo($value);
20713+
$value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPullRequestAutoMergeEnabled⚡️PullRequest⚡️Head⚡️Repo($value);
2071420714
} finally {
2071520715
array_pop($this->hydrationStack);
2071620716
}
@@ -20741,7 +20741,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh
2074120741
if (is_array($value)) {
2074220742
try {
2074320743
$this->hydrationStack[] = 'user';
20744-
$value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Base⚡️User($value);
20744+
$value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPullRequestAutoMergeEnabled⚡️PullRequest⚡️Head⚡️User($value);
2074520745
} finally {
2074620746
array_pop($this->hydrationStack);
2074720747
}
@@ -21363,7 +21363,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh
2136321363
if (is_array($value)) {
2136421364
try {
2136521365
$this->hydrationStack[] = 'license';
21366-
$value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Base⚡️Repo⚡️License($value);
21366+
$value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPullRequestAutoMergeEnabled⚡️PullRequest⚡️Head⚡️Repo⚡️License($value);
2136721367
} finally {
2136821368
array_pop($this->hydrationStack);
2136921369
}
@@ -21515,7 +21515,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh
2151521515
if (is_array($value)) {
2151621516
try {
2151721517
$this->hydrationStack[] = 'owner';
21518-
$value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Base⚡️Repo⚡️Owner($value);
21518+
$value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPullRequestAutoMergeEnabled⚡️PullRequest⚡️Head⚡️Repo⚡️Owner($value);
2151921519
} finally {
2152021520
array_pop($this->hydrationStack);
2152121521
}
@@ -21535,7 +21535,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh
2153521535
if (is_array($value)) {
2153621536
try {
2153721537
$this->hydrationStack[] = 'permissions';
21538-
$value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Base⚡️Repo⚡️Permissions($value);
21538+
$value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPullRequestAutoMergeEnabled⚡️PullRequest⚡️Head⚡️Repo⚡️Permissions($value);
2153921539
} finally {
2154021540
array_pop($this->hydrationStack);
2154121541
}
@@ -99942,7 +99942,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
9994299942
after_ref: $result['ref'] = $ref;
9994399943

9994499944
$repo = $object->repo;
99945-
$repo = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Base⚡️Repo($repo);
99945+
$repo = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️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⚡️GitHub⚡️Schema
9995499954
goto after_user;
9995599955
}
9995699956

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

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

100193-
$license = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Base⚡️Repo⚡️License($license);
100193+
$license = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️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⚡️GitHub⚡️Schema
100260100260
goto after_owner;
100261100261
}
100262100262

100263-
$owner = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Base⚡️Repo⚡️Owner($owner);
100263+
$owner = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️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⚡️GitHub⚡️Schema
100269100269
goto after_permissions;
100270100270
}
100271100271

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

100275100275
$private = $object->private;

clients/GitHub/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/GitHub/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\GitHub\Internal\Operation\Orgs\AddSecurityManagerTeam($org, $teamSlug);

clients/GitHub/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/GitHub/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/GitHub/src/Operation/Orgs.php

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

531-
/** @return */
532531
public function addSecurityManagerTeam(string $org, string $teamSlug): WithoutBody
533532
{
534533
return $this->operators->orgs👷AddSecurityManagerTeam()->call($org, $teamSlug);

clients/GitHub/src/PHPStan/ClientCallReturnTypes.php

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

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

13501350
if ($call === 'DELETE /orgs/{org}/security-managers/teams/{team_slug}') {

clients/GitHub/src/Schema/AliasAbstract/TietA1A170D3/Tiet6BB4F183/Tiet5A21E86F/Tiet6C397B72.php renamed to clients/GitHub/src/Schema/AliasAbstract/Tiet01453758/Tiet6E98457A/Tiet8F1E61C9/Tiet3FD9A6C4.php

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\GitHub\Schema\AliasAbstract\TietA1A170D3\Tiet6BB4F183\Tiet5A21E86F;
5+
namespace ApiClients\Client\GitHub\Schema\AliasAbstract\Tiet01453758\Tiet6E98457A\Tiet8F1E61C9;
66

77
use ApiClients\Client\GitHub\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"

clients/GitHub/src/Schema/AliasAbstract/TietD0F4187F/Tiet80279EC8/Tiet0EDB1C19/Tiet55CCD6EA.php renamed to clients/GitHub/src/Schema/AliasAbstract/Tiet070CDFA2/TietE9BEF6E9/Tiet0F07A943/Tiet66A40160.php

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\GitHub\Schema\AliasAbstract\TietD0F4187F\Tiet80279EC8\Tiet0EDB1C19;
5+
namespace ApiClients\Client\GitHub\Schema\AliasAbstract\Tiet070CDFA2\TietE9BEF6E9\Tiet0F07A943;
66

77
use ApiClients\Client\GitHub\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)