Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 24 additions & 20 deletions clients/GitHubEnterprise-3.15/etc/openapi-client-generator.state
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"specHash": "6ea130cb5afd29dda26a543a1de89424",
"specHash": "13765a979ded08b549109e71b65bcfcf",
"generatedFiles": {
"files": [
{
Expand Down Expand Up @@ -11052,11 +11052,11 @@
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Operation\/EnterpriseAdmin\/ListProvisionedGroupsEnterprise.php",
"hash": "cd460736f3e3abe46d504126639546d7"
"hash": "d28f69c1e3c09046f6a78b699678cef2"
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Operator\/EnterpriseAdmin\/ListProvisionedGroupsEnterprise.php",
"hash": "75b7740fb512adfb41a711553a784db0"
"hash": "5ebd59b377fa56da84093860b074238a"
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/tests\/\/Internal\/Operation\/EnterpriseAdmin\/ListProvisionedGroupsEnterpriseTest.php",
Expand Down Expand Up @@ -11124,11 +11124,11 @@
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Operation\/EnterpriseAdmin\/ListProvisionedIdentitiesEnterprise.php",
"hash": "b90351000c7f39f737091d5d80284d4a"
"hash": "0b8571674a875ea95ef2d0c307e220d9"
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Operator\/EnterpriseAdmin\/ListProvisionedIdentitiesEnterprise.php",
"hash": "613713434ca904649774a4361befc2fc"
"hash": "612cab6a7bf4459cf097650381dd5e75"
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/tests\/\/Internal\/Operation\/EnterpriseAdmin\/ListProvisionedIdentitiesEnterpriseTest.php",
Expand Down Expand Up @@ -13768,7 +13768,7 @@
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/CodeScanningOrganizationAlertItems.php",
"hash": "cd2b59f249bc7889c9d9245622b5241e"
"hash": "e674ba3352541619423099d9a6fa5595"
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/EnterpriseSecurityAnalysisSettings.php",
Expand Down Expand Up @@ -14644,15 +14644,15 @@
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/CodeScanningAlertItems.php",
"hash": "ea117ee1658273317edbd008f9fa79fe"
"hash": "a055e77b208109dad8014223cee5b045"
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/CodeScanningAlertRule.php",
"hash": "baa3e070496db258d8cfbf9cca479e8a"
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/CodeScanningAlert.php",
"hash": "1dbea3fe5ef1597bffc0883c6460472c"
"hash": "6a469a2139757b48de5c1a72323e3b0e"
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/CodeScanningAlertSetState.php",
Expand Down Expand Up @@ -16424,11 +16424,11 @@
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertClosedByUser.php",
"hash": "fd3721f20340c1b7955ef779845fdce8"
"hash": "65b7c4199e8a7f9e37c2e8c0feec4f9b"
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertCreated.php",
"hash": "774a324e0f8d0f7aca502a4f74b16c1a"
"hash": "ba584e1d5015d19ba8dff6ed77cc2b26"
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertFixed.php",
Expand Down Expand Up @@ -22640,7 +22640,7 @@
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertClosedByUser\/Alert.php",
"hash": "61e223de721d161fa7481d7d06825e0e"
"hash": "dd174930a9e564e98847905a8c5928de"
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet68F621CA\/Tiet1BC17E38\/TietE93CD08C\/TietADDD8B6D.php",
Expand Down Expand Up @@ -22680,7 +22680,7 @@
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertCreated\/Alert.php",
"hash": "08de7759babf89a934fa0c83a9e9be32"
"hash": "936e60c31acbb751c5998300a73e0d30"
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertCreated\/Alert\/Tool.php",
Expand Down Expand Up @@ -26660,7 +26660,7 @@
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Router\/Get\/EnterpriseAdmin.php",
"hash": "9bd0fbc257fd34fe9c6661d7966a18cc"
"hash": "3e9e34b8ec3f67e8458d4a00c2630835"
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Router\/Get\/SecurityAdvisories.php",
Expand Down Expand Up @@ -27212,7 +27212,7 @@
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Six.php",
"hash": "03a78049cc14a10e8b8ad6bf8778c4ab"
"hash": "dcbf2b1bb7fb9cc9416745e8c13fcc14"
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Two.php",
Expand Down Expand Up @@ -27424,11 +27424,11 @@
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php",
"hash": "057a0e66c0fac8be025f4333a6d16a9b"
"hash": "72c7f105d61896c8c4afa1b6a78f418b"
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php",
"hash": "0afba759e55aef88b3e3a19ce1993b10"
"hash": "31e0c425fc6d0e0eb3032545e05117c0"
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon",
Expand All @@ -27444,7 +27444,7 @@
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/EnterpriseAdmin.php",
"hash": "c41e1e5ed253f0c166d3e55aeb3f84e0"
"hash": "28fab98c49c28961e606d06041d34534"
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/SecurityAdvisories.php",
Expand Down Expand Up @@ -29044,7 +29044,7 @@
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/CodeScanning\/Alerts\/AlertNumber.php",
"hash": "ac4cca3714a6f496147c1997ae7234b0"
"hash": "b9452bc32629313c2650579a65f77f38"
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/CodeScanning\/Alerts\/AlertNumber\/Instances.php",
Expand Down Expand Up @@ -30008,7 +30008,7 @@
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/CodeScanningAlert.php",
"hash": "c4af9cb1ff959a410e9570afdd27508e"
"hash": "c26b2d8da129630380b31d51be373718"
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/CommitComment.php",
Expand Down Expand Up @@ -30256,7 +30256,7 @@
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Hydrators.php",
"hash": "0fca55461f16de6f843e1abfddbf427c"
"hash": "bfa947e43129bb77e6b2597ed7c846b5"
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/ApiOverview\/Domains\/ActionsInbound.php",
Expand All @@ -30281,6 +30281,10 @@
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/TietEAB1E353\/TietA691FF98\/TietCADB7922\/TietA4382CA1.php",
"hash": "c57517b93469a1558cb104c0b535b6c4"
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertClosedByUser\/Alert\/DismissalApprovedBy.php",
"hash": "b21a2b229d82f916d8ec095470db0021"
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema
$properties['mostRecentInstance'] = $value;

after_mostRecentInstance:

$value = $payload['dismissal_approved_by'] ?? null;

if ($value === null) {
$properties['dismissalApprovedBy'] = null;
goto after_dismissalApprovedBy;
}

if (is_array($value)) {
try {
$this->hydrationStack[] = 'dismissalApprovedBy';
$value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($value);
} finally {
array_pop($this->hydrationStack);
}
}

$properties['dismissalApprovedBy'] = $value;

after_dismissalApprovedBy:
} catch (Throwable $exception) {
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\CodeScanningAlert', $exception, stack: $this->hydrationStack);
}
Expand Down Expand Up @@ -1269,6 +1289,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡
$mostRecentInstance = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️CodeScanningAlertInstance($mostRecentInstance);
after_mostRecentInstance: $result['most_recent_instance'] = $mostRecentInstance;

$dismissalApprovedBy = $object->dismissalApprovedBy;

if ($dismissalApprovedBy === null) {
goto after_dismissalApprovedBy;
}

$dismissalApprovedBy = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($dismissalApprovedBy);
after_dismissalApprovedBy: $result['dismissal_approved_by'] = $dismissalApprovedBy;

return $result;
}

Expand Down
Loading
Loading