From 3eedb46cbb9bc9aac3e65398b49264d72d6a4edb Mon Sep 17 00:00:00 2001 From: WyriHaximus <147145+WyriHaximus@users.noreply.github.com> Date: Mon, 2 Dec 2024 17:58:30 +0000 Subject: [PATCH] =?UTF-8?q?[GitHubEnterpriseCloud]=20Update=20to=201.1.4-4?= =?UTF-8?q?0f7495bbfb76a67ec180340807d94b8=20from=201.1.4-6031e990fa8be80f?= =?UTF-8?q?ce1e724bbabe2ab5=20Detected=20Schema=20changes:=202024-12-02=20?= =?UTF-8?q?17:30:25=20ERROR=20unable=20to=20open=20the=20rolodex=20file,?= =?UTF-8?q?=20check=20specification=20references=20and=20base=20path=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=E2=94=9C=20file:=20/=5F=5Fw/github-root/github-root/server-sta?= =?UTF-8?q?tistics-actions.yaml=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=E2=94=94=20error:=20open=20/=5F=5Fw?= =?UTF-8?q?/github-root/github-root/server-statistics-actions.yaml:=20no?= =?UTF-8?q?=20such=20file=20or=20directory=202024-12-02=2017:30:25=20ERROR?= =?UTF-8?q?=20unable=20to=20open=20the=20rolodex=20file,=20check=20specifi?= =?UTF-8?q?cation=20references=20and=20base=20path=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=E2=94=9C=20file:?= =?UTF-8?q?=20/=5F=5Fw/github-root/github-root/server-statistics-packages.?= =?UTF-8?q?yaml=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=E2=94=94=20error:=20open=20/=5F=5Fw/github-root/gi?= =?UTF-8?q?thub-root/server-statistics-packages.yaml:=20no=20such=20file?= =?UTF-8?q?=20or=20directory=202024-12-02=2017:30:25=20ERROR=20unable=20to?= =?UTF-8?q?=20open=20the=20rolodex=20file,=20check=20specification=20refer?= =?UTF-8?q?ences=20and=20base=20path=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=E2=94=9C=20file:=20/=5F=5Fw/g?= =?UTF-8?q?ithub-root/github-root/server-statistics-advisory-db.yaml=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=E2=94=94=20error:=20open=20/=5F=5Fw/github-root/github-root/se?= =?UTF-8?q?rver-statistics-advisory-db.yaml:=20no=20such=20file=20or=20dir?= =?UTF-8?q?ectory=202024-12-02=2017:30:27=20ERROR=20unable=20to=20open=20t?= =?UTF-8?q?he=20rolodex=20file,=20check=20specification=20references=20and?= =?UTF-8?q?=20base=20path=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=E2=94=9C=20file:=20/=5F=5Fw/github-root/g?= =?UTF-8?q?ithub-root/server-statistics-actions.yaml=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=E2=94=94=20err?= =?UTF-8?q?or:=20open=20/=5F=5Fw/github-root/github-root/server-statistics?= =?UTF-8?q?-actions.yaml:=20no=20such=20file=20or=20directory=202024-12-02?= =?UTF-8?q?=2017:30:27=20ERROR=20unable=20to=20open=20the=20rolodex=20file?= =?UTF-8?q?,=20check=20specification=20references=20and=20base=20path=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=E2=94=9C=20file:=20/=5F=5Fw/github-root/github-root/server-?= =?UTF-8?q?statistics-packages.yaml=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=E2=94=94=20error:=20open=20/=5F?= =?UTF-8?q?=5Fw/github-root/github-root/server-statistics-packages.yaml:?= =?UTF-8?q?=20no=20such=20file=20or=20directory=202024-12-02=2017:30:27=20?= =?UTF-8?q?ERROR=20unable=20to=20open=20the=20rolodex=20file,=20check=20sp?= =?UTF-8?q?ecification=20references=20and=20base=20path=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=E2=94=9C=20?= =?UTF-8?q?file:=20/=5F=5Fw/github-root/github-root/server-statistics-advi?= =?UTF-8?q?sory-db.yaml=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=E2=94=94=20error:=20open=20/=5F=5Fw/github-r?= =?UTF-8?q?oot/github-root/server-statistics-advisory-db.yaml:=20no=20such?= =?UTF-8?q?=20file=20or=20directory=20ERROR:=20component=20`server-statist?= =?UTF-8?q?ics-actions.yaml`=20does=20not=20exist=20in=20the=20specificati?= =?UTF-8?q?on=20ERROR:=20component=20`server-statistics-packages.yaml`=20d?= =?UTF-8?q?oes=20not=20exist=20in=20the=20specification=20ERROR:=20compone?= =?UTF-8?q?nt=20`server-statistics-advisory-db.yaml`=20does=20not=20exist?= =?UTF-8?q?=20in=20the=20specification=20ERROR:=20cannot=20resolve=20refer?= =?UTF-8?q?ence=20`server-statistics-actions.yaml`,=20it's=20missing:=20?= =?UTF-8?q?=20[210549:11]=20ERROR:=20cannot=20resolve=20reference=20`serve?= =?UTF-8?q?r-statistics-packages.yaml`,=20it's=20missing:=20=20[210551:11]?= =?UTF-8?q?=20ERROR:=20cannot=20resolve=20reference=20`server-statistics-a?= =?UTF-8?q?dvisory-db.yaml`,=20it's=20missing:=20=20[210553:11]=20ERROR:?= =?UTF-8?q?=20component=20`server-statistics-actions.yaml`=20does=20not=20?= =?UTF-8?q?exist=20in=20the=20specification=20ERROR:=20component=20`server?= =?UTF-8?q?-statistics-packages.yaml`=20does=20not=20exist=20in=20the=20sp?= =?UTF-8?q?ecification=20ERROR:=20component=20`server-statistics-advisory-?= =?UTF-8?q?db.yaml`=20does=20not=20exist=20in=20the=20specification=20ERRO?= =?UTF-8?q?R:=20cannot=20resolve=20reference=20`server-statistics-actions.?= =?UTF-8?q?yaml`,=20it's=20missing:=20=20[210546:11]=20ERROR:=20cannot=20r?= =?UTF-8?q?esolve=20reference=20`server-statistics-packages.yaml`,=20it's?= =?UTF-8?q?=20missing:=20=20[210548:11]=20ERROR:=20cannot=20resolve=20refe?= =?UTF-8?q?rence=20`server-statistics-advisory-db.yaml`,=20it's=20missing:?= =?UTF-8?q?=20=20[210550:11]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../etc/openapi-client-generator.state | 42 +++++++++---------- .../Internal/Operator/Issues/AddSubIssue.php | 1 + .../Operator/Issues/ListSubIssues.php | 2 +- .../Operator/Issues/ListSubIssuesListing.php | 2 +- .../Operator/Issues/RemoveSubIssue.php | 1 + .../Operator/Issues/ReprioritizeSubIssue.php | 1 + .../src/Internal/Router/Delete/Issues.php | 1 + .../src/Internal/Router/Delete/Seven.php | 1 - .../src/Internal/Router/Get/Issues.php | 2 +- .../src/Internal/Router/Get/Seven.php | 2 +- .../src/Internal/Router/List/Issues.php | 2 +- .../src/Internal/Router/List/Seven.php | 2 +- .../src/Internal/Router/Patch/Eight.php | 1 - .../src/Internal/Router/Patch/Issues.php | 1 + .../src/Internal/Router/Post/Issues.php | 1 + .../src/Internal/Router/Post/Seven.php | 2 +- .../src/Operation/Issues.php | 7 +++- .../src/PHPStan/ClientCallReturnTypes.php | 10 ++--- .../tests/Types/ClientCallReturnTypes.php | 10 ++--- .../GitHubEnterpriseCloud/current.spec.yaml | 5 ++- 20 files changed, 53 insertions(+), 43 deletions(-) diff --git a/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state b/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state index 485ca0ef00f..74a0332d17e 100644 --- a/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state +++ b/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state @@ -1,5 +1,5 @@ { - "specHash": "6031e990fa8be80fce1e724bbabe2ab5", + "specHash": "40f7495bbfb76a67ec180340807d94b8", "generatedFiles": { "files": [ { @@ -5896,7 +5896,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/SecretScanning.php", - "hash": "b1ebb8de16c9b5b4a5abe071cdef7be7" + "hash": "94da37f210f9fc8d7220b2d7e525770e" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Dependabot.php", @@ -5920,7 +5920,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Issues.php", - "hash": "0547627668b7231ac2fd3ee0562e4a17" + "hash": "e1ee990ebfb7ef25d38ad7c4a4d7b2ad" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Licenses.php", @@ -5964,7 +5964,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Repos.php", - "hash": "41c7fbdc7b57bf3c0feacee1739db937" + "hash": "4b9f4a40fdbfbce7a285c1f1b104c211" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Reactions.php", @@ -25972,7 +25972,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Issues.php", - "hash": "b8c50300981a529c89532cce39036207" + "hash": "797bb76663c925fd838721381847cb08" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Licenses.php", @@ -26168,7 +26168,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Issues.php", - "hash": "92b8ba01c8a6e08184904699052bea6e" + "hash": "df724da359532b532be15cda79e29740" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Pulls.php", @@ -26244,7 +26244,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Patch\/Issues.php", - "hash": "516a99f6306636a4be041d5cdbe700f9" + "hash": "dc19cbcfa23e49049fdf0b45a73e86b5" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Patch\/Pulls.php", @@ -26284,7 +26284,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Issues.php", - "hash": "d84c05552d5b01d9775b56252435d614" + "hash": "f2b1e5a44ac822d00b2d5d90dc626f10" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Migrations.php", @@ -26420,7 +26420,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Issues.php", - "hash": "9093955b18677b388dbc68ca690b96df" + "hash": "696523145b2946079072a870c1f7f529" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Pulls.php", @@ -26548,7 +26548,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Seven.php", - "hash": "8d38f8991ea9c2af9d12bde2a03e2b45" + "hash": "a692e3b2521738ca59df4bcc4aee1495" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Eight.php", @@ -26576,7 +26576,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Seven.php", - "hash": "19e808ea0465474f48898cf1f2345413" + "hash": "7e7fe58d896c21a433c1b9f772f515da" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Two.php", @@ -26624,7 +26624,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Patch\/Eight.php", - "hash": "23882f7964d4d0c2a69be9fdd2a973bf" + "hash": "9e3b353c59585ed9eac5bea8e535f57a" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Patch\/Two.php", @@ -26652,7 +26652,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Seven.php", - "hash": "965c62bbe8aa3bcbda8e98777df286c0" + "hash": "89120109b1bc14b8060b0858ae50db7c" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Eight.php", @@ -26676,7 +26676,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Seven.php", - "hash": "1345779ecab7f3a10e79fae919e36be7" + "hash": "35ce09795e55d9a834f086db8e055283" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Six.php", @@ -29720,11 +29720,11 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php", - "hash": "8da3adbbc8fb36258bed4d09b30ccee6" + "hash": "9fb2359832cefbb49d9f81ba78cfecf7" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php", - "hash": "759afd5395123a7e32fcb8783d0f4110" + "hash": "6044d1b8c89b01b2f93df23272008524" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon", @@ -33364,7 +33364,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Issues\/RemoveSubIssue.php", - "hash": "64bce4e07dfd0d0d4f8120f57ef7db32" + "hash": "6cb34030c21e8934eb0e7be3b5921eeb" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Issues\/RemoveSubIssueTest.php", @@ -33376,7 +33376,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Issues\/ListSubIssues.php", - "hash": "00e4bc812245d722964349c797c71135" + "hash": "bca8c6a0bfdc6cd7e68c6ded26305011" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Issues\/ListSubIssuesTest.php", @@ -33388,7 +33388,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Issues\/ListSubIssuesListing.php", - "hash": "2af4de37e4bc88ad14227e478f89e557" + "hash": "4c6e5e3d5959121ecae2a58e8cfdaf4f" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Issues\/ListSubIssuesListingTest.php", @@ -33400,7 +33400,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Issues\/AddSubIssue.php", - "hash": "a3844818a4f2de40479835751e6b8ce7" + "hash": "3cf8d5b3e4335c3461bd05d798f4ba6e" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Issues\/AddSubIssueTest.php", @@ -33412,7 +33412,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Issues\/ReprioritizeSubIssue.php", - "hash": "ecc2d0d4ed8f112300ff800891747cef" + "hash": "d64b24af2328e6cdef58d1f312b6f93d" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Issues\/ReprioritizeSubIssueTest.php", diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Issues/AddSubIssue.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Issues/AddSubIssue.php index 69acc3bbcd4..3ebbe30f84d 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Issues/AddSubIssue.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Issues/AddSubIssue.php @@ -24,6 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } + /** @return */ public function call(string $owner, string $repo, int $issueNumber, array $params): Issue { $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\Issues\AddSubIssue($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $owner, $repo, $issueNumber); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Issues/ListSubIssues.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Issues/ListSubIssues.php index eea64fad34a..5719218c40b 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Issues/ListSubIssues.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Issues/ListSubIssues.php @@ -24,7 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, int $issueNumber, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\Issues\ListSubIssues($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $issueNumber, $perPage, $page); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Issues/ListSubIssuesListing.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Issues/ListSubIssuesListing.php index 7be9a63cc34..9b5796bc2de 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Issues/ListSubIssuesListing.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Issues/ListSubIssuesListing.php @@ -24,7 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, int $issueNumber, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\Issues\ListSubIssuesListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $issueNumber, $perPage, $page); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Issues/RemoveSubIssue.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Issues/RemoveSubIssue.php index 90aa84d5a14..f55d03abee1 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Issues/RemoveSubIssue.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Issues/RemoveSubIssue.php @@ -24,6 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } + /** @return */ public function call(string $owner, string $repo, int $issueNumber, array $params): Issue { $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\Issues\RemoveSubIssue($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $owner, $repo, $issueNumber); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Issues/ReprioritizeSubIssue.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Issues/ReprioritizeSubIssue.php index 9e73c157757..49d2e873696 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Issues/ReprioritizeSubIssue.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Issues/ReprioritizeSubIssue.php @@ -24,6 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } + /** @return */ public function call(string $owner, string $repo, int $issueNumber, array $params): Issue { $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\Issues\ReprioritizeSubIssue($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $owner, $repo, $issueNumber); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Issues.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Issues.php index bdfe1646d44..2f640ee39be 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Issues.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Issues.php @@ -130,6 +130,7 @@ public function unlock(array $params): WithoutBody return $operator->call($arguments['owner'], $arguments['repo'], $arguments['issue_number']); } + /** @return */ public function removeSubIssue(array $params): Issue { $arguments = []; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Seven.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Seven.php index 042e25a0644..6dc7324eeda 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Seven.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Seven.php @@ -19,7 +19,6 @@ public function __construct(private Routers $routers) { } - /** @return |Schema\Issue */ public function call(string $call, array $params, array $pathChunks): WithoutBody|Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\RemoveAllCustomLabelsFromSelfHostedRunnerForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\DeleteFromOrganization\Response\ApplicationJson\Accepted\Application\Json|CodeScanningAnalysisDeletion|Issue|BasicError|PullRequestSimple { if ($pathChunks[0] === '') { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Issues.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Issues.php index c31d530358f..8d9f5097734 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Issues.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Issues.php @@ -800,7 +800,7 @@ public function listLabelsOnIssue(array $params): iterable|BasicError return $operator->call($arguments['owner'], $arguments['repo'], $arguments['issue_number'], $arguments['per_page'], $arguments['page']); } - /** @return iterable */ + /** @return Observable */ public function listSubIssues(array $params): iterable { $arguments = []; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Seven.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Seven.php index ed5e4fc3d24..7127fd0f0aa 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Seven.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Seven.php @@ -67,7 +67,7 @@ public function __construct(private Routers $routers) { } - /** @return |Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\BasicError|Observable|Observable|Observable|Observable|Observable|Observable|Observable|iterable|Schema\ConvertedNoteToIssueIssueEvent|Schema\TimelineCommentEvent|Schema\TimelineCrossReferencedEvent|Schema\TimelineCommittedEvent|Schema\TimelineReviewedEvent|Schema\TimelineLineCommentedEvent|Schema\TimelineCommitCommentedEvent|Schema\TimelineAssignedIssueEvent|Schema\TimelineUnassignedIssueEvent|Schema\StateChangeIssueEvent>|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ + /** @return |Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\BasicError|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\ConvertedNoteToIssueIssueEvent|Schema\TimelineCommentEvent|Schema\TimelineCrossReferencedEvent|Schema\TimelineCommittedEvent|Schema\TimelineReviewedEvent|Schema\TimelineLineCommentedEvent|Schema\TimelineCommitCommentedEvent|Schema\TimelineAssignedIssueEvent|Schema\TimelineUnassignedIssueEvent|Schema\StateChangeIssueEvent>|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): Json|Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListLabelsForSelfHostedRunnerForEnterprise\Response\ApplicationJson\Ok|iterable|OidcCustomSub|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoAccessToSelfHostedRunnerGroupInOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelfHostedRunnersInGroupForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelectedReposForOrgVariable\Response\ApplicationJson\Ok\Application\Json|WithoutBody|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Dependabot\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|HookDelivery|TeamDiscussion|TeamMembership|TeamProject|GroupMapping|Artifact|ActionsCacheUsageByRepository|Job|ActionsWorkflowAccessToRepository|SelectedActions|ActionsGetDefaultWorkflowPermissions|Runner|WorkflowRun|ActionsPublicKey|ActionsSecret|ActionsVariable|Workflow|BranchProtection|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Checks\ListForSuite\Response\ApplicationJson\Ok|CodeScanningAlert|CodeScanningAnalysis|CodeScanningSarifsStatus|CodespacesPublicKey|RepoCodespacesSecret|RepositoryCollaboratorPermission|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Checks\ListForRef\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Checks\ListSuitesForRef\Response\ApplicationJson\Ok|CombinedCommitStatus|BasicError|DependabotAlert|DependabotPublicKey|DependabotSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\ListDeploymentBranchPolicies\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetAllDeploymentProtectionRules\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListEnvironmentSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListEnvironmentVariables\Response\ApplicationJson\Ok\Application\Json|Blob|GitCommit|GitRef|GitTag|GitTree|WebhookConfig|IssueComment|IssueEvent|PageBuild|PagesDeploymentStatus|PullRequestReviewComment|PullRequestReviewRequest|ReleaseAsset|Release|RuleSuite|SecretScanningAlert|GroupResponse|UserResponse|ScimUser|TeamDiscussionComment|PackageVersion { if ($pathChunks[0] === '') { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Issues.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Issues.php index 2e17db043ce..67e7b392427 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Issues.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Issues.php @@ -610,7 +610,7 @@ public function listLabelsOnIssueListing(array $params): iterable|BasicError } while (count($items) > 0); } - /** @return iterable */ + /** @return Observable */ public function listSubIssuesListing(array $params): iterable { $arguments = []; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Seven.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Seven.php index 204f2e84f0e..b0e702c2355 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Seven.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Seven.php @@ -14,7 +14,7 @@ public function __construct(private Routers $routers) { } - /** @return Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\BasicError|Observable|Observable|Observable|Observable|iterable|Schema\ConvertedNoteToIssueIssueEvent|Schema\TimelineCommentEvent|Schema\TimelineCrossReferencedEvent|Schema\TimelineCommittedEvent|Schema\TimelineReviewedEvent|Schema\TimelineLineCommentedEvent|Schema\TimelineCommitCommentedEvent|Schema\TimelineAssignedIssueEvent|Schema\TimelineUnassignedIssueEvent|Schema\StateChangeIssueEvent>|Observable|Observable|Observable|Observable|Observable|Observable */ + /** @return Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\BasicError|Observable|Observable|Observable|Observable|Observable|Schema\ConvertedNoteToIssueIssueEvent|Schema\TimelineCommentEvent|Schema\TimelineCrossReferencedEvent|Schema\TimelineCommittedEvent|Schema\TimelineReviewedEvent|Schema\TimelineLineCommentedEvent|Schema\TimelineCommitCommentedEvent|Schema\TimelineAssignedIssueEvent|Schema\TimelineUnassignedIssueEvent|Schema\StateChangeIssueEvent>|Observable|Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): iterable|BasicError { if ($pathChunks[0] === '') { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Patch/Eight.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Patch/Eight.php index 4bb36b0e50f..c23c37e1c59 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Patch/Eight.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Patch/Eight.php @@ -17,7 +17,6 @@ public function __construct(private Routers $routers) { } - /** @return |Schema\Issue */ public function call(string $call, array $params, array $pathChunks): ProtectedBranchPullRequestReview|StatusCheckPolicy|WithoutBody|Issue { if ($pathChunks[0] === '') { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Patch/Issues.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Patch/Issues.php index eb5f3a47ab2..093be6af221 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Patch/Issues.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Patch/Issues.php @@ -131,6 +131,7 @@ public function updateComment(array $params): IssueComment return $operator->call($arguments['owner'], $arguments['repo'], $arguments['comment_id'], $params); } + /** @return */ public function reprioritizeSubIssue(array $params): Issue { $arguments = []; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Post/Issues.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Post/Issues.php index 22f7302bc33..a86d252b732 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Post/Issues.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Post/Issues.php @@ -168,6 +168,7 @@ public function addLabels(array $params): iterable|BasicError return $operator->call($arguments['owner'], $arguments['repo'], $arguments['issue_number'], $params); } + /** @return */ public function addSubIssue(array $params): Issue { $arguments = []; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Post/Seven.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Post/Seven.php index ff9627ef670..c785c96a392 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Post/Seven.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Post/Seven.php @@ -35,7 +35,7 @@ public function __construct(private Routers $routers) { } - /** @return |Observable|Schema\BasicError|Schema\Issue */ + /** @return |Observable|Schema\BasicError */ public function call(string $call, array $params, array $pathChunks): Ok|Json|WithoutBody|Created|AuthenticationToken|BranchWithProtection|EmptyObject|CodeScanningVariantAnalysis|Reaction|CommitComment|DeploymentStatus|DeploymentBranchPolicy|DeploymentProtectionRule|Issue|IssueComment|iterable|BasicError|Codespace|PullRequestReviewComment|PullRequestSimple|PullRequestReview|ReleaseAsset|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\SecurityAdvisories\CreateRepositoryAdvisoryCveRequest\Response\ApplicationJson\Accepted\Application\Json|FullRepository { if ($pathChunks[0] === '') { diff --git a/clients/GitHubEnterpriseCloud/src/Operation/Issues.php b/clients/GitHubEnterpriseCloud/src/Operation/Issues.php index 78192cf7dd3..454e6b03c9e 100644 --- a/clients/GitHubEnterpriseCloud/src/Operation/Issues.php +++ b/clients/GitHubEnterpriseCloud/src/Operation/Issues.php @@ -236,28 +236,31 @@ public function unlock(string $owner, string $repo, int $issueNumber): WithoutBo return $this->operators->issues👷Unlock()->call($owner, $repo, $issueNumber); } + /** @return */ public function removeSubIssue(string $owner, string $repo, int $issueNumber, array $params): Issue { return $this->operators->issues👷RemoveSubIssue()->call($owner, $repo, $issueNumber, $params); } - /** @return iterable */ + /** @return Observable */ public function listSubIssues(string $owner, string $repo, int $issueNumber, int $perPage, int $page): iterable { return $this->operators->issues👷ListSubIssues()->call($owner, $repo, $issueNumber, $perPage, $page); } - /** @return iterable */ + /** @return Observable */ public function listSubIssuesListing(string $owner, string $repo, int $issueNumber, int $perPage, int $page): iterable { return $this->operators->issues👷ListSubIssuesListing()->call($owner, $repo, $issueNumber, $perPage, $page); } + /** @return */ public function addSubIssue(string $owner, string $repo, int $issueNumber, array $params): Issue { return $this->operators->issues👷AddSubIssue()->call($owner, $repo, $issueNumber, $params); } + /** @return */ public function reprioritizeSubIssue(string $owner, string $repo, int $issueNumber, array $params): Issue { return $this->operators->issues👷ReprioritizeSubIssue()->call($owner, $repo, $issueNumber, $params); diff --git a/clients/GitHubEnterpriseCloud/src/PHPStan/ClientCallReturnTypes.php b/clients/GitHubEnterpriseCloud/src/PHPStan/ClientCallReturnTypes.php index f0296d6aea8..7f33e1ab637 100644 --- a/clients/GitHubEnterpriseCloud/src/PHPStan/ClientCallReturnTypes.php +++ b/clients/GitHubEnterpriseCloud/src/PHPStan/ClientCallReturnTypes.php @@ -3520,23 +3520,23 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'DELETE /repos/{owner}/{repo}/issues/{issue_number}/sub_issue') { - return $this->typeResolver->resolve('Schema\\Issue'); + return $this->typeResolver->resolve(''); } if ($call === 'GET /repos/{owner}/{repo}/issues/{issue_number}/sub_issues') { - return $this->typeResolver->resolve('iterable'); + return $this->typeResolver->resolve('Observable'); } if ($call === 'LIST /repos/{owner}/{repo}/issues/{issue_number}/sub_issues') { - return $this->typeResolver->resolve('iterable'); + return $this->typeResolver->resolve('Observable'); } if ($call === 'POST /repos/{owner}/{repo}/issues/{issue_number}/sub_issues') { - return $this->typeResolver->resolve('Schema\\Issue'); + return $this->typeResolver->resolve(''); } if ($call === 'PATCH /repos/{owner}/{repo}/issues/{issue_number}/sub_issues/priority') { - return $this->typeResolver->resolve('Schema\\Issue'); + return $this->typeResolver->resolve(''); } if ($call === 'GET /repos/{owner}/{repo}/issues/{issue_number}/timeline') { diff --git a/clients/GitHubEnterpriseCloud/tests/Types/ClientCallReturnTypes.php b/clients/GitHubEnterpriseCloud/tests/Types/ClientCallReturnTypes.php index 9138c4f88b5..f655ac13617 100644 --- a/clients/GitHubEnterpriseCloud/tests/Types/ClientCallReturnTypes.php +++ b/clients/GitHubEnterpriseCloud/tests/Types/ClientCallReturnTypes.php @@ -886,11 +886,11 @@ function authHeader(): string assertType('Observable', $client->call('LIST /repos/{owner}/{repo}/issues/{issue_number}/reactions')); assertType('', $client->call('POST /repos/{owner}/{repo}/issues/{issue_number}/reactions')); assertType('', $client->call('DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}')); -assertType('Schema\\Issue', $client->call('DELETE /repos/{owner}/{repo}/issues/{issue_number}/sub_issue')); -assertType('iterable', $client->call('GET /repos/{owner}/{repo}/issues/{issue_number}/sub_issues')); -assertType('iterable', $client->call('LIST /repos/{owner}/{repo}/issues/{issue_number}/sub_issues')); -assertType('Schema\\Issue', $client->call('POST /repos/{owner}/{repo}/issues/{issue_number}/sub_issues')); -assertType('Schema\\Issue', $client->call('PATCH /repos/{owner}/{repo}/issues/{issue_number}/sub_issues/priority')); +assertType('', $client->call('DELETE /repos/{owner}/{repo}/issues/{issue_number}/sub_issue')); +assertType('Observable', $client->call('GET /repos/{owner}/{repo}/issues/{issue_number}/sub_issues')); +assertType('Observable', $client->call('LIST /repos/{owner}/{repo}/issues/{issue_number}/sub_issues')); +assertType('', $client->call('POST /repos/{owner}/{repo}/issues/{issue_number}/sub_issues')); +assertType('', $client->call('PATCH /repos/{owner}/{repo}/issues/{issue_number}/sub_issues/priority')); assertType('Observable', $client->call('GET /repos/{owner}/{repo}/issues/{issue_number}/timeline')); assertType('Observable', $client->call('LIST /repos/{owner}/{repo}/issues/{issue_number}/timeline')); assertType('Observable', $client->call('GET /repos/{owner}/{repo}/keys')); diff --git a/etc/specs/GitHubEnterpriseCloud/current.spec.yaml b/etc/specs/GitHubEnterpriseCloud/current.spec.yaml index e0267ea4368..5c6378c1634 100644 --- a/etc/specs/GitHubEnterpriseCloud/current.spec.yaml +++ b/etc/specs/GitHubEnterpriseCloud/current.spec.yaml @@ -34837,7 +34837,10 @@ paths: subcategory: webhooks delete: summary: Delete a repository webhook - description: '' + description: |- + Delete a webhook for an organization. + + The authenticated user must be a repository owner, or have admin access in the repository, to delete the webhook. tags: - repos operationId: repos/delete-webhook