Skip to content

Commit 81e82ed

Browse files
authored
Merge pull request #1432 from php-api-clients/GitHubEnterpriseCloud/from-1.1.4-96301d732a1a9fa2ec272adc08c795bd-from-1.1.4-96301d732a1a9fa2ec272adc08c795bd
2 parents 6f8c021 + be872fe commit 81e82ed

File tree

9 files changed

+173
-20
lines changed

9 files changed

+173
-20
lines changed

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"specHash": "2fbd62855475472c85084c56b4a4c6c5",
2+
"specHash": "96301d732a1a9fa2ec272adc08c795bd",
33
"generatedFiles": {
44
"files": [
55
{
@@ -416,7 +416,7 @@
416416
},
417417
{
418418
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/BaseGist.php",
419-
"hash": "9d636b124c21ad6980e59aedf9b43faf"
419+
"hash": "115c320754394036b15ffbf2b7c0b3e7"
420420
},
421421
{
422422
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/PublicUser.php",
@@ -428,7 +428,7 @@
428428
},
429429
{
430430
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/GistSimple.php",
431-
"hash": "fdeb1df9a0109a2007fc2ac2f2ea6693"
431+
"hash": "7d3c107dcdaa9f6f3ff0a9ebfa459fe5"
432432
},
433433
{
434434
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/GistComment.php",
@@ -2820,7 +2820,7 @@
28202820
},
28212821
{
28222822
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/GistSimple\/ForkOf.php",
2823-
"hash": "2952f75792119676cd5de5bb035d69c4"
2823+
"hash": "d0f646cd95a9cb930375cde8f59d5392"
28242824
},
28252825
{
28262826
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/GistSimple\/Files.php",
@@ -26940,7 +26940,7 @@
2694026940
},
2694126941
{
2694226942
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Gists.php",
26943-
"hash": "1ffec6db01bc1109f6e514e1ec788e9d"
26943+
"hash": "3705773d2720f55ec9a49299e14b28bd"
2694426944
},
2694526945
{
2694626946
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Gists\/Public_.php",
@@ -26952,7 +26952,7 @@
2695226952
},
2695326953
{
2695426954
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Gists\/GistId.php",
26955-
"hash": "7a3aca4b3b262a6a65b84adabe9b7deb"
26955+
"hash": "4dd3c17b8551c8f05c67259bf0332d49"
2695626956
},
2695726957
{
2695826958
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Gists\/GistId\/Comments.php",
@@ -26968,15 +26968,15 @@
2696826968
},
2696926969
{
2697026970
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Gists\/GistId\/Forks.php",
26971-
"hash": "14b1cdc9e3ca85b54103070031a5e727"
26971+
"hash": "5e9955e82a204d84179ebc485d057cae"
2697226972
},
2697326973
{
2697426974
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Gists\/GistId\/Star.php",
2697526975
"hash": "f728c9eae05a72ba1dbeb759dd889c8b"
2697626976
},
2697726977
{
2697826978
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Gists\/GistId\/Sha.php",
26979-
"hash": "e4cf411e40e11eae7e57ed428ca465a6"
26979+
"hash": "d4ba8fd324847004504a74606a88079a"
2698026980
},
2698126981
{
2698226982
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Gitignore\/Templates\/Name.php",
@@ -34184,7 +34184,7 @@
3418434184
},
3418534185
{
3418634186
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/PrivateRegistries.php",
34187-
"hash": "e7fa41e48b636fb72ffb9fc10b8422cb"
34187+
"hash": "602de4953cecb9eb083620b1a7f8ab73"
3418834188
},
3418934189
{
3419034190
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/PrivateRegistries.php",

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

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
329329

330330
after_comments:
331331

332+
$value = $payload['comments_enabled'] ?? null;
333+
334+
if ($value === null) {
335+
$properties['commentsEnabled'] = null;
336+
goto after_commentsEnabled;
337+
}
338+
339+
$properties['commentsEnabled'] = $value;
340+
341+
after_commentsEnabled:
342+
332343
$value = $payload['user'] ?? null;
333344

334345
if ($value === null) {
@@ -564,6 +575,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
564575

565576
after_comments:
566577

578+
$value = $payload['comments_enabled'] ?? null;
579+
580+
if ($value === null) {
581+
$properties['commentsEnabled'] = null;
582+
goto after_commentsEnabled;
583+
}
584+
585+
$properties['commentsEnabled'] = $value;
586+
587+
after_commentsEnabled:
588+
567589
$value = $payload['user'] ?? null;
568590

569591
if ($value === null) {
@@ -1310,6 +1332,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou
13101332

13111333
after_comments: $result['comments'] = $comments;
13121334

1335+
$commentsEnabled = $object->commentsEnabled;
1336+
1337+
if ($commentsEnabled === null) {
1338+
goto after_commentsEnabled;
1339+
}
1340+
1341+
after_commentsEnabled: $result['comments_enabled'] = $commentsEnabled;
1342+
13131343
$user = $object->user;
13141344

13151345
if ($user === null) {
@@ -1399,6 +1429,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou
13991429
$comments = $object->comments;
14001430
after_comments: $result['comments'] = $comments;
14011431

1432+
$commentsEnabled = $object->commentsEnabled;
1433+
1434+
if ($commentsEnabled === null) {
1435+
goto after_commentsEnabled;
1436+
}
1437+
1438+
after_commentsEnabled: $result['comments_enabled'] = $commentsEnabled;
1439+
14021440
$user = $object->user;
14031441

14041442
if ($user === null) {

clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Gists/GistId.php

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
270270

271271
after_comments:
272272

273+
$value = $payload['comments_enabled'] ?? null;
274+
275+
if ($value === null) {
276+
$properties['commentsEnabled'] = null;
277+
goto after_commentsEnabled;
278+
}
279+
280+
$properties['commentsEnabled'] = $value;
281+
282+
after_commentsEnabled:
283+
273284
$value = $payload['user'] ?? null;
274285

275286
if ($value === null) {
@@ -505,6 +516,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
505516

506517
after_comments:
507518

519+
$value = $payload['comments_enabled'] ?? null;
520+
521+
if ($value === null) {
522+
$properties['commentsEnabled'] = null;
523+
goto after_commentsEnabled;
524+
}
525+
526+
$properties['commentsEnabled'] = $value;
527+
528+
after_commentsEnabled:
529+
508530
$value = $payload['user'] ?? null;
509531

510532
if ($value === null) {
@@ -1389,6 +1411,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou
13891411

13901412
after_comments: $result['comments'] = $comments;
13911413

1414+
$commentsEnabled = $object->commentsEnabled;
1415+
1416+
if ($commentsEnabled === null) {
1417+
goto after_commentsEnabled;
1418+
}
1419+
1420+
after_commentsEnabled: $result['comments_enabled'] = $commentsEnabled;
1421+
13921422
$user = $object->user;
13931423

13941424
if ($user === null) {
@@ -1478,6 +1508,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou
14781508
$comments = $object->comments;
14791509
after_comments: $result['comments'] = $comments;
14801510

1511+
$commentsEnabled = $object->commentsEnabled;
1512+
1513+
if ($commentsEnabled === null) {
1514+
goto after_commentsEnabled;
1515+
}
1516+
1517+
after_commentsEnabled: $result['comments_enabled'] = $commentsEnabled;
1518+
14811519
$user = $object->user;
14821520

14831521
if ($user === null) {

clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Gists/GistId/Forks.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
284284

285285
after_comments:
286286

287+
$value = $payload['comments_enabled'] ?? null;
288+
289+
if ($value === null) {
290+
$properties['commentsEnabled'] = null;
291+
goto after_commentsEnabled;
292+
}
293+
294+
$properties['commentsEnabled'] = $value;
295+
296+
after_commentsEnabled:
297+
287298
$value = $payload['user'] ?? null;
288299

289300
if ($value === null) {
@@ -905,6 +916,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou
905916
$comments = $object->comments;
906917
after_comments: $result['comments'] = $comments;
907918

919+
$commentsEnabled = $object->commentsEnabled;
920+
921+
if ($commentsEnabled === null) {
922+
goto after_commentsEnabled;
923+
}
924+
925+
after_commentsEnabled: $result['comments_enabled'] = $commentsEnabled;
926+
908927
$user = $object->user;
909928

910929
if ($user === null) {

clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Gists/GistId/Sha.php

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
266266

267267
after_comments:
268268

269+
$value = $payload['comments_enabled'] ?? null;
270+
271+
if ($value === null) {
272+
$properties['commentsEnabled'] = null;
273+
goto after_commentsEnabled;
274+
}
275+
276+
$properties['commentsEnabled'] = $value;
277+
278+
after_commentsEnabled:
279+
269280
$value = $payload['user'] ?? null;
270281

271282
if ($value === null) {
@@ -501,6 +512,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
501512

502513
after_comments:
503514

515+
$value = $payload['comments_enabled'] ?? null;
516+
517+
if ($value === null) {
518+
$properties['commentsEnabled'] = null;
519+
goto after_commentsEnabled;
520+
}
521+
522+
$properties['commentsEnabled'] = $value;
523+
524+
after_commentsEnabled:
525+
504526
$value = $payload['user'] ?? null;
505527

506528
if ($value === null) {
@@ -1270,6 +1292,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou
12701292

12711293
after_comments: $result['comments'] = $comments;
12721294

1295+
$commentsEnabled = $object->commentsEnabled;
1296+
1297+
if ($commentsEnabled === null) {
1298+
goto after_commentsEnabled;
1299+
}
1300+
1301+
after_commentsEnabled: $result['comments_enabled'] = $commentsEnabled;
1302+
12731303
$user = $object->user;
12741304

12751305
if ($user === null) {
@@ -1359,6 +1389,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou
13591389
$comments = $object->comments;
13601390
after_comments: $result['comments'] = $comments;
13611391

1392+
$commentsEnabled = $object->commentsEnabled;
1393+
1394+
if ($commentsEnabled === null) {
1395+
goto after_commentsEnabled;
1396+
}
1397+
1398+
after_commentsEnabled: $result['comments_enabled'] = $commentsEnabled;
1399+
13621400
$user = $object->user;
13631401

13641402
if ($user === null) {

clients/GitHubEnterpriseCloud/src/Schema/BaseGist.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,9 @@
109109
"comments": {
110110
"type": "integer"
111111
},
112+
"comments_enabled": {
113+
"type": "boolean"
114+
},
112115
"user": {
113116
"anyOf": [
114117
{
@@ -487,6 +490,7 @@
487490
"updated_at": "1970-01-01T00:00:00+00:00",
488491
"description": "generated",
489492
"comments": 8,
493+
"comments_enabled": false,
490494
"user": {
491495
"name": "generated",
492496
"email": "generated",
@@ -558,7 +562,8 @@ public function __construct(public string $url, #[MapFrom('forks_url')]
558562
public string $gitPushUrl, #[MapFrom('html_url')]
559563
public string $htmlUrl, public Schema\BaseGist\Files $files, public bool $public, #[MapFrom('created_at')]
560564
public string $createdAt, #[MapFrom('updated_at')]
561-
public string $updatedAt, public string|null $description, public int $comments, public Schema\SimpleUser|null $user, #[MapFrom('comments_url')]
565+
public string $updatedAt, public string|null $description, public int $comments, #[MapFrom('comments_enabled')]
566+
public bool|null $commentsEnabled, public Schema\SimpleUser|null $user, #[MapFrom('comments_url')]
562567
public string $commentsUrl, public Schema\SimpleUser|null $owner, public bool|null $truncated, public array|null $forks, public array|null $history,)
563568
{
564569
}

clients/GitHubEnterpriseCloud/src/Schema/GistSimple.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,6 +591,9 @@
591591
"comments": {
592592
"type": "integer"
593593
},
594+
"comments_enabled": {
595+
"type": "boolean"
596+
},
594597
"user": {
595598
"anyOf": [
596599
{
@@ -1038,6 +1041,9 @@
10381041
"comments": {
10391042
"type": "integer"
10401043
},
1044+
"comments_enabled": {
1045+
"type": "boolean"
1046+
},
10411047
"user": {
10421048
"type": [
10431049
"string",
@@ -1241,6 +1247,7 @@
12411247
"updated_at": "1970-01-01T00:00:00+00:00",
12421248
"description": "generated",
12431249
"comments": 8,
1250+
"comments_enabled": false,
12441251
"user": {
12451252
"name": "generated",
12461253
"email": "generated",
@@ -1314,6 +1321,7 @@
13141321
"updated_at": "generated",
13151322
"description": "generated",
13161323
"comments": 8,
1324+
"comments_enabled": false,
13171325
"user": "generated",
13181326
"comments_url": "generated",
13191327
"owner": {
@@ -1356,7 +1364,8 @@ public function __construct(public array|null $forks, public array|null $history
13561364
public string|null $gitPushUrl, #[MapFrom('html_url')]
13571365
public string|null $htmlUrl, public Schema\GistSimple\Files|null $files, public bool|null $public, #[MapFrom('created_at')]
13581366
public string|null $createdAt, #[MapFrom('updated_at')]
1359-
public string|null $updatedAt, public string|null $description, public int|null $comments, public string|null $user, #[MapFrom('comments_url')]
1367+
public string|null $updatedAt, public string|null $description, public int|null $comments, #[MapFrom('comments_enabled')]
1368+
public bool|null $commentsEnabled, public string|null $user, #[MapFrom('comments_url')]
13601369
public string|null $commentsUrl, public Schema\SimpleUser|null $owner, public bool|null $truncated,)
13611370
{
13621371
}

0 commit comments

Comments
 (0)