Skip to content

Commit 2cd6f8f

Browse files
WyriHaximusgithub-actions[bot]
authored andcommitted
[GitHubEnterprise-3.11] Update to 1.1.4-81c4455e09e6d0a7839d21c43d3b9227 from 1.1.4-8b689e9e6d817ceae32548abb0b54ce6
Detected Schema changes: starting work. Building original model for commit a991f3 SPEC: extracted 2 commits from history ├─┬Paths │ ├─┬/repos/{owner}/{repo}/git/ref/{ref} │ │ └─┬GET │ │ └─┬Parameters │ │ ├──[-] example (228586:16) │ │ └──[M] description (228512:20) │ ├─┬/repos/{owner}/{repo}/git/refs/{ref} │ │ ├─┬DELETE │ │ │ ├──[-] description (29050:20) │ │ │ └─┬Parameters │ │ │ ├──[-] example (228586:16) │ │ │ └──[M] description (228512:20) │ │ └─┬PATCH │ │ ├──[-] description (28995:20) │ │ └─┬Parameters │ │ ├──[M] example (29012:18) │ │ └──[M] description (29006:22) │ └─┬/repos/{owner}/{repo}/git/matching-refs/{ref} │ └─┬GET │ └─┬Parameters │ ├──[-] example (228586:16) │ └──[M] description (228512:20) └─┬Components ├──[-] parameters (228581:7)❌ └─┬webhook-member-added └─┬changes ├──[-] properties (125829:13)❌ └─┬permission └──[-] description (125814:28) Date: 03/07/24 | Commit: New: etc/specs/GitHubEnterprise-3.11/previous.spec.yaml, Original: etc/specs/GitHubEnterprise-3.11/current.spec.yaml Document Element | Total Changes | Breaking Changes paths | 10 | 0 components | 3 | 2 ❌ 2 Breaking changes out of 13 INFO: Modifications: 5 INFO: Removals: 8 INFO: Breaking Removals: 2
1 parent 9eafe58 commit 2cd6f8f

File tree

25 files changed

+232
-72
lines changed

25 files changed

+232
-72
lines changed

clients/GitHubEnterprise-3.11/etc/openapi-client-generator.state

Lines changed: 28 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"specHash": "8b689e9e6d817ceae32548abb0b54ce6",
2+
"specHash": "81c4455e09e6d0a7839d21c43d3b9227",
33
"generatedFiles": {
44
"files": [
55
{
@@ -7720,23 +7720,23 @@
77207720
},
77217721
{
77227722
"name": ".\/clients\/GitHubEnterprise-3.11\/etc\/..\/\/src\/\/Internal\/Operation\/Git\/ListMatchingRefs.php",
7723-
"hash": "c9149b75249a55fa1e45d7e008c42e91"
7723+
"hash": "25dfeaf58366c6c56b966743fd98bee6"
77247724
},
77257725
{
77267726
"name": ".\/clients\/GitHubEnterprise-3.11\/etc\/..\/\/src\/\/Internal\/Operator\/Git\/ListMatchingRefs.php",
7727-
"hash": "b01261f065b2b48acd6e9494e9b67424"
7727+
"hash": "d1e019f7caf4deb7217bd03bf5ccbed5"
77287728
},
77297729
{
77307730
"name": ".\/clients\/GitHubEnterprise-3.11\/etc\/..\/\/tests\/\/Internal\/Operation\/Git\/ListMatchingRefsTest.php",
77317731
"hash": "e8d27e211e6d2ff8958eb90616da0de6"
77327732
},
77337733
{
77347734
"name": ".\/clients\/GitHubEnterprise-3.11\/etc\/..\/\/src\/\/Internal\/Operation\/Git\/GetRef.php",
7735-
"hash": "16292ca8d1b9913e3269cd6581664827"
7735+
"hash": "b3338af621a6eb1b8531452589fd1740"
77367736
},
77377737
{
77387738
"name": ".\/clients\/GitHubEnterprise-3.11\/etc\/..\/\/src\/\/Internal\/Operator\/Git\/GetRef.php",
7739-
"hash": "c63f464f4b5fcced23e084f3fa8ff0a0"
7739+
"hash": "f4b84b41cf537f8c83d8c4310ab81f39"
77407740
},
77417741
{
77427742
"name": ".\/clients\/GitHubEnterprise-3.11\/etc\/..\/\/tests\/\/Internal\/Operation\/Git\/GetRefTest.php",
@@ -7756,23 +7756,23 @@
77567756
},
77577757
{
77587758
"name": ".\/clients\/GitHubEnterprise-3.11\/etc\/..\/\/src\/\/Internal\/Operation\/Git\/DeleteRef.php",
7759-
"hash": "f975300498e3a7c9d05fb6b4a8206967"
7759+
"hash": "4777d04e86f84e37b3cbc51613c03a94"
77607760
},
77617761
{
77627762
"name": ".\/clients\/GitHubEnterprise-3.11\/etc\/..\/\/src\/\/Internal\/Operator\/Git\/DeleteRef.php",
7763-
"hash": "b7dee67e0da841f04adb00531264640a"
7763+
"hash": "30f7fcf1d63adb98427ac1f7407ed09e"
77647764
},
77657765
{
77667766
"name": ".\/clients\/GitHubEnterprise-3.11\/etc\/..\/\/tests\/\/Internal\/Operation\/Git\/DeleteRefTest.php",
77677767
"hash": "645a96ed4d2bbb9689dfea498c0bbccb"
77687768
},
77697769
{
77707770
"name": ".\/clients\/GitHubEnterprise-3.11\/etc\/..\/\/src\/\/Internal\/Operation\/Git\/UpdateRef.php",
7771-
"hash": "c7f3b58d99dde1ce1ed3a4e42aa65736"
7771+
"hash": "52b6d0240a553230150a2b646c3a2e89"
77727772
},
77737773
{
77747774
"name": ".\/clients\/GitHubEnterprise-3.11\/etc\/..\/\/src\/\/Internal\/Operator\/Git\/UpdateRef.php",
7775-
"hash": "1b719f23a084f0a04e31a6307372387c"
7775+
"hash": "a860a5826a9ad2bfc63b3fe7340fccec"
77767776
},
77777777
{
77787778
"name": ".\/clients\/GitHubEnterprise-3.11\/etc\/..\/\/tests\/\/Internal\/Operation\/Git\/UpdateRefTest.php",
@@ -14936,7 +14936,7 @@
1493614936
},
1493714937
{
1493814938
"name": ".\/clients\/GitHubEnterprise-3.11\/etc\/..\/\/src\/\/Schema\/WebhookMemberAdded.php",
14939-
"hash": "d331faededd4e0fff5bc7b4c605ea9ac"
14939+
"hash": "4c0612f81324353f175009292051af17"
1494014940
},
1494114941
{
1494214942
"name": ".\/clients\/GitHubEnterprise-3.11\/etc\/..\/\/src\/\/Schema\/WebhookMemberEdited.php",
@@ -21536,11 +21536,11 @@
2153621536
},
2153721537
{
2153821538
"name": ".\/clients\/GitHubEnterprise-3.11\/etc\/..\/\/src\/\/Schema\/WebhookMemberAdded\/Changes.php",
21539-
"hash": "0fec00126025c030a2fea4d6f9fa45b3"
21539+
"hash": "fcfb8ca963db11ee98f61b2e416131ef"
2154021540
},
2154121541
{
2154221542
"name": ".\/clients\/GitHubEnterprise-3.11\/etc\/..\/\/src\/\/Schema\/WebhookMemberAdded\/Changes\/Permission.php",
21543-
"hash": "39bef951c143a45371709ec256691a6b"
21543+
"hash": "b122a714ffd4895313d610fd1c86c1e5"
2154421544
},
2154521545
{
2154621546
"name": ".\/clients\/GitHubEnterprise-3.11\/etc\/..\/\/src\/\/Schema\/WebhookMemberEdited\/Changes.php",
@@ -26708,7 +26708,7 @@
2670826708
},
2670926709
{
2671026710
"name": ".\/clients\/GitHubEnterprise-3.11\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Git.php",
26711-
"hash": "7b88b9fd793fbe6078d2008f7e39d1f3"
26711+
"hash": "eaf58f409aaed8d29894edd171e16a3e"
2671226712
},
2671326713
{
2671426714
"name": ".\/clients\/GitHubEnterprise-3.11\/etc\/..\/\/src\/\/Internal\/Router\/List\/EnterpriseAdmin.php",
@@ -26936,7 +26936,7 @@
2693626936
},
2693726937
{
2693826938
"name": ".\/clients\/GitHubEnterprise-3.11\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Git.php",
26939-
"hash": "3ef1b2cbc19f53ebe14d56f091fcc5ba"
26939+
"hash": "32661e442809ef257b45820342388752"
2694026940
},
2694126941
{
2694226942
"name": ".\/clients\/GitHubEnterprise-3.11\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Issues.php",
@@ -27024,7 +27024,7 @@
2702427024
},
2702527025
{
2702627026
"name": ".\/clients\/GitHubEnterprise-3.11\/etc\/..\/\/src\/\/Internal\/Router\/Patch\/Git.php",
27027-
"hash": "0532e4a4109ae87c7431b6e9caa6256a"
27027+
"hash": "7563c788a333e452f3f42ec97eae7e46"
2702827028
},
2702927029
{
2703027030
"name": ".\/clients\/GitHubEnterprise-3.11\/etc\/..\/\/src\/\/Internal\/Router\/Patch\/Users.php",
@@ -27132,7 +27132,7 @@
2713227132
},
2713327133
{
2713427134
"name": ".\/clients\/GitHubEnterprise-3.11\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Seven.php",
27135-
"hash": "326136a854f3df4faa4941579b7bb08d"
27135+
"hash": "afe032ee48ff389cd12399e4e39bac72"
2713627136
},
2713727137
{
2713827138
"name": ".\/clients\/GitHubEnterprise-3.11\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Eight.php",
@@ -27232,7 +27232,7 @@
2723227232
},
2723327233
{
2723427234
"name": ".\/clients\/GitHubEnterprise-3.11\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Seven.php",
27235-
"hash": "faf0961379ff76c9b86543aaf4e416a4"
27235+
"hash": "a4febd7d113b240c469f2b81c4ec79ae"
2723627236
},
2723727237
{
2723827238
"name": ".\/clients\/GitHubEnterprise-3.11\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Six.php",
@@ -27268,7 +27268,7 @@
2726827268
},
2726927269
{
2727027270
"name": ".\/clients\/GitHubEnterprise-3.11\/etc\/..\/\/src\/\/Internal\/Router\/Patch\/Seven.php",
27271-
"hash": "a3f89ba447b1e68f11c964956153fa89"
27271+
"hash": "303727a57af72dd1a1c567eb2a0220f1"
2727227272
},
2727327273
{
2727427274
"name": ".\/clients\/GitHubEnterprise-3.11\/etc\/..\/\/src\/\/Internal\/Router\/Patch\/Nine.php",
@@ -27332,11 +27332,11 @@
2733227332
},
2733327333
{
2733427334
"name": ".\/clients\/GitHubEnterprise-3.11\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php",
27335-
"hash": "50dbb22df27e28a2ac99f2fe2b68e516"
27335+
"hash": "e021673060932d4c5b3a29cfc13310d5"
2733627336
},
2733727337
{
2733827338
"name": ".\/clients\/GitHubEnterprise-3.11\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php",
27339-
"hash": "12c152886b73e3a42de5993cd2c1845d"
27339+
"hash": "c6af9624dc5a9f9b5ca5f37df92f6311"
2734027340
},
2734127341
{
2734227342
"name": ".\/clients\/GitHubEnterprise-3.11\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon",
@@ -27376,7 +27376,7 @@
2737627376
},
2737727377
{
2737827378
"name": ".\/clients\/GitHubEnterprise-3.11\/etc\/..\/\/src\/\/Operation\/Actions.php",
27379-
"hash": "7e58961343ed2000dc286abf21da4b06"
27379+
"hash": "10411e012d235cf754db550ac1106f88"
2738027380
},
2738127381
{
2738227382
"name": ".\/clients\/GitHubEnterprise-3.11\/etc\/..\/\/src\/\/Operation\/CodeScanning.php",
@@ -27468,7 +27468,7 @@
2746827468
},
2746927469
{
2747027470
"name": ".\/clients\/GitHubEnterprise-3.11\/etc\/..\/\/src\/\/Operation\/Git.php",
27471-
"hash": "5a443aa23db0a8a7c61bc7e8989408f2"
27471+
"hash": "142d5310255affe47ba2af32511cf2f1"
2747227472
},
2747327473
{
2747427474
"name": ".\/clients\/GitHubEnterprise-3.11\/etc\/..\/\/src\/\/Operation\/Pulls.php",
@@ -29848,7 +29848,7 @@
2984829848
},
2984929849
{
2985029850
"name": ".\/clients\/GitHubEnterprise-3.11\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Member.php",
29851-
"hash": "0d44b56583b045e21901839560dea33b"
29851+
"hash": "4adb62fc38d6e4d137708f55e3b87495"
2985229852
},
2985329853
{
2985429854
"name": ".\/clients\/GitHubEnterprise-3.11\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Membership.php",
@@ -30008,7 +30008,7 @@
3000830008
},
3000930009
{
3001030010
"name": ".\/clients\/GitHubEnterprise-3.11\/etc\/..\/\/src\/\/Internal\/Hydrators.php",
30011-
"hash": "ec1f8c65d4f0adf63ce3ac822ecd1b74"
30011+
"hash": "ada690fd1b4e6b6ac0c7ed7319920465"
3001230012
},
3001330013
{
3001430014
"name": ".\/clients\/GitHubEnterprise-3.11\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet6661B3CC\/Tiet1BDE29E3\/Tiet512DD1D0\/Tiet155300AB.php",
@@ -30097,6 +30097,10 @@
3009730097
{
3009830098
"name": ".\/clients\/GitHubEnterprise-3.11\/etc\/..\/\/src\/\/Schema\/RepositoryRuleParamsThresholds.php",
3009930099
"hash": "eb9fd97fe114be9a17623e7bf67e00b5"
30100+
},
30101+
{
30102+
"name": ".\/clients\/GitHubEnterprise-3.11\/etc\/..\/\/src\/\/Schema\/WebhookMemberAdded\/Changes\/RoleName.php",
30103+
"hash": "828e0e3e5a94b62c05aafcf79ffe4c5a"
3010030104
}
3010130105
]
3010230106
},

clients/GitHubEnterprise-3.11/src/Internal/Hydrator/WebHook/Member.php

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
use ApiClients\Client\GitHubEnterprise\Schema\WebhookMemberAdded;
1818
use ApiClients\Client\GitHubEnterprise\Schema\WebhookMemberAdded\Changes;
1919
use ApiClients\Client\GitHubEnterprise\Schema\WebhookMemberAdded\Changes\Permission;
20+
use ApiClients\Client\GitHubEnterprise\Schema\WebhookMemberAdded\Changes\RoleName;
2021
use ApiClients\Client\GitHubEnterprise\Schema\WebhookMemberEdited;
2122
use ApiClients\Client\GitHubEnterprise\Schema\WebhookMemberEdited\Changes\OldPermission;
2223
use ApiClients\Client\GitHubEnterprise\Schema\WebhookMemberRemoved;
@@ -58,6 +59,7 @@ public function hydrateObject(string $className, array $payload): object
5859
'ApiClients\Client\GitHubEnterprise\Schema\WebhookMemberAdded' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookMemberAdded($payload),
5960
'ApiClients\Client\GitHubEnterprise\Schema\WebhookMemberAdded\Changes' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookMemberAdded⚡️Changes($payload),
6061
'ApiClients\Client\GitHubEnterprise\Schema\WebhookMemberAdded\Changes\Permission' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookMemberAdded⚡️Changes⚡️Permission($payload),
62+
'ApiClients\Client\GitHubEnterprise\Schema\WebhookMemberAdded\Changes\RoleName' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookMemberAdded⚡️Changes⚡️RoleName($payload),
6163
'ApiClients\Client\GitHubEnterprise\Schema\EnterpriseWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️EnterpriseWebhooks($payload),
6264
'ApiClients\Client\GitHubEnterprise\Schema\SimpleInstallation' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleInstallation($payload),
6365
'ApiClients\Client\GitHubEnterprise\Schema\WebhookMemberAdded\Member' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookMemberAdded⚡️Member($payload),
@@ -275,6 +277,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema
275277
$properties['permission'] = $value;
276278

277279
after_permission:
280+
281+
$value = $payload['role_name'] ?? null;
282+
283+
if ($value === null) {
284+
$properties['roleName'] = null;
285+
goto after_roleName;
286+
}
287+
288+
if (is_array($value)) {
289+
try {
290+
$this->hydrationStack[] = 'roleName';
291+
$value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookMemberAdded⚡️Changes⚡️RoleName($value);
292+
} finally {
293+
array_pop($this->hydrationStack);
294+
}
295+
}
296+
297+
$properties['roleName'] = $value;
298+
299+
after_roleName:
278300
} catch (Throwable $exception) {
279301
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\WebhookMemberAdded\Changes', $exception, stack: $this->hydrationStack);
280302
}
@@ -320,6 +342,36 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema
320342
}
321343
}
322344

345+
private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookMemberAdded⚡️Changes⚡️RoleName(array $payload): RoleName
346+
{
347+
$properties = [];
348+
$missingFields = [];
349+
try {
350+
$value = $payload['to'] ?? null;
351+
352+
if ($value === null) {
353+
$missingFields[] = 'to';
354+
goto after_to;
355+
}
356+
357+
$properties['to'] = $value;
358+
359+
after_to:
360+
} catch (Throwable $exception) {
361+
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\WebhookMemberAdded\Changes\RoleName', $exception, stack: $this->hydrationStack);
362+
}
363+
364+
if (count($missingFields) > 0) {
365+
throw UnableToHydrateObject::dueToMissingFields(RoleName::class, $missingFields, stack: $this->hydrationStack);
366+
}
367+
368+
try {
369+
return new RoleName(...$properties);
370+
} catch (Throwable $exception) {
371+
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\WebhookMemberAdded\Changes\RoleName', $exception, stack: $this->hydrationStack);
372+
}
373+
}
374+
323375
private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️EnterpriseWebhooks(array $payload): EnterpriseWebhooks
324376
{
325377
$properties = [];
@@ -4972,6 +5024,7 @@ public function serializeObjectOfType(object $object, string $className): mixed
49725024
'ApiClients\Client\GitHubEnterprise\Schema\WebhookMemberAdded' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookMemberAdded($object),
49735025
'ApiClients\Client\GitHubEnterprise\Schema\WebhookMemberAdded\Changes' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookMemberAdded⚡️Changes($object),
49745026
'ApiClients\Client\GitHubEnterprise\Schema\WebhookMemberAdded\Changes\Permission' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookMemberAdded⚡️Changes⚡️Permission($object),
5027+
'ApiClients\Client\GitHubEnterprise\Schema\WebhookMemberAdded\Changes\RoleName' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookMemberAdded⚡️Changes⚡️RoleName($object),
49755028
'ApiClients\Client\GitHubEnterprise\Schema\EnterpriseWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️EnterpriseWebhooks($object),
49765029
'ApiClients\Client\GitHubEnterprise\Schema\SimpleInstallation' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleInstallation($object),
49775030
'ApiClients\Client\GitHubEnterprise\Schema\WebhookMemberAdded\Member' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookMemberAdded⚡️Member($object),
@@ -5131,6 +5184,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡
51315184
$permission = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookMemberAdded⚡️Changes⚡️Permission($permission);
51325185
after_permission: $result['permission'] = $permission;
51335186

5187+
$roleName = $object->roleName;
5188+
5189+
if ($roleName === null) {
5190+
goto after_roleName;
5191+
}
5192+
5193+
$roleName = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookMemberAdded⚡️Changes⚡️RoleName($roleName);
5194+
after_roleName: $result['role_name'] = $roleName;
5195+
51345196
return $result;
51355197
}
51365198

@@ -5145,6 +5207,17 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡
51455207
return $result;
51465208
}
51475209

5210+
private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookMemberAdded⚡️Changes⚡️RoleName(mixed $object): mixed
5211+
{
5212+
assert($object instanceof RoleName);
5213+
$result = [];
5214+
5215+
$to = $object->to;
5216+
after_to: $result['to'] = $to;
5217+
5218+
return $result;
5219+
}
5220+
51485221
private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️EnterpriseWebhooks(mixed $object): mixed
51495222
{
51505223
assert($object instanceof EnterpriseWebhooks);

0 commit comments

Comments
 (0)