Skip to content

Commit fcd5e14

Browse files
authored
Merge pull request #1520 from php-api-clients/GitHubEnterprise-3.14/from-1.1.4-4b8ff7792783a0592e25008fb6c20f98-from-1.1.4-4b8ff7792783a0592e25008fb6c20f98
2 parents c456969 + e0e3afd commit fcd5e14

File tree

22 files changed

+1512
-47
lines changed

22 files changed

+1512
-47
lines changed

clients/GitHubEnterprise-3.14/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": "f5ae341048327f8fa2b6a1ba017066cc",
2+
"specHash": "4b8ff7792783a0592e25008fb6c20f98",
33
"generatedFiles": {
44
"files": [
55
{
@@ -10908,11 +10908,11 @@
1090810908
},
1090910909
{
1091010910
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Operation\/EnterpriseAdmin\/ListProvisionedGroupsEnterprise.php",
10911-
"hash": "cd460736f3e3abe46d504126639546d7"
10911+
"hash": "d28f69c1e3c09046f6a78b699678cef2"
1091210912
},
1091310913
{
1091410914
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Operator\/EnterpriseAdmin\/ListProvisionedGroupsEnterprise.php",
10915-
"hash": "75b7740fb512adfb41a711553a784db0"
10915+
"hash": "5ebd59b377fa56da84093860b074238a"
1091610916
},
1091710917
{
1091810918
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/tests\/\/Internal\/Operation\/EnterpriseAdmin\/ListProvisionedGroupsEnterpriseTest.php",
@@ -10980,11 +10980,11 @@
1098010980
},
1098110981
{
1098210982
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Operation\/EnterpriseAdmin\/ListProvisionedIdentitiesEnterprise.php",
10983-
"hash": "b90351000c7f39f737091d5d80284d4a"
10983+
"hash": "0b8571674a875ea95ef2d0c307e220d9"
1098410984
},
1098510985
{
1098610986
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Operator\/EnterpriseAdmin\/ListProvisionedIdentitiesEnterprise.php",
10987-
"hash": "613713434ca904649774a4361befc2fc"
10987+
"hash": "612cab6a7bf4459cf097650381dd5e75"
1098810988
},
1098910989
{
1099010990
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/tests\/\/Internal\/Operation\/EnterpriseAdmin\/ListProvisionedIdentitiesEnterpriseTest.php",
@@ -13740,7 +13740,7 @@
1374013740
},
1374113741
{
1374213742
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/CodeScanningOrganizationAlertItems.php",
13743-
"hash": "cd2b59f249bc7889c9d9245622b5241e"
13743+
"hash": "e674ba3352541619423099d9a6fa5595"
1374413744
},
1374513745
{
1374613746
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/EnterpriseSecurityAnalysisSettings.php",
@@ -14600,15 +14600,15 @@
1460014600
},
1460114601
{
1460214602
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/CodeScanningAlertItems.php",
14603-
"hash": "ea117ee1658273317edbd008f9fa79fe"
14603+
"hash": "a055e77b208109dad8014223cee5b045"
1460414604
},
1460514605
{
1460614606
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/CodeScanningAlertRule.php",
1460714607
"hash": "baa3e070496db258d8cfbf9cca479e8a"
1460814608
},
1460914609
{
1461014610
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/CodeScanningAlert.php",
14611-
"hash": "1dbea3fe5ef1597bffc0883c6460472c"
14611+
"hash": "6a469a2139757b48de5c1a72323e3b0e"
1461214612
},
1461314613
{
1461414614
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/CodeScanningAlertSetState.php",
@@ -16384,11 +16384,11 @@
1638416384
},
1638516385
{
1638616386
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertClosedByUser.php",
16387-
"hash": "89ac7bc49185e7846b1c3324205cda52"
16387+
"hash": "8b6ab5b37d607ed49ec20a54873653a9"
1638816388
},
1638916389
{
1639016390
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertCreated.php",
16391-
"hash": "0e6abc050b6ceec1b3de49ef4cbe0ffd"
16391+
"hash": "bcbfbcc6408d51e83da441bdee3883f7"
1639216392
},
1639316393
{
1639416394
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertFixed.php",
@@ -22684,7 +22684,7 @@
2268422684
},
2268522685
{
2268622686
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertClosedByUser\/Alert.php",
22687-
"hash": "61e223de721d161fa7481d7d06825e0e"
22687+
"hash": "dd174930a9e564e98847905a8c5928de"
2268822688
},
2268922689
{
2269022690
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet68F621CA\/Tiet1BC17E38\/TietE93CD08C\/TietADDD8B6D.php",
@@ -22724,7 +22724,7 @@
2272422724
},
2272522725
{
2272622726
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertCreated\/Alert.php",
22727-
"hash": "08de7759babf89a934fa0c83a9e9be32"
22727+
"hash": "936e60c31acbb751c5998300a73e0d30"
2272822728
},
2272922729
{
2273022730
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertCreated\/Alert\/Tool.php",
@@ -26700,7 +26700,7 @@
2670026700
},
2670126701
{
2670226702
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Router\/Get\/EnterpriseAdmin.php",
26703-
"hash": "801992ac075569c0e94b45dcad3b8b4e"
26703+
"hash": "e38ca79cf72a9ce8e17d8fd2b95704ca"
2670426704
},
2670526705
{
2670626706
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Router\/Get\/SecurityAdvisories.php",
@@ -27232,7 +27232,7 @@
2723227232
},
2723327233
{
2723427234
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Six.php",
27235-
"hash": "e2d6b10c43a46b1771acf2174be392b6"
27235+
"hash": "4cc115df9671221e51f3c220e9c964b0"
2723627236
},
2723727237
{
2723827238
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Two.php",
@@ -27444,11 +27444,11 @@
2744427444
},
2744527445
{
2744627446
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php",
27447-
"hash": "eb9acf050e7c53fe1a316472b8cdc81d"
27447+
"hash": "7e27b5fb6dce8a6f956b8c3a7c91c3e8"
2744827448
},
2744927449
{
2745027450
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php",
27451-
"hash": "e5864aba0dd4de9cada7ede4eeee69c5"
27451+
"hash": "99db7a0395e1f49c6a640c8387bfae64"
2745227452
},
2745327453
{
2745427454
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon",
@@ -27464,7 +27464,7 @@
2746427464
},
2746527465
{
2746627466
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Operation\/EnterpriseAdmin.php",
27467-
"hash": "3969d0c96e854589ccfd64812d38dcba"
27467+
"hash": "d0f6cc583f7b5b3c98ebbcc1a07a01b3"
2746827468
},
2746927469
{
2747027470
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Operation\/SecurityAdvisories.php",
@@ -29032,7 +29032,7 @@
2903229032
},
2903329033
{
2903429034
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/CodeScanning\/Alerts\/AlertNumber.php",
29035-
"hash": "ac4cca3714a6f496147c1997ae7234b0"
29035+
"hash": "b9452bc32629313c2650579a65f77f38"
2903629036
},
2903729037
{
2903829038
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/CodeScanning\/Alerts\/AlertNumber\/Instances.php",
@@ -30000,7 +30000,7 @@
3000030000
},
3000130001
{
3000230002
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/CodeScanningAlert.php",
30003-
"hash": "c4af9cb1ff959a410e9570afdd27508e"
30003+
"hash": "c26b2d8da129630380b31d51be373718"
3000430004
},
3000530005
{
3000630006
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/CommitComment.php",
@@ -30248,7 +30248,7 @@
3024830248
},
3024930249
{
3025030250
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Hydrators.php",
30251-
"hash": "63b54b366f1a7d3da7f55fdc8d4b4e81"
30251+
"hash": "33ceca1f3ae6f0c1fe210856d4009c8c"
3025230252
},
3025330253
{
3025430254
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/ApiOverview\/Domains\/ActionsInbound.php",
@@ -30273,6 +30273,10 @@
3027330273
{
3027430274
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/TietEAB1E353\/TietA691FF98\/TietCADB7922\/TietA4382CA1.php",
3027530275
"hash": "c57517b93469a1558cb104c0b535b6c4"
30276+
},
30277+
{
30278+
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertClosedByUser\/Alert\/DismissalApprovedBy.php",
30279+
"hash": "b21a2b229d82f916d8ec095470db0021"
3027630280
}
3027730281
]
3027830282
},

clients/GitHubEnterprise-3.14/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)