Skip to content

Commit 425bdaf

Browse files
authored
Merge pull request #922 from php-api-clients/GitHubEnterpriseCloud/from-1.1.4-c656737cb7c8adda8a6f5ee5f5ab08bc-from-1.1.4-c656737cb7c8adda8a6f5ee5f5ab08bc
2 parents 765777d + d5438ef commit 425bdaf

File tree

12 files changed

+56
-24
lines changed

12 files changed

+56
-24
lines changed

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

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"specHash": "2bcd6ecb48b7f1793882aa1e317a8385",
2+
"specHash": "c656737cb7c8adda8a6f5ee5f5ab08bc",
33
"generatedFiles": {
44
"files": [
55
{
@@ -6132,7 +6132,7 @@
61326132
},
61336133
{
61346134
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Activity.php",
6135-
"hash": "67ae324c1b0a9b9a53c7a798e19d8083"
6135+
"hash": "93bf3db196364f44a49ba8b61b13d6a8"
61366136
},
61376137
{
61386138
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Gists.php",
@@ -6188,7 +6188,7 @@
61886188
},
61896189
{
61906190
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Repos.php",
6191-
"hash": "113462ef4644855d5b0c1d767ef311c6"
6191+
"hash": "d782a5586fda5a629c8ccf9c9b605d93"
61926192
},
61936193
{
61946194
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Reactions.php",
@@ -24360,7 +24360,7 @@
2436024360
},
2436124361
{
2436224362
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Repos\/GetRelease.php",
24363-
"hash": "46fb9403c3b3d75b2de1bf9c3a360cb1"
24363+
"hash": "5f76bdde9bd1fbf99c6dbb1f49f9be6e"
2436424364
},
2436524365
{
2436624366
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Repos\/GetReleaseTest.php",
@@ -28052,7 +28052,7 @@
2805228052
},
2805328053
{
2805428054
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Repos.php",
28055-
"hash": "1260d8e4ea22f725b2e5b1139fec4525"
28055+
"hash": "438197c7cbd889ea1790eac0fb3849bd"
2805628056
},
2805728057
{
2805828058
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Users.php",
@@ -28444,7 +28444,7 @@
2844428444
},
2844528445
{
2844628446
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Activity.php",
28447-
"hash": "02b923866acfede5b136837373c9df91"
28447+
"hash": "56df264765eb8b76a5b3d2f4e156147a"
2844828448
},
2844928449
{
2845028450
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Orgs.php",
@@ -28608,7 +28608,7 @@
2860828608
},
2860928609
{
2861028610
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Six.php",
28611-
"hash": "ebcafe32fac32fdb6ca404177432cf9d"
28611+
"hash": "0c73fff643784943f9f446280775e530"
2861228612
},
2861328613
{
2861428614
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Seven.php",
@@ -28732,7 +28732,7 @@
2873228732
},
2873328733
{
2873428734
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Four.php",
28735-
"hash": "ff2f3a765ba13405e97dc0eaa717d622"
28735+
"hash": "02119450360df3c207ff126a59c79069"
2873628736
},
2873728737
{
2873828738
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Five.php",
@@ -31896,11 +31896,11 @@
3189631896
},
3189731897
{
3189831898
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php",
31899-
"hash": "ed4a169d7256b38ab60124abcd55e2cf"
31899+
"hash": "0b299fe00ec08aea03942746fe124f0b"
3190031900
},
3190131901
{
3190231902
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php",
31903-
"hash": "452debe8db02e63ae3f2df6a8aec901c"
31903+
"hash": "c8df86f1baaa4df122cadd2abba0e0c8"
3190431904
},
3190531905
{
3190631906
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon",
@@ -32768,7 +32768,7 @@
3276832768
},
3276932769
{
3277032770
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Activity\/MarkThreadAsDone.php",
32771-
"hash": "781634f13ed18d7c6e5b495c6e627a80"
32771+
"hash": "56de2fd644fa4a012d961e7506c9afc4"
3277232772
}
3277332773
]
3277432774
},

clients/GitHubEnterpriseCloud/src/Internal/Operator/Activity/MarkThreadAsDone.php

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

25+
/** @return */
2526
public function call(int $threadId): WithoutBody
2627
{
2728
$operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\Activity\MarkThreadAsDone($threadId);

clients/GitHubEnterpriseCloud/src/Internal/Operator/Repos/GetRelease.php

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

28+
/** @return */
2829
public function call(string $owner, string $repo, int $releaseId): Release|WithoutBody
2930
{
3031
$operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\Repos\GetRelease($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $releaseId);

clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Activity.php

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri
1919
{
2020
}
2121

22+
/** @return */
2223
public function markThreadAsDone(array $params): WithoutBody
2324
{
2425
$arguments = [];

clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Four.php

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ public function __construct(private Routers $routers)
1616
{
1717
}
1818

19-
/** @return |\ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody */
2019
public function call(string $call, array $params, array $pathChunks): WithoutBody|BasicError|Json
2120
{
2221
if ($pathChunks[0] === '') {

clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Repos.php

+1
Original file line numberDiff line numberDiff line change
@@ -1730,6 +1730,7 @@ public function getLatestRelease(array $params): Release
17301730
return $operator->call($arguments['owner'], $arguments['repo']);
17311731
}
17321732

1733+
/** @return */
17331734
public function getRelease(array $params): Release|WithoutBody
17341735
{
17351736
$arguments = [];

clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Six.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function __construct(private Routers $routers)
7878
{
7979
}
8080

81-
/** @return |Observable<Schema\RunnerApplication>|Observable<Schema\MarketplacePurchase>|Observable<Schema\HookDeliveryItem>|Observable<Schema\Team>|Observable<Schema\MinimalRepository>|WithoutBody|Observable<Schema\SimpleUser>|Observable<Schema\TeamDiscussion>|Observable<Schema\OrganizationInvitation>|Observable<Schema\TeamProject>|Observable<Schema\CodeScanningAlertItems>|Observable<Schema\CodeScanningAnalysis>|Observable<Schema\DependabotAlert>|Observable<Schema\PorterAuthor>|Observable<Schema\PorterLargeFile>|Observable<Schema\IssueComment>|Observable<Schema\IssueEvent>|Observable<Schema\PageBuild>|Observable<Schema\CustomPropertyValue>|Observable<Schema\PullRequestReviewComment>|Schema\Release|\ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody|Observable<Schema\RuleSuites>|Observable<Schema\SecretScanningAlert>|Observable<int>|Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|Observable<Schema\CommitActivity>|Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|Observable<Schema\ContributorActivity>|Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|Observable<Schema\TagProtection>|Observable<Schema\TeamDiscussionComment>|Observable<Schema\Reaction>|Observable<Schema\PackageVersion>|Observable<Schema\Event> */
81+
/** @return |Observable<Schema\RunnerApplication>|Observable<Schema\MarketplacePurchase>|Observable<Schema\HookDeliveryItem>|Observable<Schema\Team>|Observable<Schema\MinimalRepository>|WithoutBody|Observable<Schema\SimpleUser>|Observable<Schema\TeamDiscussion>|Observable<Schema\OrganizationInvitation>|Observable<Schema\TeamProject>|Observable<Schema\CodeScanningAlertItems>|Observable<Schema\CodeScanningAnalysis>|Observable<Schema\DependabotAlert>|Observable<Schema\PorterAuthor>|Observable<Schema\PorterLargeFile>|Observable<Schema\IssueComment>|Observable<Schema\IssueEvent>|Observable<Schema\PageBuild>|Observable<Schema\CustomPropertyValue>|Observable<Schema\PullRequestReviewComment>|Observable<Schema\RuleSuites>|Observable<Schema\SecretScanningAlert>|Observable<int>|Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|Observable<Schema\CommitActivity>|Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|Observable<Schema\ContributorActivity>|Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|Observable<Schema\TagProtection>|Observable<Schema\TeamDiscussionComment>|Observable<Schema\Reaction>|Observable<Schema\PackageVersion>|Observable<Schema\Event> */
8282
public function call(string $call, array $params, array $pathChunks): ActionsCacheUsageOrgEnterprise|Ok|SelectedActions|ActionsGetDefaultWorkflowPermissions|RunnerGroupsEnterprise|iterable|Runner|ActionsBillingUsage|AdvancedSecurityActiveCommitters|PackagesBillingUsage|CombinedBillingUsage|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetActionsCacheUsageByRepoForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelectedRepositoriesEnabledGithubActionsOrganization\Response\ApplicationJson\Ok|RunnerGroupsOrg|ActionsPublicKey|OrganizationActionsSecret|OrganizationActionsVariable|CodespacesPublicKey|CodespacesOrgSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\ListCopilotSeats\Response\ApplicationJson\Ok|DependabotPublicKey|OrganizationDependabotSecret|WebhookConfig|Json|WithoutBody|CopilotSeatDetails|Package|OrgCustomProperty|RuleSuite|ExternalGroups|ProjectCollaboratorPermission|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListArtifactsForRepo\Response\ApplicationJson\Ok|ActionsCacheList|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoOrganizationSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoOrganizationVariables\Response\ApplicationJson\Ok|ActionsRepositoryPermissions|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelfHostedRunnersForRepo\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListWorkflowRunsForRepo\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoVariables\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoWorkflows\Response\ApplicationJson\Ok|Autolink|BranchWithProtection|BasicError|CheckRun|CheckSuite|CodeScanningDefaultSetup|CodeownersErrors|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListDevcontainersInRepositoryForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\RepoMachinesForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\PreFlightWithRepoForAuthenticatedUser\Response\ApplicationJson\Ok|CodespacesPermissionsCheckForDevcontainer|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListRepoSecrets\Response\ApplicationJson\Ok|CommitComment|Commit|CommunityProfile|CommitComparison|ContentDirectory|ContentFile|ContentSymlink|ContentSubmodule|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Dependabot\ListRepoSecrets\Response\ApplicationJson\Ok|DependencyGraphSpdxSbom|Deployment|Environment|Hook|Issue|DeployKey|Label|Milestone|PagesHealthCheck|EmptyObject|PullRequest|Release|RepositoryRuleset|RepositoryAdvisory|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|ParticipationStats|CloneTraffic|ViewTraffic|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListEnvironmentSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListEnvironmentVariables\Response\ApplicationJson\Ok\Application\Json|ScimUserList|TeamRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListRepositoriesForSecretForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|CodespaceExportDetails
8383
{
8484
if ($pathChunks[0] === '') {

clients/GitHubEnterpriseCloud/src/Operation/Activity.php

+1
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ public function getThread(int $threadId): Thread|WithoutBody
7878
return $this->operators->activity👷GetThread()->call($threadId);
7979
}
8080

81+
/** @return */
8182
public function markThreadAsDone(int $threadId): WithoutBody
8283
{
8384
return $this->operators->activity👷MarkThreadAsDone()->call($threadId);

clients/GitHubEnterpriseCloud/src/Operation/Repos.php

+1
Original file line numberDiff line numberDiff line change
@@ -1089,6 +1089,7 @@ public function getReleaseByTag(string $owner, string $repo, string $tag): Relea
10891089
return $this->operators->repos👷GetReleaseByTag()->call($owner, $repo, $tag);
10901090
}
10911091

1092+
/** @return */
10921093
public function getRelease(string $owner, string $repo, int $releaseId): Release|WithoutBody
10931094
{
10941095
return $this->operators->repos👷GetRelease()->call($owner, $repo, $releaseId);

clients/GitHubEnterpriseCloud/src/PHPStan/ClientCallReturnTypes.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method
640640
}
641641

642642
if ($call === 'DELETE /notifications/threads/{thread_id}') {
643-
return $this->typeResolver->resolve('\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody');
643+
return $this->typeResolver->resolve('');
644644
}
645645

646646
if ($call === 'PATCH /notifications/threads/{thread_id}') {
@@ -3636,7 +3636,7 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method
36363636
}
36373637

36383638
if ($call === 'GET /repos/{owner}/{repo}/releases/{release_id}') {
3639-
return $this->typeResolver->resolve('Schema\\Release|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody');
3639+
return $this->typeResolver->resolve('');
36403640
}
36413641

36423642
if ($call === 'DELETE /repos/{owner}/{repo}/releases/{release_id}') {

clients/GitHubEnterpriseCloud/tests/Types/ClientCallReturnTypes.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ function authHeader(): string
166166
assertType('Observable<Schema\\Thread>|WithoutBody', $client->call('LIST /notifications'));
167167
assertType('', $client->call('PUT /notifications'));
168168
assertType('', $client->call('GET /notifications/threads/{thread_id}'));
169-
assertType('\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody', $client->call('DELETE /notifications/threads/{thread_id}'));
169+
assertType('', $client->call('DELETE /notifications/threads/{thread_id}'));
170170
assertType('', $client->call('PATCH /notifications/threads/{thread_id}'));
171171
assertType('', $client->call('GET /notifications/threads/{thread_id}/subscription'));
172172
assertType('', $client->call('PUT /notifications/threads/{thread_id}/subscription'));
@@ -915,7 +915,7 @@ function authHeader(): string
915915
assertType('', $client->call('POST /repos/{owner}/{repo}/releases/generate-notes'));
916916
assertType('', $client->call('GET /repos/{owner}/{repo}/releases/latest'));
917917
assertType('', $client->call('GET /repos/{owner}/{repo}/releases/tags/{tag}'));
918-
assertType('Schema\\Release|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody', $client->call('GET /repos/{owner}/{repo}/releases/{release_id}'));
918+
assertType('', $client->call('GET /repos/{owner}/{repo}/releases/{release_id}'));
919919
assertType('', $client->call('DELETE /repos/{owner}/{repo}/releases/{release_id}'));
920920
assertType('', $client->call('PATCH /repos/{owner}/{repo}/releases/{release_id}'));
921921
assertType('Observable<Schema\\ReleaseAsset>', $client->call('GET /repos/{owner}/{repo}/releases/{release_id}/assets'));

0 commit comments

Comments
 (0)