Skip to content

Commit e88f53f

Browse files
authored
Merge pull request #1164 from php-api-clients/GitHubEnterpriseCloud/from-1.1.4-7dee5d2ead9376e61cd3400088de433b-from-1.1.4-7dee5d2ead9376e61cd3400088de433b
2 parents d44f831 + 6ee2931 commit e88f53f

File tree

37 files changed

+1719
-61
lines changed

37 files changed

+1719
-61
lines changed

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

+45-37
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"specHash": "bb68657e823d046fdcf911d8fa2d818e",
2+
"specHash": "7dee5d2ead9376e61cd3400088de433b",
33
"generatedFiles": {
44
"files": [
55
{
@@ -420,15 +420,15 @@
420420
},
421421
{
422422
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/PublicUser.php",
423-
"hash": "c0ac6348d07b8daa2dfedfbdc8fa66f1"
423+
"hash": "fa82c3823ec9b6b4d3d2b4213765bbba"
424424
},
425425
{
426426
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/GistHistory.php",
427427
"hash": "8b1774159d64d322289158332fe5fb2b"
428428
},
429429
{
430430
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/GistSimple.php",
431-
"hash": "8f9e9bb41005bd08cdca685ff718d798"
431+
"hash": "21fd7593acb6bc4541f765d12b19015c"
432432
},
433433
{
434434
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/GistComment.php",
@@ -712,11 +712,11 @@
712712
},
713713
{
714714
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/RepositoryRule.php",
715-
"hash": "5ed20adb1fa36bf52d0b18aeed413fef"
715+
"hash": "ed7374d581c2a858ba3d8c29e091c906"
716716
},
717717
{
718718
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/RepositoryRuleset.php",
719-
"hash": "99b917017d4663f3237eaa576816e4fc"
719+
"hash": "981d94d00a8032fd7cb8401b12db979a"
720720
},
721721
{
722722
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/GroupMapping.php",
@@ -1588,7 +1588,7 @@
15881588
},
15891589
{
15901590
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/PrivateUser.php",
1591-
"hash": "db29162ca27f83f571937201806da45d"
1591+
"hash": "99ac704f9132edc08b306b122b9d44c2"
15921592
},
15931593
{
15941594
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/CodespacesSecret.php",
@@ -2820,7 +2820,7 @@
28202820
},
28212821
{
28222822
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/GistSimple\/Forks.php",
2823-
"hash": "29a617584c40a9021d8320598a5ebe85"
2823+
"hash": "43e5580f88cfed945b71c9a787910cde"
28242824
},
28252825
{
28262826
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/GistSimple\/ForkOf.php",
@@ -4932,11 +4932,11 @@
49324932
},
49334933
{
49344934
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Repos\/CreateOrgRuleset\/Request\/ApplicationJson.php",
4935-
"hash": "a5b4092457f1dee501218b13a537fdeb"
4935+
"hash": "404a9f40246679aeb9387458a8281915"
49364936
},
49374937
{
49384938
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Repos\/UpdateOrgRuleset\/Request\/ApplicationJson.php",
4939-
"hash": "c6d9336d90cf12eb2960209d66e27e10"
4939+
"hash": "adb112afcd660f4ae309e6dec0c26b50"
49404940
},
49414941
{
49424942
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Teams\/Create\/Request\/ApplicationJson.php",
@@ -5652,11 +5652,11 @@
56525652
},
56535653
{
56545654
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Repos\/CreateRepoRuleset\/Request\/ApplicationJson.php",
5655-
"hash": "c8b6e5a2bb0aa888776d76de3c4a5ab7"
5655+
"hash": "a3753b0467643f42d7698d02f34c7941"
56565656
},
56575657
{
56585658
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Repos\/UpdateRepoRuleset\/Request\/ApplicationJson.php",
5659-
"hash": "cf8f93fb2f6ea430d9ab08ab8704f74b"
5659+
"hash": "2f7be5d67146cd671adea79e2e940137"
56605660
},
56615661
{
56625662
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/SecretScanning\/UpdateAlert\/Request\/ApplicationJson.php",
@@ -5780,7 +5780,7 @@
57805780
},
57815781
{
57825782
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/Users\/GetAuthenticated\/Response\/ApplicationJson\/Ok.php",
5783-
"hash": "f593184754af247160c85bb60e101490"
5783+
"hash": "13c46266a4a3023f7655f3a2c0908f2a"
57845784
},
57855785
{
57865786
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Users\/UpdateAuthenticated\/Request\/ApplicationJson.php",
@@ -5984,7 +5984,7 @@
59845984
},
59855985
{
59865986
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Repos.php",
5987-
"hash": "70b8434c4d0615054eb9c4956fce9428"
5987+
"hash": "48d866a354f3d3515521fcf9a9944b16"
59885988
},
59895989
{
59905990
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Reactions.php",
@@ -12122,13 +12122,9 @@
1212212122
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Scim\/SetInformationForProvisionedUser\/Request\/ApplicationJson\/Name.php",
1212312123
"hash": "5c4e3212728d542ed64fdf729bc101a9"
1212412124
},
12125-
{
12126-
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/TietFA9375D5\/TietB4DFA8F3\/Tiet91595615\/TietBD0ADDF4.php",
12127-
"hash": "23f137ff5f0bc8e9050971aae4602bc5"
12128-
},
1212912125
{
1213012126
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/Users\/GetByUsername\/Response\/ApplicationJson\/Ok.php",
12131-
"hash": "bbe1cd7e1f25a92cf12adf637971ed48"
12127+
"hash": "33cdb4a49259087bd2e20f22b9f5baa0"
1213212128
},
1213312129
{
1213412130
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/ServerStatisticsActions.php",
@@ -12200,7 +12196,7 @@
1220012196
},
1220112197
{
1220212198
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/RepositoryRuleDetailed.php",
12203-
"hash": "e7c9c42230007f65cba7c905492eba23"
12199+
"hash": "a5b74b8af0a4a870f4b37a79b4a1773a"
1220412200
},
1220512201
{
1220612202
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/CopilotSeatBreakdown.php",
@@ -12340,15 +12336,15 @@
1234012336
},
1234112337
{
1234212338
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetCreated.php",
12343-
"hash": "f3a8f7624029715f99ec466d41077079"
12339+
"hash": "d8d2e2526d8c4046b8a3dca645a10048"
1234412340
},
1234512341
{
1234612342
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetDeleted.php",
12347-
"hash": "180c9ed2f2d9cb102eed3b28594706fb"
12343+
"hash": "205e33ed82f013e37704b147ea9356b2"
1234812344
},
1234912345
{
1235012346
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetEdited.php",
12351-
"hash": "c05b11cf30ec92784bd6ec6be81bc3ac"
12347+
"hash": "a8522248a8803a7cf04cd73d072dca22"
1235212348
},
1235312349
{
1235412350
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/SecurityAdvisories\/CreateRepositoryAdvisoryCveRequest\/Response\/ApplicationJson\/Accepted.php",
@@ -12584,7 +12580,7 @@
1258412580
},
1258512581
{
1258612582
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetEdited\/Changes.php",
12587-
"hash": "f5dcbcbfa8bdf29151815c859c683bb3"
12583+
"hash": "4ce0cb70da7427834e09c0f167bf0e21"
1258812584
},
1258912585
{
1259012586
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetEdited\/Changes\/Conditions.php",
@@ -12612,11 +12608,11 @@
1261212608
},
1261312609
{
1261412610
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetEdited\/Changes\/Rules.php",
12615-
"hash": "2721b720f42e7b5d41b4acc4bc49fdd4"
12611+
"hash": "6b8dff54b464cc69685402c96c3945ea"
1261612612
},
1261712613
{
1261812614
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetEdited\/Changes\/Rules\/Updated.php",
12619-
"hash": "a4ada8950ecce37953580da5524aac4f"
12615+
"hash": "a465339104ff812719d06c7a0ad7f24e"
1262012616
},
1262112617
{
1262212618
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetEdited\/Changes\/Rules\/Updated\/Changes.php",
@@ -22592,23 +22588,23 @@
2259222588
},
2259322589
{
2259422590
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/Repos\/GetBranchRules.php",
22595-
"hash": "bb30e6c09a5d13fb9e839f00788c19f9"
22591+
"hash": "9a120fabf596f1e77bd6539f64866052"
2259622592
},
2259722593
{
2259822594
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Repos\/GetBranchRules.php",
22599-
"hash": "cc81a4902350c4abb44f2e73bf2c2479"
22595+
"hash": "0dd32ed5c35d8a7e0fe9dc7ed87e2998"
2260022596
},
2260122597
{
2260222598
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Repos\/GetBranchRulesTest.php",
2260322599
"hash": "edf8b29789b42e5b466cadceeb573e9b"
2260422600
},
2260522601
{
2260622602
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/Repos\/GetBranchRulesListing.php",
22607-
"hash": "b915c8039a8e1b771e133c1142f12af9"
22603+
"hash": "d6f29cdb95a7694a4f1f2f79e69aa3a8"
2260822604
},
2260922605
{
2261022606
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Repos\/GetBranchRulesListing.php",
22611-
"hash": "27b6c3aae1074ceb9dc2a4e4d192622c"
22607+
"hash": "3243f2337697eaf6a0b7e67fb2cf9e99"
2261222608
},
2261322609
{
2261422610
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Repos\/GetBranchRulesListingTest.php",
@@ -26108,7 +26104,7 @@
2610826104
},
2610926105
{
2611026106
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Attribute\/CastUnionToType\/Schema\/WebhookRepositoryRulesetEdited\/Changes\/Rules\/Updated\/Rule.php",
26111-
"hash": "0a4994027d3fafac6006385d7ed324f4"
26107+
"hash": "f09e2f1a2ed5f0a66b1fc0d156bc5d8b"
2611226108
},
2611326109
{
2611426110
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Attribute\/CastUnionToType\/Schema\/Repos\/CreateOrgRuleset\/Request\/ApplicationJson\/Conditions.php",
@@ -26176,7 +26172,7 @@
2617626172
},
2617726173
{
2617826174
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Repos.php",
26179-
"hash": "16f2552689e255719c1cf72b68f9725d"
26175+
"hash": "b3a2ba7288be7c00b4fb7885430d4108"
2618026176
},
2618126177
{
2618226178
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Users.php",
@@ -26488,7 +26484,7 @@
2648826484
},
2648926485
{
2649026486
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Repos.php",
26491-
"hash": "dc66f915aea8fb4d1bf222b2061a9802"
26487+
"hash": "0a452fc57965e8f5207126bb7f11ac66"
2649226488
},
2649326489
{
2649426490
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Activity.php",
@@ -26736,7 +26732,7 @@
2673626732
},
2673726733
{
2673826734
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Seven.php",
26739-
"hash": "1352d29c7b1d81595407bd631983b1c8"
26735+
"hash": "f253fd194804ca87a61ffa7483ec4509"
2674026736
},
2674126737
{
2674226738
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Eight.php",
@@ -26840,7 +26836,7 @@
2684026836
},
2684126837
{
2684226838
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Seven.php",
26843-
"hash": "159af4f55994d05b8244b996d610ac82"
26839+
"hash": "d5e34c0b7f77e8a5202d5a15ff5ef4de"
2684426840
},
2684526841
{
2684626842
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Eight.php",
@@ -28816,7 +28812,7 @@
2881628812
},
2881728813
{
2881828814
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/User.php",
28819-
"hash": "d6c2407e06ed2010dbf34a0dc4e21bff"
28815+
"hash": "96b2a4ac6b134434e2fea5f915c95d01"
2882028816
},
2882128817
{
2882228818
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/User\/Blocks.php",
@@ -29956,11 +29952,11 @@
2995629952
},
2995729953
{
2995829954
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php",
29959-
"hash": "21032d7a63d9fbabfd10042dc3c9d8b5"
29955+
"hash": "b3007915e2cb84c8873e281f19394980"
2996029956
},
2996129957
{
2996229958
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php",
29963-
"hash": "87840179673451f4e30fe511f9bbf62e"
29959+
"hash": "6f057761ba294ea9cd3b9bdc6b0a9aa8"
2996429960
},
2996529961
{
2996629962
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon",
@@ -31793,6 +31789,18 @@
3179331789
{
3179431790
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/TietF341CA71\/Tiet6DE061C1\/TietFEFA2352\/TietE1DBE7BA.php",
3179531791
"hash": "5d101416e7aef02fa3f30789c07be085"
31792+
},
31793+
{
31794+
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/RepositoryRuleCodeScanning.php",
31795+
"hash": "08da54820fb294dd3e15fe805d51b5b6"
31796+
},
31797+
{
31798+
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/RepositoryRuleCodeScanning\/Parameters.php",
31799+
"hash": "dbd5610fad7178384afc06115a6b0412"
31800+
},
31801+
{
31802+
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet9F8559A9\/Tiet7FE3917D\/TietE7014A4E\/Tiet74E14507.php",
31803+
"hash": "af504287123e6e0a38faaf486e30045b"
3179631804
}
3179731805
]
3179831806
},

clients/GitHubEnterpriseCloud/src/Internal/Attribute/CastUnionToType/Schema/WebhookRepositoryRulesetEdited/Changes/Rules/Updated/Rule.php

+7
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,13 @@ public function cast(mixed $value, ObjectMapper $hydrator): mixed
157157
} catch (Throwable) {
158158
}
159159
}
160+
161+
if ($signature === 'parameters|type' && $value['type'] === 'code_scanning') {
162+
try {
163+
return $hydrator->hydrateObject(Schema\RepositoryRuleCodeScanning::class, $value);
164+
} catch (Throwable) {
165+
}
166+
}
160167
}
161168

162169
return $value;

clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/User.php

+19
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
372372

373373
after_email:
374374

375+
$value = $payload['notification_email'] ?? null;
376+
377+
if ($value === null) {
378+
$properties['notificationEmail'] = null;
379+
goto after_notificationEmail;
380+
}
381+
382+
$properties['notificationEmail'] = $value;
383+
384+
after_notificationEmail:
385+
375386
$value = $payload['hireable'] ?? null;
376387

377388
if ($value === null) {
@@ -960,6 +971,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou
960971

961972
after_email: $result['email'] = $email;
962973

974+
$notificationEmail = $object->notificationEmail;
975+
976+
if ($notificationEmail === null) {
977+
goto after_notificationEmail;
978+
}
979+
980+
after_notificationEmail: $result['notification_email'] = $notificationEmail;
981+
963982
$hireable = $object->hireable;
964983

965984
if ($hireable === null) {

0 commit comments

Comments
 (0)