Skip to content

Commit 606e60d

Browse files
authored
[GitHub] Update to 1.1.4-e5ecf2a9671947a784307bf16cb11ce2 from 1.1.4-ed5550c2efb9457d295e9fdc8af6d2c7
Detected Schema changes: starting work. Building original model for commit 326981 SPEC: extracted 2 commits from history DONE: completed └─┬Paths ├─┬/orgs/{org}/properties/values │ ├─┬GET │ │ └──[M] description (11045:20) │ └─┬PATCH │ └──[M] description (11096:20) ├─┬/repos/{owner}/{repo}/properties/values │ └─┬GET │ └──[M] description (31886:20) ├─┬/orgs/{org}/properties/schema/{custom_property_name} │ ├─┬GET │ │ └──[M] description (10905:20) │ ├─┬PUT │ │ └──[M] description (10938:20) │ └─┬DELETE │ └──[M] description (11018:20) ├─┬/repos/{owner}/{repo}/code-scanning/sarifs │ └─┬POST │ └──[M] description (22129:20) └─┬/orgs/{org}/properties/schema ├─┬GET │ └──[M] description (10803:20) └─┬PATCH └──[M] description (10837:20) Date: 12/23/23 | Commit: New: etc/specs/GitHub/previous.spec.yaml, Original: etc/specs/GitHub/current.spec.yaml Document Element | Total Changes | Breaking Changes paths | 9 | 0 INFO: Total Changes: 9 INFO: Modifications: 9
1 parent c294ba0 commit 606e60d

File tree

12 files changed

+56
-24
lines changed

12 files changed

+56
-24
lines changed

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

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"specHash": "ed5550c2efb9457d295e9fdc8af6d2c7",
2+
"specHash": "e5ecf2a9671947a784307bf16cb11ce2",
33
"generatedFiles": {
44
"files": [
55
{
@@ -5760,7 +5760,7 @@
57605760
},
57615761
{
57625762
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Activity.php",
5763-
"hash": "46703b4491236bb2c9d2833e5fd08d41"
5763+
"hash": "1fb47d2adf406c87ec1188e704799fa5"
57645764
},
57655765
{
57665766
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Gists.php",
@@ -5820,7 +5820,7 @@
58205820
},
58215821
{
58225822
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Repos.php",
5823-
"hash": "29f2ee9b73113f29b3dd608e30611b5c"
5823+
"hash": "2c55eedb2a58df05994d4722aa7b610e"
58245824
},
58255825
{
58265826
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Billing.php",
@@ -22844,7 +22844,7 @@
2284422844
},
2284522845
{
2284622846
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Repos\/GetRelease.php",
22847-
"hash": "93c72ba70124239391b48c7449bd028f"
22847+
"hash": "a795e9d5080ae4065b9d573395b0646f"
2284822848
},
2284922849
{
2285022850
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Repos\/GetReleaseTest.php",
@@ -26424,7 +26424,7 @@
2642426424
},
2642526425
{
2642626426
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Repos.php",
26427-
"hash": "c88f4b78f81bbfeda2b1ff10f06c02e9"
26427+
"hash": "f1304f5e15e4c86b5b8a3ce624c99048"
2642826428
},
2642926429
{
2643026430
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Users.php",
@@ -26772,7 +26772,7 @@
2677226772
},
2677326773
{
2677426774
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Activity.php",
26775-
"hash": "cc518afdc9f432281102360dc30acf09"
26775+
"hash": "18e5677b67a415e79380dcd2f52a8062"
2677626776
},
2677726777
{
2677826778
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Orgs.php",
@@ -26920,7 +26920,7 @@
2692026920
},
2692126921
{
2692226922
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Six.php",
26923-
"hash": "8d552e2346dcbf0cd1d6e3458b03fda0"
26923+
"hash": "fa2bdbb8035a1b940cc7c023119de3e3"
2692426924
},
2692526925
{
2692626926
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Seven.php",
@@ -27044,7 +27044,7 @@
2704427044
},
2704527045
{
2704627046
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Four.php",
27047-
"hash": "9d7447c34c1bfc0f5846fbdf721cb3bf"
27047+
"hash": "10af923e1c33e3fa65350d07dc88e7c7"
2704827048
},
2704927049
{
2705027050
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Five.php",
@@ -29780,11 +29780,11 @@
2978029780
},
2978129781
{
2978229782
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php",
29783-
"hash": "650329959f8e800ee206236de033be90"
29783+
"hash": "764966e8bdff318f8e14a72643f29abd"
2978429784
},
2978529785
{
2978629786
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php",
29787-
"hash": "5650b17f152d0578bf98f5be878ec961"
29787+
"hash": "79b6d4c27d18a9469d2439a4046bbc6b"
2978829788
},
2978929789
{
2979029790
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon",
@@ -30632,7 +30632,7 @@
3063230632
},
3063330633
{
3063430634
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Activity\/MarkThreadAsDone.php",
30635-
"hash": "9334b59da8c3c3784450f140258fb92f"
30635+
"hash": "f5f9a195cb2edcdd21a92767fdf67d46"
3063630636
}
3063730637
]
3063830638
},

clients/GitHub/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\GitHub\Internal\Operation\Activity\MarkThreadAsDone($threadId);

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

clients/GitHub/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/GitHub/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/GitHub/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/GitHub/src/Internal/Router/Get/Six.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function __construct(private Routers $routers)
7373
{
7474
}
7575

76-
/** @return Observable<Schema\MarketplacePurchase>||Observable<Schema\RunnerApplication>|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> */
76+
/** @return Observable<Schema\MarketplacePurchase>||Observable<Schema\RunnerApplication>|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> */
7777
public function call(string $call, array $params, array $pathChunks): iterable|ActionsCacheUsageOrgEnterprise|Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelectedRepositoriesEnabledGithubActionsOrganization\Response\ApplicationJson\Ok|SelectedActions|ActionsGetDefaultWorkflowPermissions|Runner|ActionsPublicKey|OrganizationActionsSecret|OrganizationActionsVariable|CodespacesPublicKey|CodespacesOrgSecret|\ApiClients\Client\GitHub\Schema\Operations\Copilot\ListCopilotSeats\Response\ApplicationJson\Ok|DependabotPublicKey|OrganizationDependabotSecret|WebhookConfig|Json|WithoutBody|CopilotSeatDetails|Package|OrgCustomProperty|RuleSuite|ActionsBillingUsage|PackagesBillingUsage|CombinedBillingUsage|ProjectCollaboratorPermission|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListArtifactsForRepo\Response\ApplicationJson\Ok|ActionsCacheList|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoOrganizationSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoOrganizationVariables\Response\ApplicationJson\Ok|ActionsRepositoryPermissions|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnersForRepo\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListWorkflowRunsForRepo\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoVariables\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoWorkflows\Response\ApplicationJson\Ok|Autolink|BranchWithProtection|BasicError|CheckRun|CheckSuite|CodeScanningDefaultSetup|CodeownersErrors|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListDevcontainersInRepositoryForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\RepoMachinesForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\PreFlightWithRepoForAuthenticatedUser\Response\ApplicationJson\Ok|CodespacesPermissionsCheckForDevcontainer|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListRepoSecrets\Response\ApplicationJson\Ok|CommitComment|Commit|CommunityProfile|CommitComparison|ContentDirectory|ContentFile|ContentSymlink|ContentSubmodule|\ApiClients\Client\GitHub\Schema\Operations\Dependabot\ListRepoSecrets\Response\ApplicationJson\Ok|DependencyGraphSpdxSbom|Deployment|Environment|Hook|Issue|DeployKey|Label|Milestone|PagesHealthCheck|EmptyObject|PullRequest|Release|RepositoryRuleset|RepositoryAdvisory|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|ParticipationStats|CloneTraffic|ViewTraffic|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListEnvironmentSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListEnvironmentVariables\Response\ApplicationJson\Ok\Application\Json|TeamRepository|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListRepositoriesForSecretForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|CodespaceExportDetails
7878
{
7979
if ($pathChunks[0] === '') {

clients/GitHub/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/GitHub/src/Operation/Repos.php

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

1080+
/** @return */
10801081
public function getRelease(string $owner, string $repo, int $releaseId): Release|WithoutBody
10811082
{
10821083
return $this->operators->repos👷GetRelease()->call($owner, $repo, $releaseId);

clients/GitHub/src/PHPStan/ClientCallReturnTypes.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method
424424
}
425425

426426
if ($call === 'DELETE /notifications/threads/{thread_id}') {
427-
return $this->typeResolver->resolve('\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody');
427+
return $this->typeResolver->resolve('');
428428
}
429429

430430
if ($call === 'PATCH /notifications/threads/{thread_id}') {
@@ -3248,7 +3248,7 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method
32483248
}
32493249

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

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

clients/GitHub/tests/Types/ClientCallReturnTypes.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ function authHeader(): string
112112
assertType('Observable<Schema\\Thread>|WithoutBody', $client->call('LIST /notifications'));
113113
assertType('', $client->call('PUT /notifications'));
114114
assertType('', $client->call('GET /notifications/threads/{thread_id}'));
115-
assertType('\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody', $client->call('DELETE /notifications/threads/{thread_id}'));
115+
assertType('', $client->call('DELETE /notifications/threads/{thread_id}'));
116116
assertType('', $client->call('PATCH /notifications/threads/{thread_id}'));
117117
assertType('', $client->call('GET /notifications/threads/{thread_id}/subscription'));
118118
assertType('', $client->call('PUT /notifications/threads/{thread_id}/subscription'));
@@ -818,7 +818,7 @@ function authHeader(): string
818818
assertType('', $client->call('POST /repos/{owner}/{repo}/releases/generate-notes'));
819819
assertType('', $client->call('GET /repos/{owner}/{repo}/releases/latest'));
820820
assertType('', $client->call('GET /repos/{owner}/{repo}/releases/tags/{tag}'));
821-
assertType('Schema\\Release|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody', $client->call('GET /repos/{owner}/{repo}/releases/{release_id}'));
821+
assertType('', $client->call('GET /repos/{owner}/{repo}/releases/{release_id}'));
822822
assertType('', $client->call('DELETE /repos/{owner}/{repo}/releases/{release_id}'));
823823
assertType('', $client->call('PATCH /repos/{owner}/{repo}/releases/{release_id}'));
824824
assertType('Observable<Schema\\ReleaseAsset>', $client->call('GET /repos/{owner}/{repo}/releases/{release_id}/assets'));

0 commit comments

Comments
 (0)