Skip to content

Commit c456969

Browse files
authored
Merge pull request #1519 from php-api-clients/GitHubEnterprise-3.13/from-1.1.4-50b5f868629d9d1260dbd8cc8a0f7a02-from-1.1.4-50b5f868629d9d1260dbd8cc8a0f7a02
2 parents 617def9 + 915dd24 commit c456969

File tree

22 files changed

+1512
-47
lines changed

22 files changed

+1512
-47
lines changed

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

Lines changed: 24 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"specHash": "21328c477fcf59892ec22f32ff4cf8b7",
2+
"specHash": "50b5f868629d9d1260dbd8cc8a0f7a02",
33
"generatedFiles": {
44
"files": [
55
{
@@ -10744,11 +10744,11 @@
1074410744
},
1074510745
{
1074610746
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Operation\/EnterpriseAdmin\/ListProvisionedGroupsEnterprise.php",
10747-
"hash": "cd460736f3e3abe46d504126639546d7"
10747+
"hash": "d28f69c1e3c09046f6a78b699678cef2"
1074810748
},
1074910749
{
1075010750
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Operator\/EnterpriseAdmin\/ListProvisionedGroupsEnterprise.php",
10751-
"hash": "75b7740fb512adfb41a711553a784db0"
10751+
"hash": "5ebd59b377fa56da84093860b074238a"
1075210752
},
1075310753
{
1075410754
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/tests\/\/Internal\/Operation\/EnterpriseAdmin\/ListProvisionedGroupsEnterpriseTest.php",
@@ -10816,11 +10816,11 @@
1081610816
},
1081710817
{
1081810818
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Operation\/EnterpriseAdmin\/ListProvisionedIdentitiesEnterprise.php",
10819-
"hash": "b90351000c7f39f737091d5d80284d4a"
10819+
"hash": "0b8571674a875ea95ef2d0c307e220d9"
1082010820
},
1082110821
{
1082210822
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Operator\/EnterpriseAdmin\/ListProvisionedIdentitiesEnterprise.php",
10823-
"hash": "613713434ca904649774a4361befc2fc"
10823+
"hash": "612cab6a7bf4459cf097650381dd5e75"
1082410824
},
1082510825
{
1082610826
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/tests\/\/Internal\/Operation\/EnterpriseAdmin\/ListProvisionedIdentitiesEnterpriseTest.php",
@@ -13576,7 +13576,7 @@
1357613576
},
1357713577
{
1357813578
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/CodeScanningOrganizationAlertItems.php",
13579-
"hash": "cd2b59f249bc7889c9d9245622b5241e"
13579+
"hash": "e674ba3352541619423099d9a6fa5595"
1358013580
},
1358113581
{
1358213582
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/EnterpriseSecurityAnalysisSettings.php",
@@ -14404,15 +14404,15 @@
1440414404
},
1440514405
{
1440614406
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/CodeScanningAlertItems.php",
14407-
"hash": "ea117ee1658273317edbd008f9fa79fe"
14407+
"hash": "a055e77b208109dad8014223cee5b045"
1440814408
},
1440914409
{
1441014410
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/CodeScanningAlertRule.php",
1441114411
"hash": "baa3e070496db258d8cfbf9cca479e8a"
1441214412
},
1441314413
{
1441414414
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/CodeScanningAlert.php",
14415-
"hash": "1dbea3fe5ef1597bffc0883c6460472c"
14415+
"hash": "6a469a2139757b48de5c1a72323e3b0e"
1441614416
},
1441714417
{
1441814418
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/CodeScanningAlertSetState.php",
@@ -16128,11 +16128,11 @@
1612816128
},
1612916129
{
1613016130
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertClosedByUser.php",
16131-
"hash": "7fd8121f5fec135b015c400b7c590ab4"
16131+
"hash": "c53b9f50e628ac40c9e82da6904f5e7b"
1613216132
},
1613316133
{
1613416134
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertCreated.php",
16135-
"hash": "f652331fa25d70854c24d1dafd219101"
16135+
"hash": "eded890de51aaed6e5e00bba829d5f65"
1613616136
},
1613716137
{
1613816138
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertFixed.php",
@@ -22404,7 +22404,7 @@
2240422404
},
2240522405
{
2240622406
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertClosedByUser\/Alert.php",
22407-
"hash": "61e223de721d161fa7481d7d06825e0e"
22407+
"hash": "dd174930a9e564e98847905a8c5928de"
2240822408
},
2240922409
{
2241022410
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet68F621CA\/Tiet1BC17E38\/TietE93CD08C\/TietADDD8B6D.php",
@@ -22444,7 +22444,7 @@
2244422444
},
2244522445
{
2244622446
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertCreated\/Alert.php",
22447-
"hash": "08de7759babf89a934fa0c83a9e9be32"
22447+
"hash": "936e60c31acbb751c5998300a73e0d30"
2244822448
},
2244922449
{
2245022450
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertCreated\/Alert\/Tool.php",
@@ -26404,7 +26404,7 @@
2640426404
},
2640526405
{
2640626406
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Router\/Get\/EnterpriseAdmin.php",
26407-
"hash": "801992ac075569c0e94b45dcad3b8b4e"
26407+
"hash": "e38ca79cf72a9ce8e17d8fd2b95704ca"
2640826408
},
2640926409
{
2641026410
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Router\/Get\/SecurityAdvisories.php",
@@ -26936,7 +26936,7 @@
2693626936
},
2693726937
{
2693826938
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Six.php",
26939-
"hash": "fb8d914498dc8ddad6eaa4249ed98e34"
26939+
"hash": "50d790ea7d404c399793f46285dec6a4"
2694026940
},
2694126941
{
2694226942
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Two.php",
@@ -27148,11 +27148,11 @@
2714827148
},
2714927149
{
2715027150
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php",
27151-
"hash": "2fb5474325448bccbcb22bb7d1158ea1"
27151+
"hash": "f324c61f921af29dd138e579e680742d"
2715227152
},
2715327153
{
2715427154
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php",
27155-
"hash": "54beea339c8099994a522e19c9c55b8c"
27155+
"hash": "ca7adf5daf67b5004f0909656cca8349"
2715627156
},
2715727157
{
2715827158
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon",
@@ -27168,7 +27168,7 @@
2716827168
},
2716927169
{
2717027170
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Operation\/EnterpriseAdmin.php",
27171-
"hash": "3969d0c96e854589ccfd64812d38dcba"
27171+
"hash": "d0f6cc583f7b5b3c98ebbcc1a07a01b3"
2717227172
},
2717327173
{
2717427174
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Operation\/SecurityAdvisories.php",
@@ -28720,7 +28720,7 @@
2872028720
},
2872128721
{
2872228722
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/CodeScanning\/Alerts\/AlertNumber.php",
28723-
"hash": "ac4cca3714a6f496147c1997ae7234b0"
28723+
"hash": "b9452bc32629313c2650579a65f77f38"
2872428724
},
2872528725
{
2872628726
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/CodeScanning\/Alerts\/AlertNumber\/Instances.php",
@@ -29684,7 +29684,7 @@
2968429684
},
2968529685
{
2968629686
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/CodeScanningAlert.php",
29687-
"hash": "c4af9cb1ff959a410e9570afdd27508e"
29687+
"hash": "c26b2d8da129630380b31d51be373718"
2968829688
},
2968929689
{
2969029690
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/CommitComment.php",
@@ -29932,7 +29932,7 @@
2993229932
},
2993329933
{
2993429934
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Hydrators.php",
29935-
"hash": "151d6e808352d3ce2a34abb1d984740b"
29935+
"hash": "99414eaacd7b74f08980cadd8c36e384"
2993629936
},
2993729937
{
2993829938
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/ApiOverview\/Domains\/ActionsInbound.php",
@@ -29957,6 +29957,10 @@
2995729957
{
2995829958
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/TietEAB1E353\/TietA691FF98\/TietCADB7922\/TietA4382CA1.php",
2995929959
"hash": "c57517b93469a1558cb104c0b535b6c4"
29960+
},
29961+
{
29962+
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertClosedByUser\/Alert\/DismissalApprovedBy.php",
29963+
"hash": "b21a2b229d82f916d8ec095470db0021"
2996029964
}
2996129965
]
2996229966
},

clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CodeScanning/Alerts/AlertNumber.php

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema
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⚡️GitHubEnterprise⚡️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\GitHubEnterprise\Schema\CodeScanningAlert', $exception, stack: $this->hydrationStack);
271291
}
@@ -1269,6 +1289,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡
12691289
$mostRecentInstance = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️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⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($dismissalApprovedBy);
1299+
after_dismissalApprovedBy: $result['dismissal_approved_by'] = $dismissalApprovedBy;
1300+
12721301
return $result;
12731302
}
12741303

0 commit comments

Comments
 (0)