Skip to content

[GitHub] Update to 1.1.4-b1232502b094b2cf854385b7323bd958 from 1.1.4-f7468d269476e7c0c11c8b67322a69a1 #1502

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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions clients/GitHub/etc/openapi-client-generator.state
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"specHash": "f7468d269476e7c0c11c8b67322a69a1",
"specHash": "b1232502b094b2cf854385b7323bd958",
"generatedFiles": {
"files": [
{
Expand Down Expand Up @@ -5564,7 +5564,7 @@
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Actions.php",
"hash": "ee82d3b058b82ee9d387cfbe1d78d52e"
"hash": "b93ce2668841057cad69b0b0aa4541f2"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Oidc.php",
Expand Down Expand Up @@ -5600,7 +5600,7 @@
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Billing.php",
"hash": "109c702326dc8aca867d2bb5df05cd70"
"hash": "bd76e67580f50aeab0ee75c4756b986a"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Teams.php",
Expand Down Expand Up @@ -13304,7 +13304,7 @@
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Actions\/GenerateRunnerJitconfigForOrg.php",
"hash": "e882e339f1a4e5dbbd5e3a2186bbf27f"
"hash": "dda35c1df25aa178dd350dd32c8bc725"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Actions\/GenerateRunnerJitconfigForOrgTest.php",
Expand Down Expand Up @@ -16304,7 +16304,7 @@
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Actions\/GenerateRunnerJitconfigForRepo.php",
"hash": "51f95c068dfc5397d0caad39ad9c69c2"
"hash": "dd32db3e9844f32fe7138e0844417409"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Actions\/GenerateRunnerJitconfigForRepoTest.php",
Expand Down Expand Up @@ -24472,7 +24472,7 @@
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Actions.php",
"hash": "600053290882abe489d86c6c74f32291"
"hash": "c29bf069848970b6bf2aa7a3bad4ea13"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Codespaces.php",
Expand Down Expand Up @@ -24876,7 +24876,7 @@
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Six.php",
"hash": "c1a0b296bfca651a7e4126fed2d81307"
"hash": "9d52e88c5af6aa5a666a418c7149880a"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Five.php",
Expand All @@ -24892,7 +24892,7 @@
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Seven.php",
"hash": "6e130578b6660dbe7434e3885b56b507"
"hash": "8dd6cfc374d16ab64138cebccf8d4d15"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Eight.php",
Expand Down Expand Up @@ -27628,11 +27628,11 @@
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php",
"hash": "9a0ea71bba7f5f28a38d3c96fccb89b3"
"hash": "30e758ef83b790f4c37e1a0186d4f74f"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php",
"hash": "12e8aab39fe3efb63af28af4572cf1ff"
"hash": "ec7f8ec78c02c33e4922254efeb7a889"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte
{
}

/** @return */
public function call(string $org, array $params): Created
{
$operation = new \ApiClients\Client\GitHub\Internal\Operation\Actions\GenerateRunnerJitconfigForOrg($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $org);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte
{
}

/** @return */
public function call(string $owner, string $repo, array $params): Created
{
$operation = new \ApiClients\Client\GitHub\Internal\Operation\Actions\GenerateRunnerJitconfigForRepo($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $owner, $repo);
Expand Down
2 changes: 2 additions & 0 deletions clients/GitHub/src/Internal/Router/Post/Actions.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri
{
}

/** @return */
public function generateRunnerJitconfigForOrg(array $params): Created
{
$arguments = [];
Expand Down Expand Up @@ -157,6 +158,7 @@ public function addCustomLabelsToSelfHostedRunnerForOrg(array $params): Ok
return $operator->call($arguments['org'], $arguments['runner_id'], $params);
}

/** @return */
public function generateRunnerJitconfigForRepo(array $params): Created
{
$arguments = [];
Expand Down
2 changes: 1 addition & 1 deletion clients/GitHub/src/Internal/Router/Post/Seven.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function __construct(private Routers $routers)
{
}

/** @return |Schema\Operations\Actions\GenerateRunnerJitconfigForOrg\Response\ApplicationJson\Created|Observable<Schema\Label>|Schema\BasicError */
/** @return |Observable<Schema\Label>|Schema\BasicError */
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
{
if ($pathChunks[0] === '') {
Expand Down
1 change: 0 additions & 1 deletion clients/GitHub/src/Internal/Router/Post/Six.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ public function __construct(private Routers $routers)
{
}

/** @return |Schema\Operations\Actions\GenerateRunnerJitconfigForOrg\Response\ApplicationJson\Created */
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
{
if ($pathChunks[0] === '') {
Expand Down
2 changes: 2 additions & 0 deletions clients/GitHub/src/Operation/Actions.php
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ public function listRunnerApplicationsForOrg(string $org): iterable
return $this->operators->actions👷ListRunnerApplicationsForOrg()->call($org);
}

/** @return */
public function generateRunnerJitconfigForOrg(string $org, array $params): Created
{
return $this->operators->actions👷GenerateRunnerJitconfigForOrg()->call($org, $params);
Expand Down Expand Up @@ -600,6 +601,7 @@ public function listRunnerApplicationsForRepo(string $owner, string $repo): iter
return $this->operators->actions👷ListRunnerApplicationsForRepo()->call($owner, $repo);
}

/** @return */
public function generateRunnerJitconfigForRepo(string $owner, string $repo, array $params): Created
{
return $this->operators->actions👷GenerateRunnerJitconfigForRepo()->call($owner, $repo, $params);
Expand Down
4 changes: 2 additions & 2 deletions clients/GitHub/src/PHPStan/ClientCallReturnTypes.php
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,7 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method
}

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

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

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

if ($call === 'POST /repos/{owner}/{repo}/actions/runners/registration-token') {
Expand Down
4 changes: 2 additions & 2 deletions clients/GitHub/tests/Types/ClientCallReturnTypes.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ function authHeader(): string
assertType('', $client->call('DELETE /orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}'));
assertType('', $client->call('GET /orgs/{org}/actions/runners'));
assertType('Observable<Schema\\RunnerApplication>', $client->call('GET /orgs/{org}/actions/runners/downloads'));
assertType('Schema\\Operations\\Actions\\GenerateRunnerJitconfigForOrg\\Response\\ApplicationJson\\Created', $client->call('POST /orgs/{org}/actions/runners/generate-jitconfig'));
assertType('', $client->call('POST /orgs/{org}/actions/runners/generate-jitconfig'));
assertType('', $client->call('POST /orgs/{org}/actions/runners/registration-token'));
assertType('', $client->call('POST /orgs/{org}/actions/runners/remove-token'));
assertType('', $client->call('GET /orgs/{org}/actions/runners/{runner_id}'));
Expand Down Expand Up @@ -504,7 +504,7 @@ function authHeader(): string
assertType('', $client->call('PUT /repos/{owner}/{repo}/actions/permissions/workflow'));
assertType('', $client->call('GET /repos/{owner}/{repo}/actions/runners'));
assertType('Observable<Schema\\RunnerApplication>', $client->call('GET /repos/{owner}/{repo}/actions/runners/downloads'));
assertType('Schema\\Operations\\Actions\\GenerateRunnerJitconfigForOrg\\Response\\ApplicationJson\\Created', $client->call('POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig'));
assertType('', $client->call('POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig'));
assertType('', $client->call('POST /repos/{owner}/{repo}/actions/runners/registration-token'));
assertType('', $client->call('POST /repos/{owner}/{repo}/actions/runners/remove-token'));
assertType('', $client->call('GET /repos/{owner}/{repo}/actions/runners/{runner_id}'));
Expand Down
4 changes: 2 additions & 2 deletions etc/specs/GitHub/current.spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9722,7 +9722,7 @@ paths:
summary: Get a summary of Copilot usage for organization members
description: |-
> [!NOTE]
> This endpoint is in public preview and is subject to change.
> This endpoint is closing down. It will be accessible throughout February 2025, but will not return any new data after February 1st.

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

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