Skip to content

Commit 8526e1a

Browse files
WyriHaximusgithub-actions[bot]
authored andcommitted
[GitHub] Update to 1.1.4-b1232502b094b2cf854385b7323bd958 from 1.1.4-f7468d269476e7c0c11c8b67322a69a1
Detected Schema changes: ``` └─┬Paths ├─┬/orgs/{org}/team/{team_slug}/copilot/usage │ └─┬GET │ └──[🔀] description (15896:20) └─┬/orgs/{org}/copilot/usage └─┬GET └──[🔀] description (9723:20) ``` | Document Element | Total Changes | Breaking Changes | |------------------|---------------|------------------| | paths | 2 | 0 | Date: 02/06/25 | Commit: New: etc/specs/GitHub/previous.spec.yaml, Original: etc/specs/GitHub/current.spec.yaml - **Total Changes**: _2_ - **Modifications**: _2_
1 parent d910bfc commit 8526e1a

File tree

10 files changed

+23
-18
lines changed

10 files changed

+23
-18
lines changed

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

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"specHash": "f7468d269476e7c0c11c8b67322a69a1",
2+
"specHash": "b1232502b094b2cf854385b7323bd958",
33
"generatedFiles": {
44
"files": [
55
{
@@ -5564,7 +5564,7 @@
55645564
},
55655565
{
55665566
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Actions.php",
5567-
"hash": "ee82d3b058b82ee9d387cfbe1d78d52e"
5567+
"hash": "b93ce2668841057cad69b0b0aa4541f2"
55685568
},
55695569
{
55705570
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Oidc.php",
@@ -5600,7 +5600,7 @@
56005600
},
56015601
{
56025602
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Billing.php",
5603-
"hash": "109c702326dc8aca867d2bb5df05cd70"
5603+
"hash": "bd76e67580f50aeab0ee75c4756b986a"
56045604
},
56055605
{
56065606
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Teams.php",
@@ -13304,7 +13304,7 @@
1330413304
},
1330513305
{
1330613306
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Actions\/GenerateRunnerJitconfigForOrg.php",
13307-
"hash": "e882e339f1a4e5dbbd5e3a2186bbf27f"
13307+
"hash": "dda35c1df25aa178dd350dd32c8bc725"
1330813308
},
1330913309
{
1331013310
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Actions\/GenerateRunnerJitconfigForOrgTest.php",
@@ -16304,7 +16304,7 @@
1630416304
},
1630516305
{
1630616306
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Actions\/GenerateRunnerJitconfigForRepo.php",
16307-
"hash": "51f95c068dfc5397d0caad39ad9c69c2"
16307+
"hash": "dd32db3e9844f32fe7138e0844417409"
1630816308
},
1630916309
{
1631016310
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Actions\/GenerateRunnerJitconfigForRepoTest.php",
@@ -24472,7 +24472,7 @@
2447224472
},
2447324473
{
2447424474
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Actions.php",
24475-
"hash": "600053290882abe489d86c6c74f32291"
24475+
"hash": "c29bf069848970b6bf2aa7a3bad4ea13"
2447624476
},
2447724477
{
2447824478
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Codespaces.php",
@@ -24876,7 +24876,7 @@
2487624876
},
2487724877
{
2487824878
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Six.php",
24879-
"hash": "c1a0b296bfca651a7e4126fed2d81307"
24879+
"hash": "9d52e88c5af6aa5a666a418c7149880a"
2488024880
},
2488124881
{
2488224882
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Five.php",
@@ -24892,7 +24892,7 @@
2489224892
},
2489324893
{
2489424894
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Seven.php",
24895-
"hash": "6e130578b6660dbe7434e3885b56b507"
24895+
"hash": "8dd6cfc374d16ab64138cebccf8d4d15"
2489624896
},
2489724897
{
2489824898
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Eight.php",
@@ -27628,11 +27628,11 @@
2762827628
},
2762927629
{
2763027630
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php",
27631-
"hash": "9a0ea71bba7f5f28a38d3c96fccb89b3"
27631+
"hash": "30e758ef83b790f4c37e1a0186d4f74f"
2763227632
},
2763327633
{
2763427634
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php",
27635-
"hash": "12e8aab39fe3efb63af28af4572cf1ff"
27635+
"hash": "ec7f8ec78c02c33e4922254efeb7a889"
2763627636
},
2763727637
{
2763827638
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon",

clients/GitHub/src/Internal/Operator/Actions/GenerateRunnerJitconfigForOrg.php

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

27+
/** @return */
2728
public function call(string $org, array $params): Created
2829
{
2930
$operation = new \ApiClients\Client\GitHub\Internal\Operation\Actions\GenerateRunnerJitconfigForOrg($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $org);

clients/GitHub/src/Internal/Operator/Actions/GenerateRunnerJitconfigForRepo.php

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

27+
/** @return */
2728
public function call(string $owner, string $repo, array $params): Created
2829
{
2930
$operation = new \ApiClients\Client\GitHub\Internal\Operation\Actions\GenerateRunnerJitconfigForRepo($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $owner, $repo);

clients/GitHub/src/Internal/Router/Post/Actions.php

+2
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri
2626
{
2727
}
2828

29+
/** @return */
2930
public function generateRunnerJitconfigForOrg(array $params): Created
3031
{
3132
$arguments = [];
@@ -157,6 +158,7 @@ public function addCustomLabelsToSelfHostedRunnerForOrg(array $params): Ok
157158
return $operator->call($arguments['org'], $arguments['runner_id'], $params);
158159
}
159160

161+
/** @return */
160162
public function generateRunnerJitconfigForRepo(array $params): Created
161163
{
162164
$arguments = [];

clients/GitHub/src/Internal/Router/Post/Seven.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function __construct(private Routers $routers)
3535
{
3636
}
3737

38-
/** @return |Schema\Operations\Actions\GenerateRunnerJitconfigForOrg\Response\ApplicationJson\Created|Observable<Schema\Label>|Schema\BasicError */
38+
/** @return |Observable<Schema\Label>|Schema\BasicError */
3939
public function call(string $call, array $params, array $pathChunks): Json|Ok|\ApiClients\Client\GitHub\Schema\Operations\CodeSecurity\AttachConfiguration\Response\ApplicationJson\Accepted\Application\Json|WithoutBody|Created|AuthenticationToken|BranchWithProtection|EmptyObject|CodeScanningVariantAnalysis|Reaction|CommitComment|DeploymentStatus|DeploymentBranchPolicy|DeploymentProtectionRule|Issue|IssueComment|iterable|BasicError|Codespace|PullRequestReviewComment|PullRequestSimple|PullRequestReview|ReleaseAsset|\ApiClients\Client\GitHub\Schema\Operations\SecurityAdvisories\CreateRepositoryAdvisoryCveRequest\Response\ApplicationJson\Accepted\Application\Json|FullRepository
4040
{
4141
if ($pathChunks[0] === '') {

clients/GitHub/src/Internal/Router/Post/Six.php

-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ public function __construct(private Routers $routers)
3434
{
3535
}
3636

37-
/** @return |Schema\Operations\Actions\GenerateRunnerJitconfigForOrg\Response\ApplicationJson\Created */
3837
public function call(string $call, array $params, array $pathChunks): Json|Created|AuthenticationToken|WithoutBody|\ApiClients\Client\GitHub\Schema\Operations\Copilot\AddCopilotSeatsForTeams\Response\ApplicationJson\Created|\ApiClients\Client\GitHub\Schema\Operations\Copilot\AddCopilotSeatsForUsers\Response\ApplicationJson\Created|TeamDiscussion|\ApiClients\Client\GitHub\Schema\Operations\Projects\MoveCard\Response\ApplicationJson\Created\Application\Json|EmptyObject|CodeScanningSarifsReceipt|\ApiClients\Client\GitHub\Schema\Operations\DependencyGraph\CreateRepositorySnapshot\Response\ApplicationJson\Created|ShortBlob|GitCommit|GitRef|GitTag|GitTree|PageBuildStatus|PageDeployment|ReleaseNotesContent|SecretScanningPushProtectionBypass|RepositoryAdvisory|Status|TagProtection|TeamDiscussionComment|Reaction
3938
{
4039
if ($pathChunks[0] === '') {

clients/GitHub/src/Operation/Actions.php

+2
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ public function listRunnerApplicationsForOrg(string $org): iterable
271271
return $this->operators->actions👷ListRunnerApplicationsForOrg()->call($org);
272272
}
273273

274+
/** @return */
274275
public function generateRunnerJitconfigForOrg(string $org, array $params): Created
275276
{
276277
return $this->operators->actions👷GenerateRunnerJitconfigForOrg()->call($org, $params);
@@ -600,6 +601,7 @@ public function listRunnerApplicationsForRepo(string $owner, string $repo): iter
600601
return $this->operators->actions👷ListRunnerApplicationsForRepo()->call($owner, $repo);
601602
}
602603

604+
/** @return */
603605
public function generateRunnerJitconfigForRepo(string $owner, string $repo, array $params): Created
604606
{
605607
return $this->operators->actions👷GenerateRunnerJitconfigForRepo()->call($owner, $repo, $params);

clients/GitHub/src/PHPStan/ClientCallReturnTypes.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method
664664
}
665665

666666
if ($call === 'POST /orgs/{org}/actions/runners/generate-jitconfig') {
667-
return $this->typeResolver->resolve('Schema\\Operations\\Actions\\GenerateRunnerJitconfigForOrg\\Response\\ApplicationJson\\Created');
667+
return $this->typeResolver->resolve('');
668668
}
669669

670670
if ($call === 'POST /orgs/{org}/actions/runners/registration-token') {
@@ -1992,7 +1992,7 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method
19921992
}
19931993

19941994
if ($call === 'POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig') {
1995-
return $this->typeResolver->resolve('Schema\\Operations\\Actions\\GenerateRunnerJitconfigForOrg\\Response\\ApplicationJson\\Created');
1995+
return $this->typeResolver->resolve('');
19961996
}
19971997

19981998
if ($call === 'POST /repos/{owner}/{repo}/actions/runners/registration-token') {

clients/GitHub/tests/Types/ClientCallReturnTypes.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ function authHeader(): string
172172
assertType('', $client->call('DELETE /orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}'));
173173
assertType('', $client->call('GET /orgs/{org}/actions/runners'));
174174
assertType('Observable<Schema\\RunnerApplication>', $client->call('GET /orgs/{org}/actions/runners/downloads'));
175-
assertType('Schema\\Operations\\Actions\\GenerateRunnerJitconfigForOrg\\Response\\ApplicationJson\\Created', $client->call('POST /orgs/{org}/actions/runners/generate-jitconfig'));
175+
assertType('', $client->call('POST /orgs/{org}/actions/runners/generate-jitconfig'));
176176
assertType('', $client->call('POST /orgs/{org}/actions/runners/registration-token'));
177177
assertType('', $client->call('POST /orgs/{org}/actions/runners/remove-token'));
178178
assertType('', $client->call('GET /orgs/{org}/actions/runners/{runner_id}'));
@@ -504,7 +504,7 @@ function authHeader(): string
504504
assertType('', $client->call('PUT /repos/{owner}/{repo}/actions/permissions/workflow'));
505505
assertType('', $client->call('GET /repos/{owner}/{repo}/actions/runners'));
506506
assertType('Observable<Schema\\RunnerApplication>', $client->call('GET /repos/{owner}/{repo}/actions/runners/downloads'));
507-
assertType('Schema\\Operations\\Actions\\GenerateRunnerJitconfigForOrg\\Response\\ApplicationJson\\Created', $client->call('POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig'));
507+
assertType('', $client->call('POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig'));
508508
assertType('', $client->call('POST /repos/{owner}/{repo}/actions/runners/registration-token'));
509509
assertType('', $client->call('POST /repos/{owner}/{repo}/actions/runners/remove-token'));
510510
assertType('', $client->call('GET /repos/{owner}/{repo}/actions/runners/{runner_id}'));

etc/specs/GitHub/current.spec.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -9722,7 +9722,7 @@ paths:
97229722
summary: Get a summary of Copilot usage for organization members
97239723
description: |-
97249724
> [!NOTE]
9725-
> This endpoint is in public preview and is subject to change.
9725+
> This endpoint is closing down. It will be accessible throughout February 2025, but will not return any new data after February 1st.
97269726

97279727
You can use this endpoint to see a daily breakdown of aggregated usage metrics for Copilot completions and Copilot Chat in the IDE
97289728
across an organization, with a further breakdown of suggestions, acceptances, and number of active users by editor and language for each day.
@@ -15895,7 +15895,7 @@ paths:
1589515895
summary: Get a summary of Copilot usage for a team
1589615896
description: |-
1589715897
> [!NOTE]
15898-
> This endpoint is in public preview and is subject to change.
15898+
> This endpoint is closing down. It will be accessible throughout February 2025, but will not return any new data after February 1st.
1589915899

1590015900
You can use this endpoint to see a daily breakdown of aggregated usage metrics for Copilot completions and Copilot Chat in the IDE
1590115901
for users within a team, with a further breakdown of suggestions, acceptances, and number of active users by editor and language for each day.

0 commit comments

Comments
 (0)