Skip to content

Commit 45ba677

Browse files
authored
Merge pull request #919 from php-api-clients/GitHubEnterprise-3.11/from-1.1.4-009af9395d9c94675ca16c1442141d84-from-1.1.4-009af9395d9c94675ca16c1442141d84
2 parents 75e454d + 1a675a3 commit 45ba677

File tree

8 files changed

+14
-11
lines changed

8 files changed

+14
-11
lines changed

clients/GitHubEnterprise-3.11/etc/openapi-client-generator.state

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"specHash": "163186e7c02f9cd439623d84516cbf0f",
2+
"specHash": "009af9395d9c94675ca16c1442141d84",
33
"generatedFiles": {
44
"files": [
55
{
@@ -9616,7 +9616,7 @@
96169616
},
96179617
{
96189618
"name": ".\/clients\/GitHubEnterprise-3.11\/etc\/..\/\/src\/\/Internal\/Operator\/Repos\/GetRelease.php",
9619-
"hash": "8c9dde0e319b4accaa364e6bef2b4983"
9619+
"hash": "fd2db05221b492fa735a87f497f459e4"
96209620
},
96219621
{
96229622
"name": ".\/clients\/GitHubEnterprise-3.11\/etc\/..\/\/tests\/\/Internal\/Operation\/Repos\/GetReleaseTest.php",
@@ -26672,7 +26672,7 @@
2667226672
},
2667326673
{
2667426674
"name": ".\/clients\/GitHubEnterprise-3.11\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Repos.php",
26675-
"hash": "87ac29bc68f821380d3b5771cd5ac326"
26675+
"hash": "9d07766aa18fa15f28a0e3e0ed8875f2"
2667626676
},
2667726677
{
2667826678
"name": ".\/clients\/GitHubEnterprise-3.11\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Activity.php",
@@ -27144,7 +27144,7 @@
2714427144
},
2714527145
{
2714627146
"name": ".\/clients\/GitHubEnterprise-3.11\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Six.php",
27147-
"hash": "e36b8121bae1bc67f24bcab235012720"
27147+
"hash": "25711f0c083497bf6064832f0dac0bc4"
2714827148
},
2714927149
{
2715027150
"name": ".\/clients\/GitHubEnterprise-3.11\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Two.php",
@@ -27356,11 +27356,11 @@
2735627356
},
2735727357
{
2735827358
"name": ".\/clients\/GitHubEnterprise-3.11\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php",
27359-
"hash": "6b48ad216cd95b2e7b4d438090e0ea45"
27359+
"hash": "ab8721856dbbec55b7f6ad1cc76b3fe6"
2736027360
},
2736127361
{
2736227362
"name": ".\/clients\/GitHubEnterprise-3.11\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php",
27363-
"hash": "9b4649e76c7bc5f02d30dcb7129e3281"
27363+
"hash": "85c12e9903e964ec150ad07e085c85ab"
2736427364
},
2736527365
{
2736627366
"name": ".\/clients\/GitHubEnterprise-3.11\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon",
@@ -27472,7 +27472,7 @@
2747227472
},
2747327473
{
2747427474
"name": ".\/clients\/GitHubEnterprise-3.11\/etc\/..\/\/src\/\/Operation\/Repos.php",
27475-
"hash": "e0f01e6f31ceb1a7e802ccc9ed97f2e2"
27475+
"hash": "b319ed9772dff11031658682056b6bd3"
2747627476
},
2747727477
{
2747827478
"name": ".\/clients\/GitHubEnterprise-3.11\/etc\/..\/\/src\/\/Operation\/Reactions.php",

clients/GitHubEnterprise-3.11/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\GitHubEnterprise\Internal\Operation\Repos\GetRelease($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $releaseId);

clients/GitHubEnterprise-3.11/src/Internal/Router/Get/Repos.php

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

725+
/** @return */
725726
public function getRelease(array $params): Release|WithoutBody
726727
{
727728
$arguments = [];

clients/GitHubEnterprise-3.11/src/Internal/Router/Get/Six.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function __construct(private Routers $routers)
6464
{
6565
}
6666

67-
/** @return |Observable<Schema\RunnerApplication>|Observable<Schema\HookDeliveryItem>|Observable<Schema\MinimalRepository>|Observable<Schema\TeamDiscussion>|Observable<Schema\SimpleUser>|Observable<Schema\TeamProject>|Observable<Schema\Team>|Observable<Schema\CodeScanningAlertItems>|WithoutBody|Observable<Schema\CodeScanningAnalysis>|Observable<Schema\DependabotAlert>|Observable<Schema\IssueComment>|Observable<Schema\IssueEvent>|Observable<Schema\PageBuild>|Observable<Schema\PullRequestReviewComment>|Schema\Release|\ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody|Observable<Schema\Operations\Repos\ListCacheInfo\Response\ApplicationJson\Ok>|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> */
67+
/** @return |Observable<Schema\RunnerApplication>|Observable<Schema\HookDeliveryItem>|Observable<Schema\MinimalRepository>|Observable<Schema\TeamDiscussion>|Observable<Schema\SimpleUser>|Observable<Schema\TeamProject>|Observable<Schema\Team>|Observable<Schema\CodeScanningAlertItems>|WithoutBody|Observable<Schema\CodeScanningAnalysis>|Observable<Schema\DependabotAlert>|Observable<Schema\IssueComment>|Observable<Schema\IssueEvent>|Observable<Schema\PageBuild>|Observable<Schema\PullRequestReviewComment>|Observable<Schema\Operations\Repos\ListCacheInfo\Response\ApplicationJson\Ok>|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> */
6868
public function call(string $call, array $params, array $pathChunks): PreReceiveEnvironmentDownloadStatus|ActionsCacheUsageOrgEnterprise|ActionsCacheUsagePolicyEnterprise|Ok|SelectedActions|ActionsGetDefaultWorkflowPermissions|RunnerGroupsEnterprise|iterable|Runner|AdvancedSecurityActiveCommitters|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\GetActionsCacheUsageByRepoForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListSelectedRepositoriesEnabledGithubActionsOrganization\Response\ApplicationJson\Ok|RunnerGroupsOrg|ActionsPublicKey|OrganizationActionsSecret|OrganizationActionsVariable|DependabotPublicKey|OrganizationDependabotSecret|WebhookConfig|WithoutBody|Package|ExternalGroups|ProjectCollaboratorPermission|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListArtifactsForRepo\Response\ApplicationJson\Ok|ActionsCacheList|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListRepoOrganizationSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListRepoOrganizationVariables\Response\ApplicationJson\Ok|ActionsRepositoryPermissions|Json|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListWorkflowRunsForRepo\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListRepoSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListRepoVariables\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListRepoWorkflows\Response\ApplicationJson\Ok|Autolink|BranchWithProtection|BasicError|CheckRun|CheckSuite|CodeScanningDefaultSetup|CodeownersErrors|CommitComment|Commit|CommitComparison|ContentDirectory|ContentFile|ContentSymlink|ContentSubmodule|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Dependabot\ListRepoSecrets\Response\ApplicationJson\Ok|DependencyGraphSpdxSbom|Deployment|Environment|Hook|Issue|DeployKey|Label|Milestone|RepositoryPreReceiveHook|PullRequest|Release|RepositoryRuleset|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|ParticipationStats|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListEnvironmentSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListEnvironmentVariables\Response\ApplicationJson\Ok\Application\Json|TeamRepository
6969
{
7070
if ($pathChunks[0] === '') {

clients/GitHubEnterprise-3.11/src/Operation/Repos.php

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

1026+
/** @return */
10261027
public function getRelease(string $owner, string $repo, int $releaseId): Release|WithoutBody
10271028
{
10281029
return $this->operators->repos👷GetRelease()->call($owner, $repo, $releaseId);

clients/GitHubEnterprise-3.11/src/PHPStan/ClientCallReturnTypes.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3392,7 +3392,7 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method
33923392
}
33933393

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

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

clients/GitHubEnterprise-3.11/tests/Types/ClientCallReturnTypes.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,7 @@ function authHeader(): string
854854
assertType('', $client->call('POST /repos/{owner}/{repo}/releases/generate-notes'));
855855
assertType('', $client->call('GET /repos/{owner}/{repo}/releases/latest'));
856856
assertType('', $client->call('GET /repos/{owner}/{repo}/releases/tags/{tag}'));
857-
assertType('Schema\\Release|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody', $client->call('GET /repos/{owner}/{repo}/releases/{release_id}'));
857+
assertType('', $client->call('GET /repos/{owner}/{repo}/releases/{release_id}'));
858858
assertType('', $client->call('DELETE /repos/{owner}/{repo}/releases/{release_id}'));
859859
assertType('', $client->call('PATCH /repos/{owner}/{repo}/releases/{release_id}'));
860860
assertType('Observable<Schema\\ReleaseAsset>', $client->call('GET /repos/{owner}/{repo}/releases/{release_id}/assets'));

etc/specs/GitHubEnterprise-3.11/current.spec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24333,7 +24333,7 @@ paths:
2433324333
see \"[Managing code scanning alerts for your repository](/code-security/secure-coding/managing-code-scanning-alerts-for-your-repository#viewing-the-alerts-for-a-repository).\"\n\nYou
2433424334
must compress the SARIF-formatted analysis data that you want to upload, using
2433524335
`gzip`, and then encode it as a Base64 format string. For example:\n\n```\ngzip
24336-
-c analysis-data.sarif | base64 -w0\n```\n<br>\nSARIF upload supports a maximum
24336+
-c analysis-data.sarif | base64 -w0\n```\n\nSARIF upload supports a maximum
2433724337
number of entries per the following data objects, and an analysis will be
2433824338
rejected if any of these objects is above its maximum value. For some objects,
2433924339
there are additional values over which the entries will be ignored while keeping

0 commit comments

Comments
 (0)