Skip to content

Commit 33ffca6

Browse files
WyriHaximusgithub-actions[bot]
authored andcommitted
[GitHub] Update to 1.1.4-82b1087a8dddd5516c99b2197699c7e0 from 1.1.4-4bfe6378be3ffa1aed95dac111e07ebb
Detected Schema changes: ``` ├──[➖] webhooks (52958:5)❌ └─┬Components ├──[➖] schemas (109675:7)❌ └─┬repository-rule-pull-request └─┬parameters └──[➖] properties (79691:13)❌ ``` | Document Element | Total Changes | Breaking Changes | |------------------|---------------|------------------| | components | 2 | 2 | Date: 03/24/25 | Commit: Original: etc/specs/GitHub/current.spec.yaml, Modified: etc/specs/GitHub/previous.spec.yaml, - ❌ **BREAKING Changes**: _2_ out of _2_ - **Removals**: _3_ - **Breaking Removals**: _3_ ERROR: breaking changes discovered
1 parent 5e3a500 commit 33ffca6

22 files changed

+1019
-28
lines changed

Diff for: clients/GitHub/etc/openapi-client-generator.state

+25-21
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"specHash": "4bfe6378be3ffa1aed95dac111e07ebb",
2+
"specHash": "82b1087a8dddd5516c99b2197699c7e0",
33
"generatedFiles": {
44
"files": [
55
{
@@ -564,7 +564,7 @@
564564
},
565565
{
566566
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRulePullRequest.php",
567-
"hash": "1515019feeb8162e78c28289262e1d24"
567+
"hash": "3f8479325e6b6a11300642fb6a077ca8"
568568
},
569569
{
570570
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleParamsStatusCheckConfiguration.php",
@@ -600,11 +600,11 @@
600600
},
601601
{
602602
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRule.php",
603-
"hash": "8519cdec25b5fee363ea63e478fc3cb1"
603+
"hash": "b243d109b3eb353c09134a66b27c6d6f"
604604
},
605605
{
606606
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleset.php",
607-
"hash": "e94cb4b94aa570dacbc81a5fa6877dad"
607+
"hash": "f1a58d8a5aa8a2f61d5cca9ab3399cf5"
608608
},
609609
{
610610
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/ActionsBillingUsage.php",
@@ -2712,7 +2712,7 @@
27122712
},
27132713
{
27142714
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRulePullRequest\/Parameters.php",
2715-
"hash": "890cf401cdff8d30a6b13d9a290b1059"
2715+
"hash": "1d433c207a9d8b3763d51f9779075ef6"
27162716
},
27172717
{
27182718
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleRequiredStatusChecks\/Parameters.php",
@@ -4612,11 +4612,11 @@
46124612
},
46134613
{
46144614
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Repos\/CreateOrgRuleset\/Request\/ApplicationJson.php",
4615-
"hash": "7d5d76e6c4bd5b18815d84d687645aea"
4615+
"hash": "bcfc08321d7a525a0797d7661f952d21"
46164616
},
46174617
{
46184618
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Repos\/UpdateOrgRuleset\/Request\/ApplicationJson.php",
4619-
"hash": "1522d3c75fc09e21c47ddd8ec31d128f"
4619+
"hash": "331818ab81fd36e6277795f5d5d2c319"
46204620
},
46214621
{
46224622
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Teams\/Create\/Request\/ApplicationJson.php",
@@ -5320,11 +5320,11 @@
53205320
},
53215321
{
53225322
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Repos\/CreateRepoRuleset\/Request\/ApplicationJson.php",
5323-
"hash": "45024c3728f6216dfa91bb2ff7784c65"
5323+
"hash": "9407385d8e8818776ddf26674f79241a"
53245324
},
53255325
{
53265326
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Repos\/UpdateRepoRuleset\/Request\/ApplicationJson.php",
5327-
"hash": "afa74463bd4af840f60b42d627bf8008"
5327+
"hash": "70af8a903760c21956d5868328670281"
53285328
},
53295329
{
53305330
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/SecretScanning\/UpdateAlert\/Request\/ApplicationJson.php",
@@ -5596,7 +5596,7 @@
55965596
},
55975597
{
55985598
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Repos.php",
5599-
"hash": "44cc22eab5e09a25e5462f975ff982ea"
5599+
"hash": "5b6fbe1673276c5370be36ed9af8a076"
56005600
},
56015601
{
56025602
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Billing.php",
@@ -5648,7 +5648,7 @@
56485648
},
56495649
{
56505650
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/WebHooks.php",
5651-
"hash": "f410ea53774e8b7e0b1e7500abe52b96"
5651+
"hash": "8e06faae0c1f83928f13fca56c080687"
56525652
},
56535653
{
56545654
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/TietEB301A03\/Tiet504AADCF\/Tiet2FEB0C19\/TietF58BE94A.php",
@@ -11564,7 +11564,7 @@
1156411564
},
1156511565
{
1156611566
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleDetailed.php",
11567-
"hash": "224cd2140c2b1e934ba658ceff52d1a4"
11567+
"hash": "e975eb7f40c042c7cf40b94b370bbffe"
1156811568
},
1156911569
{
1157011570
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CopilotOrganizationDetails.php",
@@ -11680,15 +11680,15 @@
1168011680
},
1168111681
{
1168211682
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetCreated.php",
11683-
"hash": "8865cd10465ff9425eb76ee95f6c429f"
11683+
"hash": "b016f00e51ffed2098e3ac2cbddbe2cd"
1168411684
},
1168511685
{
1168611686
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetDeleted.php",
11687-
"hash": "1ec01b75b354ac454f0564d0b38476d1"
11687+
"hash": "c363e1ec7d032e3e689a2eca270ffd33"
1168811688
},
1168911689
{
1169011690
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetEdited.php",
11691-
"hash": "88d095541c692b12b3c270a30d21304d"
11691+
"hash": "1746316057881ef0ff4c75bdf4db219f"
1169211692
},
1169311693
{
1169411694
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookDeploymentReviewApproved\/WorkflowRun\/Actor.php",
@@ -11920,7 +11920,7 @@
1192011920
},
1192111921
{
1192211922
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetEdited\/Changes.php",
11923-
"hash": "1c33fb881508bc7da4ae82aac02d9542"
11923+
"hash": "8ba51e8c9ad06c9ff16e973a86079cc8"
1192411924
},
1192511925
{
1192611926
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetEdited\/Changes\/Conditions.php",
@@ -11948,11 +11948,11 @@
1194811948
},
1194911949
{
1195011950
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetEdited\/Changes\/Rules.php",
11951-
"hash": "b49c288f03f3e7ba40e660d937401c70"
11951+
"hash": "7fdbee007e525f264199cc367621138c"
1195211952
},
1195311953
{
1195411954
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetEdited\/Changes\/Rules\/Updated.php",
11955-
"hash": "309f7abf85dd75cbde9cb01092799db7"
11955+
"hash": "fe19b638d3ce1115c2ea18e2a88a1ba4"
1195611956
},
1195711957
{
1195811958
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetEdited\/Changes\/Rules\/Updated\/Changes.php",
@@ -27032,7 +27032,7 @@
2703227032
},
2703327033
{
2703427034
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrators.php",
27035-
"hash": "3a2874257b56d756d8a77df78cb41ed2"
27035+
"hash": "245c69396bc3105967a88ad7efe55ac0"
2703627036
},
2703727037
{
2703827038
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/OrganizationSimpleWebhooks.php",
@@ -27652,7 +27652,7 @@
2765227652
},
2765327653
{
2765427654
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/WebHook\/CustomProperty.php",
27655-
"hash": "be06a9eea23b907fcbbe87407fde4668"
27655+
"hash": "a09df0f134944a3650f583a166ca876e"
2765627656
},
2765727657
{
2765827658
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/WebHook\/CustomPropertyValues.php",
@@ -27936,7 +27936,7 @@
2793627936
},
2793727937
{
2793827938
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/CustomProperty.php",
27939-
"hash": "3c29e7bb6806ab4516aa54f228c67c1e"
27939+
"hash": "08f5447fe2ff527431b4f7b21820cdf3"
2794027940
},
2794127941
{
2794227942
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/CustomPropertyValues.php",
@@ -32001,6 +32001,10 @@
3200132001
{
3200232002
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleMaxFileSize\/Parameters.php",
3200332003
"hash": "30374f0cc216584120ff27ea39a30c18"
32004+
},
32005+
{
32006+
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCustomPropertyPromotedToEnterprise.php",
32007+
"hash": "ae2c793115e89b5b5acde4596bc61330"
3200432008
}
3200532009
]
3200632010
},

Diff for: clients/GitHub/src/Internal/Hydrator/WebHook/CustomProperty.php

+184
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
use ApiClients\Client\GitHub\Schema\WebhookCustomPropertyCreated;
1212
use ApiClients\Client\GitHub\Schema\WebhookCustomPropertyDeleted;
1313
use ApiClients\Client\GitHub\Schema\WebhookCustomPropertyDeleted\Definition;
14+
use ApiClients\Client\GitHub\Schema\WebhookCustomPropertyPromotedToEnterprise;
1415
use ApiClients\Client\GitHub\Schema\WebhookCustomPropertyUpdated;
1516
use EventSauce\ObjectHydrator\IterableList;
1617
use EventSauce\ObjectHydrator\ObjectMapper;
@@ -55,6 +56,7 @@ public function hydrateObject(string $className, array $payload): object
5556
'ApiClients\Client\GitHub\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($payload),
5657
'ApiClients\Client\GitHub\Schema\WebhookCustomPropertyDeleted' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookCustomPropertyDeleted($payload),
5758
'ApiClients\Client\GitHub\Schema\WebhookCustomPropertyDeleted\Definition' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookCustomPropertyDeleted⚡️Definition($payload),
59+
'ApiClients\Client\GitHub\Schema\WebhookCustomPropertyPromotedToEnterprise' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookCustomPropertyPromotedToEnterprise($payload),
5860
'ApiClients\Client\GitHub\Schema\WebhookCustomPropertyUpdated' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookCustomPropertyUpdated($payload),
5961
default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack),
6062
};
@@ -1050,6 +1052,136 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh
10501052
}
10511053
}
10521054

1055+
private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookCustomPropertyPromotedToEnterprise(array $payload): WebhookCustomPropertyPromotedToEnterprise
1056+
{
1057+
$properties = [];
1058+
$missingFields = [];
1059+
try {
1060+
$value = $payload['action'] ?? null;
1061+
1062+
if ($value === null) {
1063+
$missingFields[] = 'action';
1064+
goto after_action;
1065+
}
1066+
1067+
$properties['action'] = $value;
1068+
1069+
after_action:
1070+
1071+
$value = $payload['definition'] ?? null;
1072+
1073+
if ($value === null) {
1074+
$missingFields[] = 'definition';
1075+
goto after_definition;
1076+
}
1077+
1078+
if (is_array($value)) {
1079+
try {
1080+
$this->hydrationStack[] = 'definition';
1081+
$value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CustomProperty($value);
1082+
} finally {
1083+
array_pop($this->hydrationStack);
1084+
}
1085+
}
1086+
1087+
$properties['definition'] = $value;
1088+
1089+
after_definition:
1090+
1091+
$value = $payload['enterprise'] ?? null;
1092+
1093+
if ($value === null) {
1094+
$properties['enterprise'] = null;
1095+
goto after_enterprise;
1096+
}
1097+
1098+
if (is_array($value)) {
1099+
try {
1100+
$this->hydrationStack[] = 'enterprise';
1101+
$value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️EnterpriseWebhooks($value);
1102+
} finally {
1103+
array_pop($this->hydrationStack);
1104+
}
1105+
}
1106+
1107+
$properties['enterprise'] = $value;
1108+
1109+
after_enterprise:
1110+
1111+
$value = $payload['installation'] ?? null;
1112+
1113+
if ($value === null) {
1114+
$properties['installation'] = null;
1115+
goto after_installation;
1116+
}
1117+
1118+
if (is_array($value)) {
1119+
try {
1120+
$this->hydrationStack[] = 'installation';
1121+
$value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleInstallation($value);
1122+
} finally {
1123+
array_pop($this->hydrationStack);
1124+
}
1125+
}
1126+
1127+
$properties['installation'] = $value;
1128+
1129+
after_installation:
1130+
1131+
$value = $payload['organization'] ?? null;
1132+
1133+
if ($value === null) {
1134+
$properties['organization'] = null;
1135+
goto after_organization;
1136+
}
1137+
1138+
if (is_array($value)) {
1139+
try {
1140+
$this->hydrationStack[] = 'organization';
1141+
$value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️OrganizationSimpleWebhooks($value);
1142+
} finally {
1143+
array_pop($this->hydrationStack);
1144+
}
1145+
}
1146+
1147+
$properties['organization'] = $value;
1148+
1149+
after_organization:
1150+
1151+
$value = $payload['sender'] ?? null;
1152+
1153+
if ($value === null) {
1154+
$properties['sender'] = null;
1155+
goto after_sender;
1156+
}
1157+
1158+
if (is_array($value)) {
1159+
try {
1160+
$this->hydrationStack[] = 'sender';
1161+
$value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value);
1162+
} finally {
1163+
array_pop($this->hydrationStack);
1164+
}
1165+
}
1166+
1167+
$properties['sender'] = $value;
1168+
1169+
after_sender:
1170+
} catch (Throwable $exception) {
1171+
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\WebhookCustomPropertyPromotedToEnterprise', $exception, stack: $this->hydrationStack);
1172+
}
1173+
1174+
if (count($missingFields) > 0) {
1175+
throw UnableToHydrateObject::dueToMissingFields(WebhookCustomPropertyPromotedToEnterprise::class, $missingFields, stack: $this->hydrationStack);
1176+
}
1177+
1178+
try {
1179+
return new WebhookCustomPropertyPromotedToEnterprise(...$properties);
1180+
} catch (Throwable $exception) {
1181+
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\WebhookCustomPropertyPromotedToEnterprise', $exception, stack: $this->hydrationStack);
1182+
}
1183+
}
1184+
10531185
private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookCustomPropertyUpdated(array $payload): WebhookCustomPropertyUpdated
10541186
{
10551187
$properties = [];
@@ -1219,6 +1351,7 @@ public function serializeObjectOfType(object $object, string $className): mixed
12191351
'ApiClients\Client\GitHub\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($object),
12201352
'ApiClients\Client\GitHub\Schema\WebhookCustomPropertyDeleted' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookCustomPropertyDeleted($object),
12211353
'ApiClients\Client\GitHub\Schema\WebhookCustomPropertyDeleted\Definition' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookCustomPropertyDeleted⚡️Definition($object),
1354+
'ApiClients\Client\GitHub\Schema\WebhookCustomPropertyPromotedToEnterprise' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookCustomPropertyPromotedToEnterprise($object),
12221355
'ApiClients\Client\GitHub\Schema\WebhookCustomPropertyUpdated' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookCustomPropertyUpdated($object),
12231356
default => throw new LogicException("No serialization defined for $className"),
12241357
};
@@ -1699,6 +1832,57 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
16991832
return $result;
17001833
}
17011834

1835+
private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookCustomPropertyPromotedToEnterprise(mixed $object): mixed
1836+
{
1837+
assert($object instanceof WebhookCustomPropertyPromotedToEnterprise);
1838+
$result = [];
1839+
1840+
$action = $object->action;
1841+
after_action: $result['action'] = $action;
1842+
1843+
$definition = $object->definition;
1844+
$definition = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CustomProperty($definition);
1845+
after_definition: $result['definition'] = $definition;
1846+
1847+
$enterprise = $object->enterprise;
1848+
1849+
if ($enterprise === null) {
1850+
goto after_enterprise;
1851+
}
1852+
1853+
$enterprise = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️EnterpriseWebhooks($enterprise);
1854+
after_enterprise: $result['enterprise'] = $enterprise;
1855+
1856+
$installation = $object->installation;
1857+
1858+
if ($installation === null) {
1859+
goto after_installation;
1860+
}
1861+
1862+
$installation = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleInstallation($installation);
1863+
after_installation: $result['installation'] = $installation;
1864+
1865+
$organization = $object->organization;
1866+
1867+
if ($organization === null) {
1868+
goto after_organization;
1869+
}
1870+
1871+
$organization = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️OrganizationSimpleWebhooks($organization);
1872+
after_organization: $result['organization'] = $organization;
1873+
1874+
$sender = $object->sender;
1875+
1876+
if ($sender === null) {
1877+
goto after_sender;
1878+
}
1879+
1880+
$sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender);
1881+
after_sender: $result['sender'] = $sender;
1882+
1883+
return $result;
1884+
}
1885+
17021886
private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookCustomPropertyUpdated(mixed $object): mixed
17031887
{
17041888
assert($object instanceof WebhookCustomPropertyUpdated);

0 commit comments

Comments
 (0)