Skip to content

Commit b1e77fa

Browse files
WyriHaximusgithub-actions[bot]
authored andcommitted
[GitHubAE] Update to 1.1.4-be889f4ae6e8593844d922a840dd93b1 from 1.1.4-a8cad12970f1ee84856b800561c6d2f3
Detected Schema changes: starting work. Building original model for commit a31ae9 SPEC: extracted 2 commits from history DONE: completed └─┬Components └─┬webhook-push └─┬commits └─┬Schema ├─┬added │ └──[M] description (165773:30) ├─┬removed │ └──[M] description (165834:30) └─┬modified └──[M] description (165829:30) Date: 02/08/24 | Commit: New: etc/specs/GitHubAE/previous.spec.yaml, Original: etc/specs/GitHubAE/current.spec.yaml Document Element | Total Changes | Breaking Changes components | 3 | 0 INFO: Total Changes: 3 INFO: Modifications: 3
1 parent c60d5b0 commit b1e77fa

File tree

9 files changed

+24
-24
lines changed

9 files changed

+24
-24
lines changed

etc/openapi-client-generator.state

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"specHash": "a8cad12970f1ee84856b800561c6d2f3",
2+
"specHash": "be889f4ae6e8593844d922a840dd93b1",
33
"generatedFiles": {
44
"files": [
55
{
@@ -1872,7 +1872,7 @@
18721872
},
18731873
{
18741874
"name": ".\/clients\/GitHubAE\/etc\/..\/\/src\/\/Schema\/WebhookPush.php",
1875-
"hash": "ef3ffefdce9c4f85d8f62b2a0e27631d"
1875+
"hash": "423d9dfd3ec331ccf7e81fb6352630fa"
18761876
},
18771877
{
18781878
"name": ".\/clients\/GitHubAE\/etc\/..\/\/src\/\/Schema\/WebhookRegistryPackagePublished.php",
@@ -3580,7 +3580,7 @@
35803580
},
35813581
{
35823582
"name": ".\/clients\/GitHubAE\/etc\/..\/\/src\/\/Schema\/WebhookPush\/Commits.php",
3583-
"hash": "335c34e99615315a40c885fd70190ab1"
3583+
"hash": "42c0b518e9791d5d1c1741e7ea010e40"
35843584
},
35853585
{
35863586
"name": ".\/clients\/GitHubAE\/etc\/..\/\/src\/\/Schema\/WebhookPush\/HeadCommit.php",
@@ -4908,7 +4908,7 @@
49084908
},
49094909
{
49104910
"name": ".\/clients\/GitHubAE\/etc\/..\/\/src\/\/Operation\/Repos.php",
4911-
"hash": "e909c314abd300ee5c7c0ea38a00f2c5"
4911+
"hash": "840c13af5a496677e08b1ac3483e3279"
49124912
},
49134913
{
49144914
"name": ".\/clients\/GitHubAE\/etc\/..\/\/src\/\/Operation\/Reactions.php",
@@ -15900,7 +15900,7 @@
1590015900
},
1590115901
{
1590215902
"name": ".\/clients\/GitHubAE\/etc\/..\/\/src\/\/Internal\/Operator\/Repos\/ListAutolinks.php",
15903-
"hash": "f6875da9f9f0355acfbe80527f3105e3"
15903+
"hash": "7e49c4caeaae21ad3938348dcf193a07"
1590415904
},
1590515905
{
1590615906
"name": ".\/clients\/GitHubAE\/etc\/..\/\/tests\/\/Internal\/Operation\/Repos\/ListAutolinksTest.php",
@@ -21276,7 +21276,7 @@
2127621276
},
2127721277
{
2127821278
"name": ".\/clients\/GitHubAE\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Repos.php",
21279-
"hash": "89483ae76e0044247edb69f9ededc4f3"
21279+
"hash": "436f4ce9a4f7869b38031f3afe665474"
2128021280
},
2128121281
{
2128221282
"name": ".\/clients\/GitHubAE\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Activity.php",
@@ -21668,7 +21668,7 @@
2166821668
},
2166921669
{
2167021670
"name": ".\/clients\/GitHubAE\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Five.php",
21671-
"hash": "b41c736961a7e1c5515840b53b3b7362"
21671+
"hash": "5265cfb14f469cb614b7c670de15cfa2"
2167221672
},
2167321673
{
2167421674
"name": ".\/clients\/GitHubAE\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Seven.php",
@@ -23420,11 +23420,11 @@
2342023420
},
2342123421
{
2342223422
"name": ".\/clients\/GitHubAE\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php",
23423-
"hash": "4f291049d0160bb442a950f69ef97bda"
23423+
"hash": "60e5145c0a8f78ecc20ccc2f75b55e52"
2342423424
},
2342523425
{
2342623426
"name": ".\/clients\/GitHubAE\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php",
23427-
"hash": "73a5861feb18113c05f6f834f7784943"
23427+
"hash": "cebc119575c71cbf269c9bdfa7272fe9"
2342823428
},
2342923429
{
2343023430
"name": ".\/clients\/GitHubAE\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon",

src/Internal/Operator/Repos/ListAutolinks.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte
2424
{
2525
}
2626

27-
/** @return iterable<int,Schema\Autolink> */
27+
/** @return Observable<Schema\Autolink> */
2828
public function call(string $owner, string $repo): iterable
2929
{
3030
$operation = new \ApiClients\Client\GitHubAE\Internal\Operation\Repos\ListAutolinks($this->responseSchemaValidator, $this->hydrator, $owner, $repo);

src/Internal/Router/Get/Five.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function __construct(private Routers $routers)
3939
{
4040
}
4141

42-
/** @return |Observable<Schema\OrganizationSecretScanningAlert>|Observable<Schema\CodeScanningOrganizationAlertItems>|Observable<Schema\ProjectCard>|WithoutBody|Observable<Schema\SimpleUser>|iterable<int,Schema\Autolink>|Observable<Schema\ShortBranch>|Observable<Schema\Collaborator>|Observable<Schema\CommitComment>|Observable<Schema\Commit>|Observable<Schema\Contributor>|Observable<Schema\Deployment>|Observable<Schema\Event>|Observable<Schema\MinimalRepository>|Observable<Schema\Hook>|Observable<Schema\RepositoryInvitation>|Observable<Schema\Issue>|Schema\BasicError|Observable<Schema\DeployKey>|Observable<Schema\Label>|Observable<Schema\Milestone>|Observable<Schema\Thread>|Observable<Schema\Project>|Observable<Schema\PullRequestSimple>|Observable<Schema\Release>|Observable<Schema\Tag>|Observable<Schema\Team> */
42+
/** @return |Observable<Schema\OrganizationSecretScanningAlert>|Observable<Schema\CodeScanningOrganizationAlertItems>|Observable<Schema\ProjectCard>|WithoutBody|Observable<Schema\SimpleUser>|Observable<Schema\Autolink>|Observable<Schema\ShortBranch>|Observable<Schema\Collaborator>|Observable<Schema\CommitComment>|Observable<Schema\Commit>|Observable<Schema\Contributor>|Observable<Schema\Deployment>|Observable<Schema\Event>|Observable<Schema\MinimalRepository>|Observable<Schema\Hook>|Observable<Schema\RepositoryInvitation>|Observable<Schema\Issue>|Schema\BasicError|Observable<Schema\DeployKey>|Observable<Schema\Label>|Observable<Schema\Milestone>|Observable<Schema\Thread>|Observable<Schema\Project>|Observable<Schema\PullRequestSimple>|Observable<Schema\Release>|Observable<Schema\Tag>|Observable<Schema\Team> */
4343
public function call(string $call, array $params, array $pathChunks): HookDelivery|ActionsEnterprisePermissions|Ok|\ApiClients\Client\GitHubAE\Schema\Operations\EnterpriseAdmin\ListSelfHostedRunnersForEnterprise\Response\ApplicationJson\Ok|iterable|GistComment|WithoutBody|ThreadSubscription|ActionsOrganizationPermissions|\ApiClients\Client\GitHubAE\Schema\Operations\Actions\ListSelfHostedRunnerGroupsForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubAE\Schema\Operations\Actions\ListSelfHostedRunnersForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubAE\Schema\Operations\Actions\ListOrgSecrets\Response\ApplicationJson\Ok|ExternalGroup|OrgHook|OrgMembership|Migration|TeamFull|ProjectCard|\ApiClients\Client\GitHubAE\Schema\Operations\Repos\GetAllEnvironments\Response\ApplicationJson\Ok|Installation|BasicError|Language|LicenseContent|Page|ContentFile|SimpleUser|Stargazer|RepositorySubscription|Topic|TeamDiscussion|TeamMembership|TeamProject|\ApiClients\Client\GitHubAE\Schema\Operations\Apps\ListInstallationReposForAuthenticatedUser\Response\ApplicationJson\Ok
4444
{
4545
if ($pathChunks[0] === '') {

src/Internal/Router/Get/Repos.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -878,7 +878,7 @@ public function downloadZipballArchive(array $params): WithoutBody
878878
return $operator->call($arguments['owner'], $arguments['repo'], $arguments['ref']);
879879
}
880880

881-
/** @return iterable<int,Schema\Autolink> */
881+
/** @return Observable<Schema\Autolink> */
882882
public function listAutolinks(array $params): iterable
883883
{
884884
$arguments = [];

src/Operation/Repos.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public function update(string $owner, string $repo, array $params): FullReposito
9393
return $this->operators->repos👷Update()->call($owner, $repo, $params);
9494
}
9595

96-
/** @return iterable<int,Schema\Autolink> */
96+
/** @return Observable<Schema\Autolink> */
9797
public function listAutolinks(string $owner, string $repo): iterable
9898
{
9999
return $this->operators->repos👷ListAutolinks()->call($owner, $repo);

src/PHPStan/ClientCallReturnTypes.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1432,7 +1432,7 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method
14321432
}
14331433

14341434
if ($call === 'GET /repos/{owner}/{repo}/autolinks') {
1435-
return $this->typeResolver->resolve('iterable<int,Schema\\Autolink>');
1435+
return $this->typeResolver->resolve('Observable<Schema\\Autolink>');
14361436
}
14371437

14381438
if ($call === 'POST /repos/{owner}/{repo}/autolinks') {

src/Schema/WebhookPush.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
"items": {
6363
"type": "string"
6464
},
65-
"description": "An array of files added in the commit."
65+
"description": "An array of files added in the commit. A maximum of 3000 changed files will be reported per commit."
6666
},
6767
"author": {
6868
"title": "Committer",
@@ -138,14 +138,14 @@
138138
"items": {
139139
"type": "string"
140140
},
141-
"description": "An array of files modified by the commit."
141+
"description": "An array of files modified by the commit. A maximum of 3000 changed files will be reported per commit."
142142
},
143143
"removed": {
144144
"type": "array",
145145
"items": {
146146
"type": "string"
147147
},
148-
"description": "An array of files removed in the commit."
148+
"description": "An array of files removed in the commit. A maximum of 3000 changed files will be reported per commit."
149149
},
150150
"timestamp": {
151151
"type": "string",

src/Schema/WebhookPush/Commits.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"items": {
2929
"type": "string"
3030
},
31-
"description": "An array of files added in the commit."
31+
"description": "An array of files added in the commit. A maximum of 3000 changed files will be reported per commit."
3232
},
3333
"author": {
3434
"title": "Committer",
@@ -104,14 +104,14 @@
104104
"items": {
105105
"type": "string"
106106
},
107-
"description": "An array of files modified by the commit."
107+
"description": "An array of files modified by the commit. A maximum of 3000 changed files will be reported per commit."
108108
},
109109
"removed": {
110110
"type": "array",
111111
"items": {
112112
"type": "string"
113113
},
114-
"description": "An array of files removed in the commit."
114+
"description": "An array of files removed in the commit. A maximum of 3000 changed files will be reported per commit."
115115
},
116116
"timestamp": {
117117
"type": "string",
@@ -164,13 +164,13 @@
164164
}';
165165

166166
/**
167-
* added: An array of files added in the commit.
167+
* added: An array of files added in the commit. A maximum of 3000 changed files will be reported per commit.
168168
* author: Metaproperties for Git author/committer information.
169169
* committer: Metaproperties for Git author/committer information.
170170
* distinct: Whether this commit is distinct from any that have been pushed before.
171171
* message: The commit message.
172-
* modified: An array of files modified by the commit.
173-
* removed: An array of files removed in the commit.
172+
* modified: An array of files modified by the commit. A maximum of 3000 changed files will be reported per commit.
173+
* removed: An array of files removed in the commit. A maximum of 3000 changed files will be reported per commit.
174174
* timestamp: The ISO 8601 timestamp of the commit.
175175
* url: URL that points to the commit API resource.
176176
*/

tests/Types/ClientCallReturnTypes.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ function authHeader(): string
364364
assertType('Observable<Schema\\SimpleUser>', $client->call('GET /repos/{owner}/{repo}/assignees'));
365365
assertType('Observable<Schema\\SimpleUser>', $client->call('LIST /repos/{owner}/{repo}/assignees'));
366366
assertType('', $client->call('GET /repos/{owner}/{repo}/assignees/{assignee}'));
367-
assertType('iterable<int,Schema\\Autolink>', $client->call('GET /repos/{owner}/{repo}/autolinks'));
367+
assertType('Observable<Schema\\Autolink>', $client->call('GET /repos/{owner}/{repo}/autolinks'));
368368
assertType('', $client->call('POST /repos/{owner}/{repo}/autolinks'));
369369
assertType('', $client->call('GET /repos/{owner}/{repo}/autolinks/{autolink_id}'));
370370
assertType('', $client->call('DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}'));

0 commit comments

Comments
 (0)