Skip to content

Commit 25542ce

Browse files
authored
Merge pull request #1517 from php-api-clients/GitHub/from-1.1.4-975ed3e1d762d10ff749fca3c2105b5a-from-1.1.4-975ed3e1d762d10ff749fca3c2105b5a
2 parents ccaa3eb + efa8428 commit 25542ce

35 files changed

+1605
-77
lines changed

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

+37-33
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"specHash": "9cd6c8e7bead01c0c83af26875ff027b",
2+
"specHash": "975ed3e1d762d10ff749fca3c2105b5a",
33
"generatedFiles": {
44
"files": [
55
{
@@ -176,7 +176,7 @@
176176
},
177177
{
178178
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/OrganizationSecretScanningAlert.php",
179-
"hash": "3618e654d47b21ad2c077b808a4049ed"
179+
"hash": "54b6ee9579532fc997cf803999339876"
180180
},
181181
{
182182
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Actor.php",
@@ -440,7 +440,7 @@
440440
},
441441
{
442442
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CodeScanningOrganizationAlertItems.php",
443-
"hash": "f9e47f362a94c6dde74f8c7ac403eab5"
443+
"hash": "79ad80bd4d1d12130ad047a3fdbdfb5e"
444444
},
445445
{
446446
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CodespaceMachine.php",
@@ -848,11 +848,11 @@
848848
},
849849
{
850850
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CodeScanningAlertItems.php",
851-
"hash": "5b6e09e37ceaed376dc1ebd56d3c15b2"
851+
"hash": "6fe4546b93ddd809225a4019d0cf97ac"
852852
},
853853
{
854854
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CodeScanningAlert.php",
855-
"hash": "7cb087c5ce4eb62822fbde23a3badfac"
855+
"hash": "c5464c5d0e939f2bb7c3b591e5589824"
856856
},
857857
{
858858
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CodeScanningAlertSetState.php",
@@ -1328,7 +1328,7 @@
13281328
},
13291329
{
13301330
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/SecretScanningAlert.php",
1331-
"hash": "a42a1cee5991db08c5e89ae66fc5ebd0"
1331+
"hash": "d44cebe128925c61a91f7a80dbfcf9f8"
13321332
},
13331333
{
13341334
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/SecretScanningAlertResolutionComment.php",
@@ -1628,11 +1628,11 @@
16281628
},
16291629
{
16301630
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertClosedByUser.php",
1631-
"hash": "4b8833d38eb509de39d34cca6f7c7ff5"
1631+
"hash": "fc1795c7795ef5b0eaa9a8ce947cf362"
16321632
},
16331633
{
16341634
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertCreated.php",
1635-
"hash": "5824635ffd8c3f59e09c0aa1bbd2470d"
1635+
"hash": "47e6e06436094bd4e734cfe87ede3574"
16361636
},
16371637
{
16381638
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertFixed.php",
@@ -3352,7 +3352,7 @@
33523352
},
33533353
{
33543354
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertClosedByUser\/Alert.php",
3355-
"hash": "38c854f3de72f7810179e918f031ac10"
3355+
"hash": "c9dc98310b56a50af04753f14600ce76"
33563356
},
33573357
{
33583358
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertClosedByUser\/Alert\/Rule.php",
@@ -3364,7 +3364,7 @@
33643364
},
33653365
{
33663366
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertCreated\/Alert.php",
3367-
"hash": "2c862c36988ab608ebecfe26ee3ed2fc"
3367+
"hash": "15b1bae34ce8f1aadcaf93564c20d23b"
33683368
},
33693369
{
33703370
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertCreated\/Alert\/Tool.php",
@@ -5560,7 +5560,7 @@
55605560
},
55615561
{
55625562
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Orgs.php",
5563-
"hash": "fb57ccbdc48e55ebd107262fd35da447"
5563+
"hash": "69c5de1d9c2ea9c9f4a47c99a158f37c"
55645564
},
55655565
{
55665566
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Actions.php",
@@ -5596,7 +5596,7 @@
55965596
},
55975597
{
55985598
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Repos.php",
5599-
"hash": "f86b83693ea93e0e58523ea351016002"
5599+
"hash": "db17b23c5ac1efafd63ff36b1638e622"
56005600
},
56015601
{
56025602
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Billing.php",
@@ -24348,15 +24348,15 @@
2434824348
},
2434924349
{
2435024350
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Orgs.php",
24351-
"hash": "254036f9fbac1f1fef4d47c0ac4a1073"
24351+
"hash": "1bc691d9679fa961a5ccc46d0709bc50"
2435224352
},
2435324353
{
2435424354
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/RateLimit.php",
2435524355
"hash": "ba9a8386126fb4da0bb3d4ee7706553e"
2435624356
},
2435724357
{
2435824358
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Repos.php",
24359-
"hash": "5dd0f11097043ed3c3a06483ed906506"
24359+
"hash": "67d056bfd2d37dafcadec7322e9fb26b"
2436024360
},
2436124361
{
2436224362
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Users.php",
@@ -24624,15 +24624,15 @@
2462424624
},
2462524625
{
2462624626
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Orgs.php",
24627-
"hash": "4059dd99657a10c4b9b37faf52aacc34"
24627+
"hash": "f38931e8b155a6c9dce5e8fcd2394c6b"
2462824628
},
2462924629
{
2463024630
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Packages.php",
2463124631
"hash": "4ab93017e3894ec5748c61024d8a46d7"
2463224632
},
2463324633
{
2463424634
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Repos.php",
24635-
"hash": "12b09c2e771cd10bde5a786238107288"
24635+
"hash": "82ae876f21fbe0e2cf915364acb7c738"
2463624636
},
2463724637
{
2463824638
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Activity.php",
@@ -24852,15 +24852,15 @@
2485224852
},
2485324853
{
2485424854
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Six.php",
24855-
"hash": "29cca7635a6ae094716f95605ed2ef49"
24855+
"hash": "1f657d72925483e30400b4d03125ecaa"
2485624856
},
2485724857
{
2485824858
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Seven.php",
24859-
"hash": "cee75c72f4cf24374fc5ecf5f40abdb0"
24859+
"hash": "d344dc282b0dbc9a24f0a51d85a03ba7"
2486024860
},
2486124861
{
2486224862
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Eight.php",
24863-
"hash": "78ea6ac926677ffd02d2d2380f7bf45b"
24863+
"hash": "57353099b84fbd36b63a51d7a3a99dd7"
2486424864
},
2486524865
{
2486624866
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Nine.php",
@@ -24956,11 +24956,11 @@
2495624956
},
2495724957
{
2495824958
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Six.php",
24959-
"hash": "4cf5eb8d6b9243befa96df8588ede644"
24959+
"hash": "a5061ea4823a62a9b695f2069666686c"
2496024960
},
2496124961
{
2496224962
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Seven.php",
24963-
"hash": "d5e736b608a30e5e23fd33620e7adf6d"
24963+
"hash": "be6f6537f1f4b57686f13d4657a37b03"
2496424964
},
2496524965
{
2496624966
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Eight.php",
@@ -25992,7 +25992,7 @@
2599225992
},
2599325993
{
2599425994
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/CodeScanning\/Alerts\/AlertNumber.php",
25995-
"hash": "582517257072505879a986b37f247563"
25995+
"hash": "d3d328d9566c5a2a8937d46d4f5343b8"
2599625996
},
2599725997
{
2599825998
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/CodeScanning\/Alerts\/AlertNumber\/Instances.php",
@@ -26572,7 +26572,7 @@
2657226572
},
2657326573
{
2657426574
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/SecretScanning\/Alerts\/AlertNumber.php",
26575-
"hash": "816594a45f59467d1c0c1447df669a32"
26575+
"hash": "dac9a838f10b5e36fb6a376819afc53e"
2657626576
},
2657726577
{
2657826578
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/SecretScanning\/Alerts\/AlertNumber\/Locations.php",
@@ -27048,7 +27048,7 @@
2704827048
},
2704927049
{
2705027050
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrators.php",
27051-
"hash": "b18e385c22f18997f0e67844fffe5f75"
27051+
"hash": "627acdf6598fb53e73251e26d698c749"
2705227052
},
2705327053
{
2705427054
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/OrganizationSimpleWebhooks.php",
@@ -27628,11 +27628,11 @@
2762827628
},
2762927629
{
2763027630
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php",
27631-
"hash": "7239ab56003d1fbe57bbb031a994720c"
27631+
"hash": "0d3db6688c9fae3081f04b53c53152cc"
2763227632
},
2763327633
{
2763427634
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php",
27635-
"hash": "ee331eaf657a4f78ca06869e4b0e6ecc"
27635+
"hash": "5c629eef52f39ab563b41d080fb37095"
2763627636
},
2763727637
{
2763827638
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon",
@@ -27940,7 +27940,7 @@
2794027940
},
2794127941
{
2794227942
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/CodeScanningAlert.php",
27943-
"hash": "7bb41a0c0b98973219dcd554c186333b"
27943+
"hash": "c7a7d16d9c1f03ce6f5868653ee9bfa2"
2794427944
},
2794527945
{
2794627946
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/CommitComment.php",
@@ -31848,7 +31848,7 @@
3184831848
},
3184931849
{
3185031850
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Orgs\/GetOrgRulesetHistory.php",
31851-
"hash": "50adf3d1b110a6650689293b138266f5"
31851+
"hash": "8cd135bd54f7a5ade611c9f98125e4dd"
3185231852
},
3185331853
{
3185431854
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Orgs\/GetOrgRulesetHistoryTest.php",
@@ -31860,7 +31860,7 @@
3186031860
},
3186131861
{
3186231862
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Orgs\/GetOrgRulesetHistoryListing.php",
31863-
"hash": "6b09d075bd9bc0993de72fe64ef15b7c"
31863+
"hash": "398b2b63c498b272f9cd4709a231eadd"
3186431864
},
3186531865
{
3186631866
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Orgs\/GetOrgRulesetHistoryListingTest.php",
@@ -31872,7 +31872,7 @@
3187231872
},
3187331873
{
3187431874
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Orgs\/GetOrgRulesetVersion.php",
31875-
"hash": "fb58dd072af0f4e3f5dd9384d1059571"
31875+
"hash": "d21d60ea43d328a1f0dc6a1d0f77349b"
3187631876
},
3187731877
{
3187831878
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Orgs\/GetOrgRulesetVersionTest.php",
@@ -31884,7 +31884,7 @@
3188431884
},
3188531885
{
3188631886
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Repos\/GetRepoRulesetHistory.php",
31887-
"hash": "8f23ace7c2d1f6ef5fb7addf001ceb7a"
31887+
"hash": "26a61998e619e5e3aced1506b498229b"
3188831888
},
3188931889
{
3189031890
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Repos\/GetRepoRulesetHistoryTest.php",
@@ -31896,7 +31896,7 @@
3189631896
},
3189731897
{
3189831898
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Repos\/GetRepoRulesetHistoryListing.php",
31899-
"hash": "31ca89fbc35b18f48c7f41e10d6aeefd"
31899+
"hash": "3138ad5a249e83a2022614098ed10446"
3190031900
},
3190131901
{
3190231902
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Repos\/GetRepoRulesetHistoryListingTest.php",
@@ -31908,7 +31908,7 @@
3190831908
},
3190931909
{
3191031910
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Repos\/GetRepoRulesetVersion.php",
31911-
"hash": "88ecf5ec825eddae81f9dac5cb31c77d"
31911+
"hash": "81d878dd0f139aa330e217e763e40c04"
3191231912
},
3191331913
{
3191431914
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Repos\/GetRepoRulesetVersionTest.php",
@@ -31941,6 +31941,10 @@
3194131941
{
3194231942
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Rulesets\/RulesetId\/History\/VersionId.php",
3194331943
"hash": "96515e82566b8efd7d1a8ff104df85aa"
31944+
},
31945+
{
31946+
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertClosedByUser\/Alert\/DismissalApprovedBy.php",
31947+
"hash": "2d3e43a91657c1977300fdbc36d37723"
3194431948
}
3194531949
]
3194631950
},

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

+29
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Code
266266
$properties['mostRecentInstance'] = $value;
267267

268268
after_mostRecentInstance:
269+
270+
$value = $payload['dismissal_approved_by'] ?? null;
271+
272+
if ($value === null) {
273+
$properties['dismissalApprovedBy'] = null;
274+
goto after_dismissalApprovedBy;
275+
}
276+
277+
if (is_array($value)) {
278+
try {
279+
$this->hydrationStack[] = 'dismissalApprovedBy';
280+
$value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value);
281+
} finally {
282+
array_pop($this->hydrationStack);
283+
}
284+
}
285+
286+
$properties['dismissalApprovedBy'] = $value;
287+
288+
after_dismissalApprovedBy:
269289
} catch (Throwable $exception) {
270290
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\CodeScanningAlert', $exception, stack: $this->hydrationStack);
271291
}
@@ -1269,6 +1289,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
12691289
$mostRecentInstance = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CodeScanningAlertInstance($mostRecentInstance);
12701290
after_mostRecentInstance: $result['most_recent_instance'] = $mostRecentInstance;
12711291

1292+
$dismissalApprovedBy = $object->dismissalApprovedBy;
1293+
1294+
if ($dismissalApprovedBy === null) {
1295+
goto after_dismissalApprovedBy;
1296+
}
1297+
1298+
$dismissalApprovedBy = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($dismissalApprovedBy);
1299+
after_dismissalApprovedBy: $result['dismissal_approved_by'] = $dismissalApprovedBy;
1300+
12721301
return $result;
12731302
}
12741303

clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/SecretScanning/Alerts/AlertNumber.php

+19
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,17 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Secr
344344
$properties['multiRepo'] = $value;
345345

346346
after_multiRepo:
347+
348+
$value = $payload['is_base64_encoded'] ?? null;
349+
350+
if ($value === null) {
351+
$properties['isBaseSixtyFourEncoded'] = null;
352+
goto after_isBaseSixtyFourEncoded;
353+
}
354+
355+
$properties['isBaseSixtyFourEncoded'] = $value;
356+
357+
after_isBaseSixtyFourEncoded:
347358
} catch (Throwable $exception) {
348359
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SecretScanningAlert', $exception, stack: $this->hydrationStack);
349360
}
@@ -968,6 +979,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
968979

969980
after_multiRepo: $result['multi_repo'] = $multiRepo;
970981

982+
$isBaseSixtyFourEncoded = $object->isBaseSixtyFourEncoded;
983+
984+
if ($isBaseSixtyFourEncoded === null) {
985+
goto after_isBaseSixtyFourEncoded;
986+
}
987+
988+
after_isBaseSixtyFourEncoded: $result['is_base64_encoded'] = $isBaseSixtyFourEncoded;
989+
971990
return $result;
972991
}
973992

0 commit comments

Comments
 (0)