Skip to content

Commit ba4856f

Browse files
authored
Merge pull request #1426 from php-api-clients/GitHub/from-1.1.4-c1e4d4617fb30b28dd9ff95dbcd32f2e-from-1.1.4-c1e4d4617fb30b28dd9ff95dbcd32f2e
2 parents 8f93133 + 6c41401 commit ba4856f

22 files changed

+139
-41
lines changed

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

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"specHash": "ffc57be6cdf0e66d7c933d6f52367abe",
2+
"specHash": "c1e4d4617fb30b28dd9ff95dbcd32f2e",
33
"generatedFiles": {
44
"files": [
55
{
@@ -892,7 +892,7 @@
892892
},
893893
{
894894
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CodeScanningDefaultSetup.php",
895-
"hash": "0546b04d3773a8123bf23476a8ed0c89"
895+
"hash": "ea900565885622cc09536a142bdcc262"
896896
},
897897
{
898898
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CodeScanningDefaultSetupUpdate.php",
@@ -5572,7 +5572,7 @@
55725572
},
55735573
{
55745574
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/CodeScanning.php",
5575-
"hash": "4aa88932e138f5023410872812484163"
5575+
"hash": "8afe9ac6d0e3ea7cf988c7adcd3de78f"
55765576
},
55775577
{
55785578
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Codespaces.php",
@@ -24848,11 +24848,11 @@
2484824848
},
2484924849
{
2485024850
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Four.php",
24851-
"hash": "4c11292ac64dd5b6086491893e29b16e"
24851+
"hash": "18a08639d99cec6fb1771a5fd26fd9e4"
2485224852
},
2485324853
{
2485424854
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Five.php",
24855-
"hash": "ce887ab0baf56f722fffea5da3d12431"
24855+
"hash": "6a5aa32846ccb2807283067d8708433c"
2485624856
},
2485724857
{
2485824858
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Six.php",
@@ -24876,7 +24876,7 @@
2487624876
},
2487724877
{
2487824878
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Four.php",
24879-
"hash": "44a2f2604dba7b832ab639ac9add5e66"
24879+
"hash": "c0a4568cdfce7d871a323f6a36b3b3f7"
2488024880
},
2488124881
{
2488224882
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Six.php",
@@ -24920,7 +24920,7 @@
2492024920
},
2492124921
{
2492224922
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Patch\/Five.php",
24923-
"hash": "fecce7ab0c6c4136a88dbe70a9a3cdd9"
24923+
"hash": "02b0af08f64abd5efe152b0f06fc7e6d"
2492424924
},
2492524925
{
2492624926
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Patch\/Six.php",
@@ -24984,7 +24984,7 @@
2498424984
},
2498524985
{
2498624986
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Five.php",
24987-
"hash": "81e3794494f7a2c1f4f28c28986638f2"
24987+
"hash": "c41bc57f877914abf6e513e7ee9a28ee"
2498824988
},
2498924989
{
2499024990
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Three.php",
@@ -26020,7 +26020,7 @@
2602026020
},
2602126021
{
2602226022
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/CodeScanning\/DefaultSetup.php",
26023-
"hash": "d9bb025213c7bdd91bc512fedcab9815"
26023+
"hash": "29cbf48f13fbedb980e03658ab0951da"
2602426024
},
2602526025
{
2602626026
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/CodeScanning\/Sarifs.php",
@@ -27632,11 +27632,11 @@
2763227632
},
2763327633
{
2763427634
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php",
27635-
"hash": "4754372b8a074fc2d1a26d2df02d4e0d"
27635+
"hash": "71c82692707697c48cd324651981430e"
2763627636
},
2763727637
{
2763827638
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php",
27639-
"hash": "945c5080f48095c470c8e61c7a003f84"
27639+
"hash": "397be97be6943bb78495777ba0235cc1"
2764027640
},
2764127641
{
2764227642
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon",
@@ -29612,7 +29612,7 @@
2961229612
},
2961329613
{
2961429614
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/CodeSecurity.php",
29615-
"hash": "42492ba185dd1ddb9f5101b31f41a904"
29615+
"hash": "d37df36897036d1eec5737dbf213b1ee"
2961629616
},
2961729617
{
2961829618
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/CodeSecurity\/Configurations.php",
@@ -31360,7 +31360,7 @@
3136031360
},
3136131361
{
3136231362
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/PrivateRegistries\/ListOrgPrivateRegistries.php",
31363-
"hash": "6de62d83e37bbb20ed0912361c4b30b4"
31363+
"hash": "7dd3f547126b090eeff93e527f4ec3d1"
3136431364
},
3136531365
{
3136631366
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/PrivateRegistries\/ListOrgPrivateRegistriesTest.php",
@@ -31372,7 +31372,7 @@
3137231372
},
3137331373
{
3137431374
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/PrivateRegistries\/CreateOrgPrivateRegistry.php",
31375-
"hash": "3f183439ee0b2dc9f13cd3acda759d3f"
31375+
"hash": "d93f1e64c7ba4d300c3fb3a3b88ca16d"
3137631376
},
3137731377
{
3137831378
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/PrivateRegistries\/CreateOrgPrivateRegistryTest.php",
@@ -31384,7 +31384,7 @@
3138431384
},
3138531385
{
3138631386
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/PrivateRegistries\/GetOrgPublicKey.php",
31387-
"hash": "6c4d966cf2c5d8a4f1b8dc2c65b1e839"
31387+
"hash": "00000e0e712155efef700b280c282f6f"
3138831388
},
3138931389
{
3139031390
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/PrivateRegistries\/GetOrgPublicKeyTest.php",
@@ -31396,7 +31396,7 @@
3139631396
},
3139731397
{
3139831398
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/PrivateRegistries\/GetOrgPrivateRegistry.php",
31399-
"hash": "d1564d06e5dfa9a266b13e2dcea654d1"
31399+
"hash": "e633e98e80d7e035faf82fe6c7add479"
3140031400
},
3140131401
{
3140231402
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/PrivateRegistries\/GetOrgPrivateRegistryTest.php",
@@ -31408,7 +31408,7 @@
3140831408
},
3140931409
{
3141031410
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/PrivateRegistries\/DeleteOrgPrivateRegistry.php",
31411-
"hash": "b5b2b026a0a1e95bea3dd98a40410098"
31411+
"hash": "1509d01986a9c7e2d9e1eb2463a2c250"
3141231412
},
3141331413
{
3141431414
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/PrivateRegistries\/DeleteOrgPrivateRegistryTest.php",
@@ -31420,7 +31420,7 @@
3142031420
},
3142131421
{
3142231422
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/PrivateRegistries\/UpdateOrgPrivateRegistry.php",
31423-
"hash": "3f5ae9bfc1314bc94af5b9d34c62a247"
31423+
"hash": "39cc994d763f207bc82397078b5d5fac"
3142431424
},
3142531425
{
3142631426
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/PrivateRegistries\/UpdateOrgPrivateRegistryTest.php",
@@ -31452,23 +31452,23 @@
3145231452
},
3145331453
{
3145431454
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/PrivateRegistries.php",
31455-
"hash": "83282fa4c03ddbd1a0820c203de4b362"
31455+
"hash": "2fedab18d51cc0e1b713dcc52560fecf"
3145631456
},
3145731457
{
3145831458
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Post\/PrivateRegistries.php",
31459-
"hash": "2c13686ea99be7a399c031e498d3fb99"
31459+
"hash": "0a7ef41175fa1d757608f16424ef5cc1"
3146031460
},
3146131461
{
3146231462
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Patch\/PrivateRegistries.php",
31463-
"hash": "a7081c0b472ab74018984449f38402c2"
31463+
"hash": "1b38420518eccf1d8e5e2323603ca747"
3146431464
},
3146531465
{
3146631466
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/PrivateRegistries.php",
31467-
"hash": "1b5ec8975f19267bbf86578a5096fc75"
31467+
"hash": "02c5c81c79f73cf0e857644e84c7004f"
3146831468
},
3146931469
{
3147031470
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/PrivateRegistries.php",
31471-
"hash": "3e8df99a3c7577f5baec7c1bd4607149"
31471+
"hash": "8eb1b85a46ebf692eac4887162044dce"
3147231472
},
3147331473
{
3147431474
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/PrivateRegistries.php",

clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CodeScanning/DefaultSetup.php

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,28 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Code
7676

7777
after_languages:
7878

79+
$value = $payload['runner_type'] ?? null;
80+
81+
if ($value === null) {
82+
$properties['runnerType'] = null;
83+
goto after_runnerType;
84+
}
85+
86+
$properties['runnerType'] = $value;
87+
88+
after_runnerType:
89+
90+
$value = $payload['runner_label'] ?? null;
91+
92+
if ($value === null) {
93+
$properties['runnerLabel'] = null;
94+
goto after_runnerLabel;
95+
}
96+
97+
$properties['runnerLabel'] = $value;
98+
99+
after_runnerLabel:
100+
79101
$value = $payload['query_suite'] ?? null;
80102

81103
if ($value === null) {
@@ -404,6 +426,22 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
404426
$languages = $languagesSerializer0->serialize($languages, $this);
405427
after_languages: $result['languages'] = $languages;
406428

429+
$runnerType = $object->runnerType;
430+
431+
if ($runnerType === null) {
432+
goto after_runnerType;
433+
}
434+
435+
after_runnerType: $result['runner_type'] = $runnerType;
436+
437+
$runnerLabel = $object->runnerLabel;
438+
439+
if ($runnerLabel === null) {
440+
goto after_runnerLabel;
441+
}
442+
443+
after_runnerLabel: $result['runner_label'] = $runnerLabel;
444+
407445
$querySuite = $object->querySuite;
408446

409447
if ($querySuite === null) {

clients/GitHub/src/Internal/Operator/PrivateRegistries/CreateOrgPrivateRegistry.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte
2424
{
2525
}
2626

27+
/** @return */
2728
public function call(string $org, array $params): OrgPrivateRegistryConfigurationWithSelectedRepositories
2829
{
2930
$operation = new \ApiClients\Client\GitHub\Internal\Operation\PrivateRegistries\CreateOrgPrivateRegistry($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $org);

clients/GitHub/src/Internal/Operator/PrivateRegistries/DeleteOrgPrivateRegistry.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte
2424
{
2525
}
2626

27+
/** @return */
2728
public function call(string $org, string $secretName): WithoutBody
2829
{
2930
$operation = new \ApiClients\Client\GitHub\Internal\Operation\PrivateRegistries\DeleteOrgPrivateRegistry($this->responseSchemaValidator, $this->hydrator, $org, $secretName);

clients/GitHub/src/Internal/Operator/PrivateRegistries/GetOrgPrivateRegistry.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte
2424
{
2525
}
2626

27+
/** @return */
2728
public function call(string $org, string $secretName): OrgPrivateRegistryConfiguration
2829
{
2930
$operation = new \ApiClients\Client\GitHub\Internal\Operation\PrivateRegistries\GetOrgPrivateRegistry($this->responseSchemaValidator, $this->hydrator, $org, $secretName);

clients/GitHub/src/Internal/Operator/PrivateRegistries/GetOrgPublicKey.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte
2424
{
2525
}
2626

27+
/** @return */
2728
public function call(string $org): Ok
2829
{
2930
$operation = new \ApiClients\Client\GitHub\Internal\Operation\PrivateRegistries\GetOrgPublicKey($this->responseSchemaValidator, $this->hydrator, $org);

clients/GitHub/src/Internal/Operator/PrivateRegistries/ListOrgPrivateRegistries.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte
2424
{
2525
}
2626

27+
/** @return */
2728
public function call(string $org, int $perPage = 30, int $page = 1): Ok
2829
{
2930
$operation = new \ApiClients\Client\GitHub\Internal\Operation\PrivateRegistries\ListOrgPrivateRegistries($this->responseSchemaValidator, $this->hydrator, $org, $perPage, $page);

clients/GitHub/src/Internal/Operator/PrivateRegistries/UpdateOrgPrivateRegistry.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte
2424
{
2525
}
2626

27+
/** @return */
2728
public function call(string $org, string $secretName, array $params): WithoutBody
2829
{
2930
$operation = new \ApiClients\Client\GitHub\Internal\Operation\PrivateRegistries\UpdateOrgPrivateRegistry($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $org, $secretName);

clients/GitHub/src/Internal/Router/Delete/Five.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ public function __construct(private Routers $routers)
1414
{
1515
}
1616

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

clients/GitHub/src/Internal/Router/Delete/PrivateRegistries.php

Lines changed: 1 addition & 0 deletions
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 deleteOrgPrivateRegistry(array $params): WithoutBody
2324
{
2425
$arguments = [];

0 commit comments

Comments
 (0)