Skip to content

Commit b0aaf9c

Browse files
authored
[GitHubAE] Update to 1.1.4 (hash: 3c30b4654b8763c53887fef2aad3304a) from 1.1.4 (hash: ec8d62c96c21ee75ab5090ebcb0e8cb2)
Detected Schema changes:
1 parent 6f016bd commit b0aaf9c

File tree

277 files changed

+25047
-15884
lines changed

Some content is hidden

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

277 files changed

+25047
-15884
lines changed

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

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

clients/GitHubAE/src/Client.php

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

clients/GitHubAE/src/ClientInterface.php

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

clients/GitHubAE/src/Hydrator/Operation/App/Installations/InstallationId.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@ private function hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️In
6464

6565
$value = $accountCaster1->cast($value, $this);
6666

67+
if ($value === null) {
68+
$missingFields[] = 'account';
69+
goto after_account;
70+
}
71+
6772
$properties['account'] = $value;
6873

6974
after_account:

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

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️Ap
7878

7979
after_hooks:
8080

81+
$value = $payload['github_enterprise_importer'] ?? null;
82+
83+
if ($value === null) {
84+
$properties['githubEnterpriseImporter'] = null;
85+
goto after_githubEnterpriseImporter;
86+
}
87+
88+
$properties['githubEnterpriseImporter'] = $value;
89+
90+
after_githubEnterpriseImporter:
91+
8192
$value = $payload['web'] ?? null;
8293

8394
if ($value === null) {
@@ -472,6 +483,22 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema
472483
after_hooks: $result['hooks'] = $hooks;
473484

474485

486+
$githubEnterpriseImporter = $object->githubEnterpriseImporter;
487+
488+
if ($githubEnterpriseImporter === null) {
489+
goto after_githubEnterpriseImporter;
490+
}
491+
static $githubEnterpriseImporterSerializer0;
492+
493+
if ($githubEnterpriseImporterSerializer0 === null) {
494+
$githubEnterpriseImporterSerializer0 = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeArrayItems(...array (
495+
));
496+
}
497+
498+
$githubEnterpriseImporter = $githubEnterpriseImporterSerializer0->serialize($githubEnterpriseImporter, $this);
499+
after_githubEnterpriseImporter: $result['github_enterprise_importer'] = $githubEnterpriseImporter;
500+
501+
475502
$web = $object->web;
476503

477504
if ($web === null) {

clients/GitHubAE/src/Hydrator/Operation/Orgs/Org/Installation.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ private function hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️In
6363

6464
$value = $accountCaster1->cast($value, $this);
6565

66+
if ($value === null) {
67+
$missingFields[] = 'account';
68+
goto after_account;
69+
}
70+
6671
$properties['account'] = $value;
6772

6873
after_account:

clients/GitHubAE/src/Hydrator/Operation/Repos/Owner/Repo/Deployments.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,11 @@ private function hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️De
121121

122122
$value = $payloadCaster1->cast($value, $this);
123123

124+
if ($value === null) {
125+
$missingFields[] = 'payload';
126+
goto after_payload;
127+
}
128+
124129
$properties['payload'] = $value;
125130

126131
after_payload:

clients/GitHubAE/src/Hydrator/Operation/Repos/Owner/Repo/Deployments/DeploymentId.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,11 @@ private function hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️De
121121

122122
$value = $payloadCaster1->cast($value, $this);
123123

124+
if ($value === null) {
125+
$missingFields[] = 'payload';
126+
goto after_payload;
127+
}
128+
124129
$properties['payload'] = $value;
125130

126131
after_payload:

clients/GitHubAE/src/Hydrator/Operation/Repos/Owner/Repo/Installation.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@ private function hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️In
6464

6565
$value = $accountCaster1->cast($value, $this);
6666

67+
if ($value === null) {
68+
$missingFields[] = 'account';
69+
goto after_account;
70+
}
71+
6772
$properties['account'] = $value;
6873

6974
after_account:

clients/GitHubAE/src/Hydrator/Operation/Users/Username/Installation.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ private function hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️In
6363

6464
$value = $accountCaster1->cast($value, $this);
6565

66+
if ($value === null) {
67+
$missingFields[] = 'account';
68+
goto after_account;
69+
}
70+
6671
$properties['account'] = $value;
6772

6873
after_account:

clients/GitHubAE/src/Operation/Git/GetTree.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,16 @@ final class GetTree
2828
private string $owner;
2929
/**The name of the repository without the `.git` extension. The name is not case sensitive. **/
3030
private string $repo;
31+
/**The SHA1 value or ref (branch or tag) name of the tree. **/
32+
private string $treeSha;
3133
/**Setting this parameter to any value returns the objects or subtrees referenced by the tree specified in `:tree_sha`. For example, setting `recursive` to any of the following will enable returning objects or subtrees: `0`, `1`, `"true"`, and `"false"`. Omit this parameter to prevent recursively returning objects or subtrees. **/
3234
private string $recursive;
3335

34-
public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Hydrator\Operation\Repos\Owner\Repo\Git\Trees\TreeSha $hydrator, string $owner, string $repo, private string $treeSha, string $recursive)
36+
public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Hydrator\Operation\Repos\Owner\Repo\Git\Trees\TreeSha $hydrator, string $owner, string $repo, string $treeSha, string $recursive)
3537
{
3638
$this->owner = $owner;
3739
$this->repo = $repo;
40+
$this->treeSha = $treeSha;
3841
$this->recursive = $recursive;
3942
}
4043

clients/GitHubAE/src/Operation/Meta/GetZen.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
use RuntimeException;
1313

1414
use function explode;
15+
use function json_decode;
1516
use function str_replace;
1617

1718
final class GetZen
@@ -35,8 +36,8 @@ public function createResponse(ResponseInterface $response): string
3536
$code = $response->getStatusCode();
3637
[$contentType] = explode(';', $response->getHeaderLine('Content-Type'));
3738
switch ($contentType) {
38-
case 'text/plain':
39-
$body = $response->getBody()->getContents();
39+
case 'application/json':
40+
$body = json_decode($response->getBody()->getContents(), true);
4041
switch ($code) {
4142
case 200:
4243
return $body;

clients/GitHubAE/src/Operation/Reactions/ListForCommitComment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ final class ListForCommitComment
3030
private string $repo;
3131
/**The unique identifier of the comment. **/
3232
private int $commentId;
33-
/**Returns a single [reaction type](https://docs.github.com/github-ae@latest/rest/reference/reactions#reaction-types). Omit this parameter to list all reactions to a commit comment. **/
33+
/**Returns a single [reaction type](https://docs.github.com/github-ae@latest/rest/reactions/reactions#about-reactions). Omit this parameter to list all reactions to a commit comment. **/
3434
private string $content;
3535
/**The number of results per page (max 100). **/
3636
private int $perPage;

clients/GitHubAE/src/Operation/Reactions/ListForIssue.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ final class ListForIssue
3030
private string $repo;
3131
/**The number that identifies the issue. **/
3232
private int $issueNumber;
33-
/**Returns a single [reaction type](https://docs.github.com/github-ae@latest/rest/reference/reactions#reaction-types). Omit this parameter to list all reactions to an issue. **/
33+
/**Returns a single [reaction type](https://docs.github.com/github-ae@latest/rest/reactions/reactions#about-reactions). Omit this parameter to list all reactions to an issue. **/
3434
private string $content;
3535
/**The number of results per page (max 100). **/
3636
private int $perPage;

clients/GitHubAE/src/Operation/Reactions/ListForIssueComment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ final class ListForIssueComment
3030
private string $repo;
3131
/**The unique identifier of the comment. **/
3232
private int $commentId;
33-
/**Returns a single [reaction type](https://docs.github.com/github-ae@latest/rest/reference/reactions#reaction-types). Omit this parameter to list all reactions to an issue comment. **/
33+
/**Returns a single [reaction type](https://docs.github.com/github-ae@latest/rest/reactions/reactions#about-reactions). Omit this parameter to list all reactions to an issue comment. **/
3434
private string $content;
3535
/**The number of results per page (max 100). **/
3636
private int $perPage;

clients/GitHubAE/src/Operation/Reactions/ListForPullRequestReviewComment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ final class ListForPullRequestReviewComment
3030
private string $repo;
3131
/**The unique identifier of the comment. **/
3232
private int $commentId;
33-
/**Returns a single [reaction type](https://docs.github.com/github-ae@latest/rest/reference/reactions#reaction-types). Omit this parameter to list all reactions to a pull request review comment. **/
33+
/**Returns a single [reaction type](https://docs.github.com/github-ae@latest/rest/reactions/reactions#about-reactions). Omit this parameter to list all reactions to a pull request review comment. **/
3434
private string $content;
3535
/**The number of results per page (max 100). **/
3636
private int $perPage;

clients/GitHubAE/src/Operation/Reactions/ListForRelease.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ final class ListForRelease
3030
private string $repo;
3131
/**The unique identifier of the release. **/
3232
private int $releaseId;
33-
/**Returns a single [reaction type](https://docs.github.com/github-ae@latest/rest/reference/reactions#reaction-types). Omit this parameter to list all reactions to a release. **/
33+
/**Returns a single [reaction type](https://docs.github.com/github-ae@latest/rest/reactions/reactions#about-reactions). Omit this parameter to list all reactions to a release. **/
3434
private string $content;
3535
/**The number of results per page (max 100). **/
3636
private int $perPage;

clients/GitHubAE/src/Operation/Reactions/ListForTeamDiscussionCommentInOrg.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ final class ListForTeamDiscussionCommentInOrg
2424
private int $discussionNumber;
2525
/**The number that identifies the comment. **/
2626
private int $commentNumber;
27-
/**Returns a single [reaction type](https://docs.github.com/github-ae@latest/rest/reference/reactions#reaction-types). Omit this parameter to list all reactions to a team discussion comment. **/
27+
/**Returns a single [reaction type](https://docs.github.com/github-ae@latest/rest/reactions/reactions#about-reactions). Omit this parameter to list all reactions to a team discussion comment. **/
2828
private string $content;
2929
/**The number of results per page (max 100). **/
3030
private int $perPage;

clients/GitHubAE/src/Operation/Reactions/ListForTeamDiscussionInOrg.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ final class ListForTeamDiscussionInOrg
2222
private string $teamSlug;
2323
/**The number that identifies the discussion. **/
2424
private int $discussionNumber;
25-
/**Returns a single [reaction type](https://docs.github.com/github-ae@latest/rest/reference/reactions#reaction-types). Omit this parameter to list all reactions to a team discussion. **/
25+
/**Returns a single [reaction type](https://docs.github.com/github-ae@latest/rest/reactions/reactions#about-reactions). Omit this parameter to list all reactions to a team discussion. **/
2626
private string $content;
2727
/**The number of results per page (max 100). **/
2828
private int $perPage;

clients/GitHubAE/src/Schema/AliasAbstract/Tiet1C1A84A6/Tiet41F746F2/TietC07C2DEB/Tiet51D9106A.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
public function __construct(public bool|null $deleted, public string|null $description, #[MapFrom('html_url')]
2525
public string|null $htmlUrl, public int $id, #[MapFrom('members_url')]
2626
public string|null $membersUrl, public string $name, #[MapFrom('node_id')]
27-
public string|null $nodeId, public Schema\WebhookPullRequestAssigned\PullRequest\RequestedTeams\Parent_|null $parent, public string|null $permission, public string|null $privacy, #[MapFrom('repositories_url')]
27+
public string|null $nodeId, public Schema\WebhookMergeQueueEntryCreated\PullRequest\RequestedReviewers\One\Parent_|null $parent, public string|null $permission, public string|null $privacy, #[MapFrom('repositories_url')]
2828
public string|null $repositoriesUrl, public string|null $slug, public string|null $url,)
2929
{
3030
}

clients/GitHubAE/src/Schema/AliasAbstract/Tiet4E185393/TietBDA2E772/Tiet8E84BE53/Tiet71E72B6A.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
/**
1717
* repo: A git repository
1818
*/
19-
public function __construct(public string $label, public string $ref, public Schema\WebhookPullRequestReviewThreadResolved\PullRequest\Base\Repo $repo, public string $sha, public Schema\WebhookPullRequestReviewThreadResolved\PullRequest\Base\User|null $user)
19+
public function __construct(public string $label, public string $ref, public Schema\WebhookMergeQueueEntryCreated\PullRequest\Base\Repo $repo, public string $sha, public Schema\WebhookMergeQueueEntryCreated\PullRequest\Base\User|null $user)
2020
{
2121
}
2222
}

0 commit comments

Comments
 (0)