Skip to content

[GitHub] Update to 1.1.4-ed9f9c8a528083c4f510bc9ec29e7cbc from 1.1.4-81b4fcdf6c7b3f61c17f56a0c4f2231d #1224

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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
966 changes: 483 additions & 483 deletions clients/GitHub/etc/openapi-client-generator.state

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions clients/GitHub/src/Internal/Hydrator/WebHook/PullRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20710,7 +20710,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh
if (is_array($value)) {
try {
$this->hydrationStack[] = 'repo';
$value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Base⚡️Repo($value);
$value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPullRequestAutoMergeEnabled⚡️PullRequest⚡️Head⚡️Repo($value);
} finally {
array_pop($this->hydrationStack);
}
Expand Down Expand Up @@ -20741,7 +20741,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh
if (is_array($value)) {
try {
$this->hydrationStack[] = 'user';
$value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Base⚡️User($value);
$value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPullRequestAutoMergeEnabled⚡️PullRequest⚡️Head⚡️User($value);
} finally {
array_pop($this->hydrationStack);
}
Expand Down Expand Up @@ -21363,7 +21363,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh
if (is_array($value)) {
try {
$this->hydrationStack[] = 'license';
$value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Base⚡️Repo⚡️License($value);
$value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPullRequestAutoMergeEnabled⚡️PullRequest⚡️Head⚡️Repo⚡️License($value);
} finally {
array_pop($this->hydrationStack);
}
Expand Down Expand Up @@ -21515,7 +21515,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh
if (is_array($value)) {
try {
$this->hydrationStack[] = 'owner';
$value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Base⚡️Repo⚡️Owner($value);
$value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPullRequestAutoMergeEnabled⚡️PullRequest⚡️Head⚡️Repo⚡️Owner($value);
} finally {
array_pop($this->hydrationStack);
}
Expand All @@ -21535,7 +21535,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh
if (is_array($value)) {
try {
$this->hydrationStack[] = 'permissions';
$value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Base⚡️Repo⚡️Permissions($value);
$value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPullRequestAutoMergeEnabled⚡️PullRequest⚡️Head⚡️Repo⚡️Permissions($value);
} finally {
array_pop($this->hydrationStack);
}
Expand Down Expand Up @@ -99942,7 +99942,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
after_ref: $result['ref'] = $ref;

$repo = $object->repo;
$repo = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Base⚡️Repo($repo);
$repo = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPullRequestAutoMergeEnabled⚡️PullRequest⚡️Head⚡️Repo($repo);
after_repo: $result['repo'] = $repo;

$sha = $object->sha;
Expand All @@ -99954,7 +99954,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
goto after_user;
}

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

return $result;
Expand Down Expand Up @@ -100190,7 +100190,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
goto after_license;
}

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

$masterBranch = $object->masterBranch;
Expand Down Expand Up @@ -100260,7 +100260,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
goto after_owner;
}

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

$permissions = $object->permissions;
Expand All @@ -100269,7 +100269,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
goto after_permissions;
}

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

$private = $object->private;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,6 @@ public function createResponse(ResponseInterface $response): WithoutBody
**/
case 204:
return new WithoutBody(204, []);
/**
* The organization has reached the maximum number of security manager teams.
**/

case 409:
return new WithoutBody(409, []);
}

throw new RuntimeException('Unable to find matching response code and content type');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ public function __construct(private Browser $browser, private AuthenticationInte
{
}

/** @return */
public function call(string $org, string $teamSlug): WithoutBody
{
$operation = new \ApiClients\Client\GitHub\Internal\Operation\Orgs\AddSecurityManagerTeam($org, $teamSlug);
Expand Down
1 change: 0 additions & 1 deletion clients/GitHub/src/Internal/Router/Put/Orgs.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@ public function createOrUpdateCustomProperty(array $params): OrgCustomProperty
return $operator->call($arguments['org'], $arguments['custom_property_name'], $params);
}

/** @return */
public function addSecurityManagerTeam(array $params): WithoutBody
{
$arguments = [];
Expand Down
1 change: 1 addition & 0 deletions clients/GitHub/src/Internal/Router/Put/Six.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public function __construct(private Routers $routers)
{
}

/** @return |\ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody */
public function call(string $call, array $params, array $pathChunks): WithoutBody|EmptyObject|OrgCustomProperty|RepositoryInvitation|FileCommit|Environment|RepositoryRuleset
{
if ($pathChunks[0] === '') {
Expand Down
1 change: 0 additions & 1 deletion clients/GitHub/src/Operation/Orgs.php
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,6 @@ public function listSecurityManagerTeams(string $org): iterable
return $this->operators->orgs👷ListSecurityManagerTeams()->call($org);
}

/** @return */
public function addSecurityManagerTeam(string $org, string $teamSlug): WithoutBody
{
return $this->operators->orgs👷AddSecurityManagerTeam()->call($org, $teamSlug);
Expand Down
2 changes: 1 addition & 1 deletion clients/GitHub/src/PHPStan/ClientCallReturnTypes.php
Original file line number Diff line number Diff line change
Expand Up @@ -1344,7 +1344,7 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method
}

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

if ($call === 'DELETE /orgs/{org}/security-managers/teams/{team_slug}') {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

declare(strict_types=1);

namespace ApiClients\Client\GitHub\Schema\AliasAbstract\TietA1A170D3\Tiet6BB4F183\Tiet5A21E86F;
namespace ApiClients\Client\GitHub\Schema\AliasAbstract\Tiet01453758\Tiet6E98457A\Tiet8F1E61C9;

use ApiClients\Client\GitHub\Schema;

abstract readonly class Tiet6C397B72
abstract readonly class Tiet3FD9A6C4
{
public const SCHEMA_JSON = '{
"required": [
Expand Down Expand Up @@ -305,7 +305,8 @@
},
"id": {
"type": "integer",
"description": "Unique identifier of the repository"
"description": "Unique identifier of the repository",
"format": "int64"
},
"is_template": {
"type": "boolean"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

declare(strict_types=1);

namespace ApiClients\Client\GitHub\Schema\AliasAbstract\TietD0F4187F\Tiet80279EC8\Tiet0EDB1C19;
namespace ApiClients\Client\GitHub\Schema\AliasAbstract\Tiet070CDFA2\TietE9BEF6E9\Tiet0F07A943;

use ApiClients\Client\GitHub\Schema;
use EventSauce\ObjectHydrator\MapFrom;

abstract readonly class Tiet55CCD6EA
abstract readonly class Tiet66A40160
{
public const SCHEMA_JSON = '{
"title": "Repository",
Expand Down Expand Up @@ -284,7 +284,8 @@
},
"id": {
"type": "integer",
"description": "Unique identifier of the repository"
"description": "Unique identifier of the repository",
"format": "int64"
},
"is_template": {
"type": "boolean"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

declare(strict_types=1);

namespace ApiClients\Client\GitHub\Schema\AliasAbstract\Tiet73D03AC6\Tiet052682E9\Tiet3922826A;
namespace ApiClients\Client\GitHub\Schema\AliasAbstract\Tiet1158398C\TietE3009A11\Tiet3CE979A2;

use ApiClients\Client\GitHub\Schema;

abstract readonly class Tiet25B9F4B0
abstract readonly class Tiet0834F071
{
public const SCHEMA_JSON = '{
"required": [
Expand Down Expand Up @@ -299,7 +299,8 @@
},
"id": {
"type": "integer",
"description": "Unique identifier of the repository"
"description": "Unique identifier of the repository",
"format": "int64"
},
"is_template": {
"type": "boolean"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

declare(strict_types=1);

namespace ApiClients\Client\GitHub\Schema\AliasAbstract\TietA90DC353\TietDD22FACF\TietDB1B96CA;
namespace ApiClients\Client\GitHub\Schema\AliasAbstract\Tiet30EDC031\Tiet13F69FDF\Tiet9DEA4839;

use ApiClients\Client\GitHub\Schema;
use EventSauce\ObjectHydrator\MapFrom;

abstract readonly class TietC29B2C46
abstract readonly class Tiet63EE8589
{
public const SCHEMA_JSON = '{
"title": "Repository",
Expand Down Expand Up @@ -283,7 +283,8 @@
},
"id": {
"type": "integer",
"description": "Unique identifier of the repository"
"description": "Unique identifier of the repository",
"format": "int64"
},
"is_template": {
"type": "boolean"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

declare(strict_types=1);

namespace ApiClients\Client\GitHub\Schema\AliasAbstract\Tiet43FD1D88\TietDEAAA799\Tiet01ECA36F;
namespace ApiClients\Client\GitHub\Schema\AliasAbstract\Tiet4A8830BA\Tiet7170E02A\Tiet9CDB3C13;

use EventSauce\ObjectHydrator\MapFrom;

abstract readonly class Tiet538E4778
abstract readonly class Tiet33DA8584
{
public const SCHEMA_JSON = '{
"required": [
Expand Down Expand Up @@ -74,6 +74,7 @@
"properties": {
"id": {
"type": "integer",
"format": "int64",
"examples": [
1296269
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

declare(strict_types=1);

namespace ApiClients\Client\GitHub\Schema\AliasAbstract\TietFF85C0C8\Tiet0DD04D4E\Tiet8381CD74;
namespace ApiClients\Client\GitHub\Schema\AliasAbstract\Tiet65AF0F7C\Tiet2249FF1C\TietFB00DC6B;

use ApiClients\Client\GitHub\Schema;

abstract readonly class Tiet891F3856
abstract readonly class Tiet30B55640
{
public const SCHEMA_JSON = '{
"required": [
Expand Down Expand Up @@ -302,7 +302,8 @@
},
"id": {
"type": "integer",
"description": "Unique identifier of the repository"
"description": "Unique identifier of the repository",
"format": "int64"
},
"is_template": {
"type": "boolean"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

declare(strict_types=1);

namespace ApiClients\Client\GitHub\Schema\AliasAbstract\Tiet78A1ED87\Tiet350943AE\TietDA8047D8;
namespace ApiClients\Client\GitHub\Schema\AliasAbstract\Tiet708A5A7B\TietC387586A\Tiet26E9ACC1;

use ApiClients\Client\GitHub\Schema;
use EventSauce\ObjectHydrator\MapFrom;

abstract readonly class Tiet006E988E
abstract readonly class TietF9004EB5
{
public const SCHEMA_JSON = '{
"title": "Repository",
Expand Down Expand Up @@ -284,7 +284,8 @@
},
"id": {
"type": "integer",
"description": "Unique identifier of the repository"
"description": "Unique identifier of the repository",
"format": "int64"
},
"is_template": {
"type": "boolean"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

declare(strict_types=1);

namespace ApiClients\Client\GitHub\Schema\AliasAbstract\TietD1BD15EA\TietA9D57493\TietE57747F5;
namespace ApiClients\Client\GitHub\Schema\AliasAbstract\Tiet76BADE77\Tiet47C9CE08\Tiet352DAA6F;

use EventSauce\ObjectHydrator\MapFrom;

abstract readonly class Tiet4486C3A8
abstract readonly class Tiet98EDCA2A
{
public const SCHEMA_JSON = '{
"required": [
Expand Down Expand Up @@ -50,6 +50,7 @@
"properties": {
"id": {
"type": "integer",
"format": "int64",
"examples": [
1
]
Expand Down Expand Up @@ -459,6 +460,7 @@
"properties": {
"id": {
"type": "integer",
"format": "int64",
"examples": [
1296269
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

declare(strict_types=1);

namespace ApiClients\Client\GitHub\Schema\AliasAbstract\TietDA0148FC\Tiet07C85FF7\Tiet950A70E3;
namespace ApiClients\Client\GitHub\Schema\AliasAbstract\Tiet8354B603\Tiet6E4D1374\Tiet4DDFFFE7;

use ApiClients\Client\GitHub\Schema;
use EventSauce\ObjectHydrator\MapFrom;

abstract readonly class TietEDDA17E3
abstract readonly class Tiet46656F78
{
public const SCHEMA_JSON = '{
"title": "Repository",
Expand Down Expand Up @@ -287,7 +287,8 @@
},
"id": {
"type": "integer",
"description": "Unique identifier of the repository"
"description": "Unique identifier of the repository",
"format": "int64"
},
"is_template": {
"type": "boolean"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

declare(strict_types=1);

namespace ApiClients\Client\GitHub\Schema\AliasAbstract\Tiet1F36541D\TietE8E8E0D0\TietBA97175F;
namespace ApiClients\Client\GitHub\Schema\AliasAbstract\Tiet912F8E91\Tiet252B0CCE\Tiet2BBBD0F2;

use ApiClients\Client\GitHub\Schema;

abstract readonly class TietDC150087
abstract readonly class TietCE74E055
{
public const SCHEMA_JSON = '{
"required": [
Expand Down Expand Up @@ -299,7 +299,8 @@
},
"id": {
"type": "integer",
"description": "Unique identifier of the repository"
"description": "Unique identifier of the repository",
"format": "int64"
},
"is_template": {
"type": "boolean"
Expand Down
Loading
Loading