diff --git a/clients/GitHubEnterprise-3.13/etc/openapi-client-generator.state b/clients/GitHubEnterprise-3.13/etc/openapi-client-generator.state index 4e509b099cf..7e903fc002b 100644 --- a/clients/GitHubEnterprise-3.13/etc/openapi-client-generator.state +++ b/clients/GitHubEnterprise-3.13/etc/openapi-client-generator.state @@ -1,5 +1,5 @@ { - "specHash": "df8d2275089e5998c1eae139bcf661ce", + "specHash": "497f4757745d55b121a2ab0c966f454f", "generatedFiles": { "files": [ { @@ -16136,27 +16136,27 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertAppearedInBranch.php", - "hash": "39a9284034ca22089b51382d14693a74" + "hash": "148ff9731266744692fffb6161f21306" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertClosedByUser.php", - "hash": "f00b5652917a141caabe126c43cdb519" + "hash": "7fd8121f5fec135b015c400b7c590ab4" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertCreated.php", - "hash": "48344758c990c0ced65532857fb1c0b8" + "hash": "f652331fa25d70854c24d1dafd219101" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertFixed.php", - "hash": "39b4604148279f580fe650a1c478e215" + "hash": "05b209788510c44fff3be64b9076629c" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertReopened.php", - "hash": "7c7aa0420fc17dbc167ea49d04b72ba2" + "hash": "a09845e014eb915be0f6af805e6bff1b" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertReopenedByUser.php", - "hash": "0a17901f9a51da4313eeb31e48f1fac1" + "hash": "edf274373cbe1466ce73dda0454a3ada" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookCommitCommentCreated.php", @@ -22336,7 +22336,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertAppearedInBranch\/Alert.php", - "hash": "08b25cee0c6b847f840f7716b40466dd" + "hash": "be4c14dfe2a723427529fa3178fb42e1" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet243E32E7\/Tiet425E3FF1\/TietF384E47B\/Tiet16830F80.php", @@ -22420,7 +22420,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertClosedByUser\/Alert.php", - "hash": "b867b6f5b86e32b4526580c624b6c608" + "hash": "61e223de721d161fa7481d7d06825e0e" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet68F621CA\/Tiet1BC17E38\/TietE93CD08C\/TietADDD8B6D.php", @@ -22460,7 +22460,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertCreated\/Alert.php", - "hash": "3b0c34da27664c60ca620765de4c81e9" + "hash": "08de7759babf89a934fa0c83a9e9be32" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertCreated\/Alert\/Tool.php", @@ -22468,11 +22468,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertFixed\/Alert.php", - "hash": "10201d0de51a46fb8a1180d257b0ac77" + "hash": "cbd0de48aea1019ae3ea02eadda4484e" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertReopened\/Alert.php", - "hash": "4a64742d1313ec0cc435bbe40698bdc9" + "hash": "1ec3c1f8297b60e3a7d43d4c16070b71" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/TietDB3B0EA7\/Tiet7D168182\/Tiet903938E3\/Tiet5938F560.php", @@ -22536,7 +22536,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertReopenedByUser\/Alert.php", - "hash": "f2628243c486b73e1a492a544c5f531b" + "hash": "e2fc111d927247e25ac510d69a1a0d51" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookCommitCommentCreated\/Comment.php", @@ -29716,7 +29716,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/CodeScanningAlert.php", - "hash": "46d8f59126e759f60aa5f1bd5d363a02" + "hash": "c4af9cb1ff959a410e9570afdd27508e" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/CommitComment.php", diff --git a/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/WebHook/CodeScanningAlert.php b/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/WebHook/CodeScanningAlert.php index 4a675247e85..4a75b918fa9 100644 --- a/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/WebHook/CodeScanningAlert.php +++ b/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/WebHook/CodeScanningAlert.php @@ -342,6 +342,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema after_dismissedBy: + $value = $payload['dismissed_comment'] ?? null; + + if ($value === null) { + $properties['dismissedComment'] = null; + goto after_dismissedComment; + } + + $properties['dismissedComment'] = $value; + + after_dismissedComment: + $value = $payload['dismissed_reason'] ?? null; if ($value === null) { @@ -353,6 +364,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema after_dismissedReason: + $value = $payload['fixed_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'fixed_at'; + goto after_fixedAt; + } + + $properties['fixedAt'] = $value; + + after_fixedAt: + $value = $payload['html_url'] ?? null; if ($value === null) { @@ -418,7 +440,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema $value = $payload['state'] ?? null; if ($value === null) { - $missingFields[] = 'state'; + $properties['state'] = null; goto after_state; } @@ -4483,6 +4505,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema after_dismissedBy: + $value = $payload['dismissed_comment'] ?? null; + + if ($value === null) { + $properties['dismissedComment'] = null; + goto after_dismissedComment; + } + + $properties['dismissedComment'] = $value; + + after_dismissedComment: + $value = $payload['dismissed_reason'] ?? null; if ($value === null) { @@ -4494,6 +4527,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema after_dismissedReason: + $value = $payload['fixed_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'fixed_at'; + goto after_fixedAt; + } + + $properties['fixedAt'] = $value; + + after_fixedAt: + $value = $payload['html_url'] ?? null; if ($value === null) { @@ -6273,6 +6317,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema after_dismissedBy: + $value = $payload['dismissed_comment'] ?? null; + + if ($value === null) { + $properties['dismissedComment'] = null; + goto after_dismissedComment; + } + + $properties['dismissedComment'] = $value; + + after_dismissedComment: + $value = $payload['dismissed_reason'] ?? null; if ($value === null) { @@ -6284,6 +6339,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema after_dismissedReason: + $value = $payload['fixed_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'fixed_at'; + goto after_fixedAt; + } + + $properties['fixedAt'] = $value; + + after_fixedAt: + $value = $payload['html_url'] ?? null; if ($value === null) { @@ -6360,7 +6426,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema $value = $payload['state'] ?? null; if ($value === null) { - $missingFields[] = 'state'; + $properties['state'] = null; goto after_state; } @@ -7292,6 +7358,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema after_dismissedBy: + $value = $payload['dismissed_comment'] ?? null; + + if ($value === null) { + $properties['dismissedComment'] = null; + goto after_dismissedComment; + } + + $properties['dismissedComment'] = $value; + + after_dismissedComment: + $value = $payload['dismissed_reason'] ?? null; if ($value === null) { @@ -7303,6 +7380,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema after_dismissedReason: + $value = $payload['fixed_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'fixed_at'; + goto after_fixedAt; + } + + $properties['fixedAt'] = $value; + + after_fixedAt: + $value = $payload['html_url'] ?? null; if ($value === null) { @@ -7368,7 +7456,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema $value = $payload['state'] ?? null; if ($value === null) { - $missingFields[] = 'state'; + $properties['state'] = null; goto after_state; } @@ -8030,6 +8118,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema after_dismissedBy: + $value = $payload['dismissed_comment'] ?? null; + + if ($value === null) { + $properties['dismissedComment'] = null; + goto after_dismissedComment; + } + + $properties['dismissedComment'] = $value; + + after_dismissedComment: + $value = $payload['dismissed_reason'] ?? null; if ($value === null) { @@ -8041,6 +8140,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema after_dismissedReason: + $value = $payload['fixed_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'fixed_at'; + goto after_fixedAt; + } + + $properties['fixedAt'] = $value; + + after_fixedAt: + $value = $payload['html_url'] ?? null; if ($value === null) { @@ -8106,7 +8216,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema $value = $payload['state'] ?? null; if ($value === null) { - $missingFields[] = 'state'; + $properties['state'] = null; goto after_state; } @@ -8761,6 +8871,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ $dismissedBy = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookCodeScanningAlertAppearedInBranch⚡️Alert⚡️DismissedBy($dismissedBy); after_dismissedBy: $result['dismissed_by'] = $dismissedBy; + $dismissedComment = $object->dismissedComment; + + if ($dismissedComment === null) { + goto after_dismissedComment; + } + + after_dismissedComment: $result['dismissed_comment'] = $dismissedComment; + $dismissedReason = $object->dismissedReason; if ($dismissedReason === null) { @@ -8769,6 +8887,9 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ after_dismissedReason: $result['dismissed_reason'] = $dismissedReason; + $fixedAt = $object->fixedAt; + after_fixedAt: $result['fixed_at'] = $fixedAt; + $htmlUrl = $object->htmlUrl; after_htmlUrl: $result['html_url'] = $htmlUrl; @@ -8788,7 +8909,12 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ $rule = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookCodeScanningAlertAppearedInBranch⚡️Alert⚡️Rule($rule); after_rule: $result['rule'] = $rule; - $state = $object->state; + $state = $object->state; + + if ($state === null) { + goto after_state; + } + after_state: $result['state'] = $state; $tool = $object->tool; @@ -10928,6 +11054,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ $dismissedBy = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookCodeScanningAlertClosedByUser⚡️Alert⚡️DismissedBy($dismissedBy); after_dismissedBy: $result['dismissed_by'] = $dismissedBy; + $dismissedComment = $object->dismissedComment; + + if ($dismissedComment === null) { + goto after_dismissedComment; + } + + after_dismissedComment: $result['dismissed_comment'] = $dismissedComment; + $dismissedReason = $object->dismissedReason; if ($dismissedReason === null) { @@ -10936,6 +11070,9 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ after_dismissedReason: $result['dismissed_reason'] = $dismissedReason; + $fixedAt = $object->fixedAt; + after_fixedAt: $result['fixed_at'] = $fixedAt; + $htmlUrl = $object->htmlUrl; after_htmlUrl: $result['html_url'] = $htmlUrl; @@ -11828,6 +11965,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ $dismissedBy = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookCodeScanningAlertFixed⚡️Alert⚡️DismissedBy($dismissedBy); after_dismissedBy: $result['dismissed_by'] = $dismissedBy; + $dismissedComment = $object->dismissedComment; + + if ($dismissedComment === null) { + goto after_dismissedComment; + } + + after_dismissedComment: $result['dismissed_comment'] = $dismissedComment; + $dismissedReason = $object->dismissedReason; if ($dismissedReason === null) { @@ -11836,6 +11981,9 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ after_dismissedReason: $result['dismissed_reason'] = $dismissedReason; + $fixedAt = $object->fixedAt; + after_fixedAt: $result['fixed_at'] = $fixedAt; + $htmlUrl = $object->htmlUrl; after_htmlUrl: $result['html_url'] = $htmlUrl; @@ -11863,7 +12011,12 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ $rule = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookCodeScanningAlertFixed⚡️Alert⚡️Rule($rule); after_rule: $result['rule'] = $rule; - $state = $object->state; + $state = $object->state; + + if ($state === null) { + goto after_state; + } + after_state: $result['state'] = $state; $tool = $object->tool; @@ -12375,6 +12528,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ $dismissedBy = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookCodeScanningAlertReopened⚡️Alert⚡️DismissedBy($dismissedBy); after_dismissedBy: $result['dismissed_by'] = $dismissedBy; + $dismissedComment = $object->dismissedComment; + + if ($dismissedComment === null) { + goto after_dismissedComment; + } + + after_dismissedComment: $result['dismissed_comment'] = $dismissedComment; + $dismissedReason = $object->dismissedReason; if ($dismissedReason === null) { @@ -12383,6 +12544,9 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ after_dismissedReason: $result['dismissed_reason'] = $dismissedReason; + $fixedAt = $object->fixedAt; + after_fixedAt: $result['fixed_at'] = $fixedAt; + $htmlUrl = $object->htmlUrl; after_htmlUrl: $result['html_url'] = $htmlUrl; @@ -12402,7 +12566,12 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ $rule = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookCodeScanningAlertReopened⚡️Alert⚡️Rule($rule); after_rule: $result['rule'] = $rule; - $state = $object->state; + $state = $object->state; + + if ($state === null) { + goto after_state; + } + after_state: $result['state'] = $state; $tool = $object->tool; @@ -12714,9 +12883,20 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ $dismissedBy = $object->dismissedBy; after_dismissedBy: $result['dismissed_by'] = $dismissedBy; + $dismissedComment = $object->dismissedComment; + + if ($dismissedComment === null) { + goto after_dismissedComment; + } + + after_dismissedComment: $result['dismissed_comment'] = $dismissedComment; + $dismissedReason = $object->dismissedReason; after_dismissedReason: $result['dismissed_reason'] = $dismissedReason; + $fixedAt = $object->fixedAt; + after_fixedAt: $result['fixed_at'] = $fixedAt; + $htmlUrl = $object->htmlUrl; after_htmlUrl: $result['html_url'] = $htmlUrl; @@ -12736,7 +12916,12 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ $rule = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookCodeScanningAlertReopenedByUser⚡️Alert⚡️Rule($rule); after_rule: $result['rule'] = $rule; - $state = $object->state; + $state = $object->state; + + if ($state === null) { + goto after_state; + } + after_state: $result['state'] = $state; $tool = $object->tool; diff --git a/clients/GitHubEnterprise-3.13/src/Schema/WebhookCodeScanningAlertAppearedInBranch.php b/clients/GitHubEnterprise-3.13/src/Schema/WebhookCodeScanningAlertAppearedInBranch.php index 3d2b42acd87..14ce7647fb0 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/WebhookCodeScanningAlertAppearedInBranch.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/WebhookCodeScanningAlertAppearedInBranch.php @@ -154,6 +154,14 @@ } } }, + "dismissed_comment": { + "maxLength": 280, + "type": [ + "string", + "null" + ], + "description": "The dismissal comment associated with the dismissal of the alert." + }, "dismissed_reason": { "enum": [ "false positive", @@ -167,6 +175,12 @@ ], "description": "The reason for dismissing or closing the alert." }, + "fixed_at": { + "type": [ + "null" + ], + "description": "The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + }, "html_url": { "type": "string", "description": "The GitHub URL of the alert resource.", @@ -289,10 +303,14 @@ "enum": [ "open", "dismissed", - "fixed" + "fixed", + null ], - "type": "string", - "description": "State of a code scanning alert." + "type": [ + "string", + "null" + ], + "description": "State of a code scanning alert. Events for alerts found outside the default branch will return a `null` value until they are dismissed or fixed." }, "tool": { "required": [ @@ -2233,7 +2251,9 @@ "url": "https:\\/\\/example.com\\/", "user_view_type": "generated" }, + "dismissed_comment": "generated", "dismissed_reason": "used in tests", + "fixed_at": "generated", "html_url": "https:\\/\\/example.com\\/", "most_recent_instance": { "analysis_key": "generated", diff --git a/clients/GitHubEnterprise-3.13/src/Schema/WebhookCodeScanningAlertAppearedInBranch/Alert.php b/clients/GitHubEnterprise-3.13/src/Schema/WebhookCodeScanningAlertAppearedInBranch/Alert.php index ef3603f6e12..29731ed3b3e 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/WebhookCodeScanningAlertAppearedInBranch/Alert.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/WebhookCodeScanningAlertAppearedInBranch/Alert.php @@ -136,6 +136,14 @@ } } }, + "dismissed_comment": { + "maxLength": 280, + "type": [ + "string", + "null" + ], + "description": "The dismissal comment associated with the dismissal of the alert." + }, "dismissed_reason": { "enum": [ "false positive", @@ -149,6 +157,12 @@ ], "description": "The reason for dismissing or closing the alert." }, + "fixed_at": { + "type": [ + "null" + ], + "description": "The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + }, "html_url": { "type": "string", "description": "The GitHub URL of the alert resource.", @@ -271,10 +285,14 @@ "enum": [ "open", "dismissed", - "fixed" + "fixed", + null ], - "type": "string", - "description": "State of a code scanning alert." + "type": [ + "string", + "null" + ], + "description": "State of a code scanning alert. Events for alerts found outside the default branch will return a `null` value until they are dismissed or fixed." }, "tool": { "required": [ @@ -332,7 +350,9 @@ "url": "https:\\/\\/example.com\\/", "user_view_type": "generated" }, + "dismissed_comment": "generated", "dismissed_reason": "used in tests", + "fixed_at": "generated", "html_url": "https:\\/\\/example.com\\/", "most_recent_instance": { "analysis_key": "generated", @@ -373,18 +393,22 @@ /** * createdAt: The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.` * dismissedAt: The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. + * dismissedComment: The dismissal comment associated with the dismissal of the alert. * dismissedReason: The reason for dismissing or closing the alert. + * fixedAt: The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. * htmlUrl: The GitHub URL of the alert resource. * number: The code scanning alert number. - * state: State of a code scanning alert. + * state: State of a code scanning alert. Events for alerts found outside the default branch will return a `null` value until they are dismissed or fixed. */ public function __construct(#[MapFrom('created_at')] public string $createdAt, #[MapFrom('dismissed_at')] public string|null $dismissedAt, #[MapFrom('dismissed_by')] - public Schema\WebhookCodeScanningAlertAppearedInBranch\Alert\DismissedBy|null $dismissedBy, #[MapFrom('dismissed_reason')] - public string|null $dismissedReason, #[MapFrom('html_url')] + public Schema\WebhookCodeScanningAlertAppearedInBranch\Alert\DismissedBy|null $dismissedBy, #[MapFrom('dismissed_comment')] + public string|null $dismissedComment, #[MapFrom('dismissed_reason')] + public string|null $dismissedReason, #[MapFrom('fixed_at')] + public string $fixedAt, #[MapFrom('html_url')] public string $htmlUrl, #[MapFrom('most_recent_instance')] - public Schema\WebhookCodeScanningAlertAppearedInBranch\Alert\MostRecentInstance|null $mostRecentInstance, public int $number, public Schema\WebhookCodeScanningAlertAppearedInBranch\Alert\Rule $rule, public string $state, public Schema\WebhookCodeScanningAlertAppearedInBranch\Alert\Tool $tool, public string $url,) + public Schema\WebhookCodeScanningAlertAppearedInBranch\Alert\MostRecentInstance|null $mostRecentInstance, public int $number, public Schema\WebhookCodeScanningAlertAppearedInBranch\Alert\Rule $rule, public string|null $state, public Schema\WebhookCodeScanningAlertAppearedInBranch\Alert\Tool $tool, public string $url,) { } } diff --git a/clients/GitHubEnterprise-3.13/src/Schema/WebhookCodeScanningAlertClosedByUser.php b/clients/GitHubEnterprise-3.13/src/Schema/WebhookCodeScanningAlertClosedByUser.php index bfc375e8113..eee13ca6f10 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/WebhookCodeScanningAlertClosedByUser.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/WebhookCodeScanningAlertClosedByUser.php @@ -151,6 +151,14 @@ } } }, + "dismissed_comment": { + "maxLength": 280, + "type": [ + "string", + "null" + ], + "description": "The dismissal comment associated with the dismissal of the alert." + }, "dismissed_reason": { "enum": [ "false positive", @@ -164,6 +172,12 @@ ], "description": "The reason for dismissing or closing the alert." }, + "fixed_at": { + "type": [ + "null" + ], + "description": "The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + }, "html_url": { "type": "string", "description": "The GitHub URL of the alert resource.", @@ -2263,7 +2277,9 @@ "url": "https:\\/\\/example.com\\/", "user_view_type": "generated" }, + "dismissed_comment": "generated", "dismissed_reason": "used in tests", + "fixed_at": "generated", "html_url": "https:\\/\\/example.com\\/", "most_recent_instance": { "analysis_key": "generated", diff --git a/clients/GitHubEnterprise-3.13/src/Schema/WebhookCodeScanningAlertClosedByUser/Alert.php b/clients/GitHubEnterprise-3.13/src/Schema/WebhookCodeScanningAlertClosedByUser/Alert.php index 84ed5c57356..07b44bb34f4 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/WebhookCodeScanningAlertClosedByUser/Alert.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/WebhookCodeScanningAlertClosedByUser/Alert.php @@ -133,6 +133,14 @@ } } }, + "dismissed_comment": { + "maxLength": 280, + "type": [ + "string", + "null" + ], + "description": "The dismissal comment associated with the dismissal of the alert." + }, "dismissed_reason": { "enum": [ "false positive", @@ -146,6 +154,12 @@ ], "description": "The reason for dismissing or closing the alert." }, + "fixed_at": { + "type": [ + "null" + ], + "description": "The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + }, "html_url": { "type": "string", "description": "The GitHub URL of the alert resource.", @@ -362,7 +376,9 @@ "url": "https:\\/\\/example.com\\/", "user_view_type": "generated" }, + "dismissed_comment": "generated", "dismissed_reason": "used in tests", + "fixed_at": "generated", "html_url": "https:\\/\\/example.com\\/", "most_recent_instance": { "analysis_key": "generated", @@ -409,7 +425,9 @@ /** * createdAt: The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.` * dismissedAt: The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. + * dismissedComment: The dismissal comment associated with the dismissal of the alert. * dismissedReason: The reason for dismissing or closing the alert. + * fixedAt: The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. * htmlUrl: The GitHub URL of the alert resource. * number: The code scanning alert number. * state: State of a code scanning alert. @@ -417,8 +435,10 @@ public function __construct(#[MapFrom('created_at')] public string $createdAt, #[MapFrom('dismissed_at')] public string $dismissedAt, #[MapFrom('dismissed_by')] - public Schema\WebhookCodeScanningAlertClosedByUser\Alert\DismissedBy|null $dismissedBy, #[MapFrom('dismissed_reason')] - public string|null $dismissedReason, #[MapFrom('html_url')] + public Schema\WebhookCodeScanningAlertClosedByUser\Alert\DismissedBy|null $dismissedBy, #[MapFrom('dismissed_comment')] + public string|null $dismissedComment, #[MapFrom('dismissed_reason')] + public string|null $dismissedReason, #[MapFrom('fixed_at')] + public string $fixedAt, #[MapFrom('html_url')] public string $htmlUrl, #[MapFrom('most_recent_instance')] public Schema\WebhookCodeScanningAlertClosedByUser\Alert\MostRecentInstance|null $mostRecentInstance, public int $number, public Schema\WebhookCodeScanningAlertClosedByUser\Alert\Rule $rule, public string $state, public Schema\WebhookCodeScanningAlertClosedByUser\Alert\Tool $tool, public string $url,) { diff --git a/clients/GitHubEnterprise-3.13/src/Schema/WebhookCodeScanningAlertCreated.php b/clients/GitHubEnterprise-3.13/src/Schema/WebhookCodeScanningAlertCreated.php index 05c665054a9..fed3140bb8f 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/WebhookCodeScanningAlertCreated.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/WebhookCodeScanningAlertCreated.php @@ -78,7 +78,8 @@ "fixed_at": { "type": [ "null" - ] + ], + "description": "The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." }, "html_url": { "type": "string", @@ -239,7 +240,7 @@ "string", "null" ], - "description": "State of a code scanning alert." + "description": "State of a code scanning alert. Events for alerts found outside the default branch will return a `null` value until they are dismissed or fixed." }, "tool": { "required": [ diff --git a/clients/GitHubEnterprise-3.13/src/Schema/WebhookCodeScanningAlertCreated/Alert.php b/clients/GitHubEnterprise-3.13/src/Schema/WebhookCodeScanningAlertCreated/Alert.php index 08c5334e08f..15491f051a2 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/WebhookCodeScanningAlertCreated/Alert.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/WebhookCodeScanningAlertCreated/Alert.php @@ -60,7 +60,8 @@ "fixed_at": { "type": [ "null" - ] + ], + "description": "The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." }, "html_url": { "type": "string", @@ -221,7 +222,7 @@ "string", "null" ], - "description": "State of a code scanning alert." + "description": "State of a code scanning alert. Events for alerts found outside the default branch will return a `null` value until they are dismissed or fixed." }, "tool": { "required": [ @@ -324,9 +325,10 @@ * dismissedAt: The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. * dismissedComment: The dismissal comment associated with the dismissal of the alert. * dismissedReason: The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`. + * fixedAt: The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. * htmlUrl: The GitHub URL of the alert resource. * number: The code scanning alert number. - * state: State of a code scanning alert. + * state: State of a code scanning alert. Events for alerts found outside the default branch will return a `null` value until they are dismissed or fixed. */ public function __construct(#[MapFrom('created_at')] public string|null $createdAt, #[MapFrom('dismissed_at')] diff --git a/clients/GitHubEnterprise-3.13/src/Schema/WebhookCodeScanningAlertFixed.php b/clients/GitHubEnterprise-3.13/src/Schema/WebhookCodeScanningAlertFixed.php index e71604cff38..84a42590087 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/WebhookCodeScanningAlertFixed.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/WebhookCodeScanningAlertFixed.php @@ -154,6 +154,14 @@ } } }, + "dismissed_comment": { + "maxLength": 280, + "type": [ + "string", + "null" + ], + "description": "The dismissal comment associated with the dismissal of the alert." + }, "dismissed_reason": { "enum": [ "false positive", @@ -167,6 +175,12 @@ ], "description": "The reason for dismissing or closing the alert." }, + "fixed_at": { + "type": [ + "null" + ], + "description": "The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + }, "html_url": { "type": "string", "description": "The GitHub URL of the alert resource.", @@ -319,10 +333,14 @@ }, "state": { "enum": [ - "fixed" + "fixed", + null ], - "type": "string", - "description": "State of a code scanning alert." + "type": [ + "string", + "null" + ], + "description": "State of a code scanning alert. Events for alerts found outside the default branch will return a `null` value until they are dismissed or fixed." }, "tool": { "required": [ @@ -2269,7 +2287,9 @@ "url": "https:\\/\\/example.com\\/", "user_view_type": "generated" }, + "dismissed_comment": "generated", "dismissed_reason": "used in tests", + "fixed_at": "generated", "html_url": "https:\\/\\/example.com\\/", "instances_url": "https:\\/\\/example.com\\/", "most_recent_instance": { diff --git a/clients/GitHubEnterprise-3.13/src/Schema/WebhookCodeScanningAlertFixed/Alert.php b/clients/GitHubEnterprise-3.13/src/Schema/WebhookCodeScanningAlertFixed/Alert.php index fa48e451b24..01a13ac3918 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/WebhookCodeScanningAlertFixed/Alert.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/WebhookCodeScanningAlertFixed/Alert.php @@ -136,6 +136,14 @@ } } }, + "dismissed_comment": { + "maxLength": 280, + "type": [ + "string", + "null" + ], + "description": "The dismissal comment associated with the dismissal of the alert." + }, "dismissed_reason": { "enum": [ "false positive", @@ -149,6 +157,12 @@ ], "description": "The reason for dismissing or closing the alert." }, + "fixed_at": { + "type": [ + "null" + ], + "description": "The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + }, "html_url": { "type": "string", "description": "The GitHub URL of the alert resource.", @@ -301,10 +315,14 @@ }, "state": { "enum": [ - "fixed" + "fixed", + null ], - "type": "string", - "description": "State of a code scanning alert." + "type": [ + "string", + "null" + ], + "description": "State of a code scanning alert. Events for alerts found outside the default branch will return a `null` value until they are dismissed or fixed." }, "tool": { "required": [ @@ -368,7 +386,9 @@ "url": "https:\\/\\/example.com\\/", "user_view_type": "generated" }, + "dismissed_comment": "generated", "dismissed_reason": "used in tests", + "fixed_at": "generated", "html_url": "https:\\/\\/example.com\\/", "instances_url": "https:\\/\\/example.com\\/", "most_recent_instance": { @@ -416,19 +436,23 @@ /** * createdAt: The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.` * dismissedAt: The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. + * dismissedComment: The dismissal comment associated with the dismissal of the alert. * dismissedReason: The reason for dismissing or closing the alert. + * fixedAt: The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. * htmlUrl: The GitHub URL of the alert resource. * number: The code scanning alert number. - * state: State of a code scanning alert. + * state: State of a code scanning alert. Events for alerts found outside the default branch will return a `null` value until they are dismissed or fixed. */ public function __construct(#[MapFrom('created_at')] public string $createdAt, #[MapFrom('dismissed_at')] public string|null $dismissedAt, #[MapFrom('dismissed_by')] - public Schema\WebhookCodeScanningAlertFixed\Alert\DismissedBy|null $dismissedBy, #[MapFrom('dismissed_reason')] - public string|null $dismissedReason, #[MapFrom('html_url')] + public Schema\WebhookCodeScanningAlertFixed\Alert\DismissedBy|null $dismissedBy, #[MapFrom('dismissed_comment')] + public string|null $dismissedComment, #[MapFrom('dismissed_reason')] + public string|null $dismissedReason, #[MapFrom('fixed_at')] + public string $fixedAt, #[MapFrom('html_url')] public string $htmlUrl, #[MapFrom('instances_url')] public string|null $instancesUrl, #[MapFrom('most_recent_instance')] - public Schema\WebhookCodeScanningAlertFixed\Alert\MostRecentInstance|null $mostRecentInstance, public int $number, public Schema\WebhookCodeScanningAlertFixed\Alert\Rule $rule, public string $state, public Schema\WebhookCodeScanningAlertFixed\Alert\Tool $tool, public string $url,) + public Schema\WebhookCodeScanningAlertFixed\Alert\MostRecentInstance|null $mostRecentInstance, public int $number, public Schema\WebhookCodeScanningAlertFixed\Alert\Rule $rule, public string|null $state, public Schema\WebhookCodeScanningAlertFixed\Alert\Tool $tool, public string $url,) { } } diff --git a/clients/GitHubEnterprise-3.13/src/Schema/WebhookCodeScanningAlertReopened.php b/clients/GitHubEnterprise-3.13/src/Schema/WebhookCodeScanningAlertReopened.php index c1ba3d060a6..cb475ffca22 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/WebhookCodeScanningAlertReopened.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/WebhookCodeScanningAlertReopened.php @@ -63,6 +63,14 @@ "null" ] }, + "dismissed_comment": { + "maxLength": 280, + "type": [ + "string", + "null" + ], + "description": "The dismissal comment associated with the dismissal of the alert." + }, "dismissed_reason": { "type": [ "string", @@ -70,6 +78,12 @@ ], "description": "The reason for dismissing or closing the alert. Can be one of: `false positive`, `won\'t fix`, and `used in tests`." }, + "fixed_at": { + "type": [ + "null" + ], + "description": "The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + }, "html_url": { "type": "string", "description": "The GitHub URL of the alert resource.", @@ -220,10 +234,14 @@ "enum": [ "open", "dismissed", - "fixed" + "fixed", + null ], - "type": "string", - "description": "State of a code scanning alert." + "type": [ + "string", + "null" + ], + "description": "State of a code scanning alert. Events for alerts found outside the default branch will return a `null` value until they are dismissed or fixed." }, "tool": { "required": [ @@ -2153,7 +2171,9 @@ "created_at": "1970-01-01T00:00:00+00:00", "dismissed_at": "generated", "dismissed_by": [], + "dismissed_comment": "generated", "dismissed_reason": "generated", + "fixed_at": "generated", "html_url": "https:\\/\\/example.com\\/", "most_recent_instance": { "analysis_key": "generated", diff --git a/clients/GitHubEnterprise-3.13/src/Schema/WebhookCodeScanningAlertReopened/Alert.php b/clients/GitHubEnterprise-3.13/src/Schema/WebhookCodeScanningAlertReopened/Alert.php index 0c20ee4813c..71ff8e6c519 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/WebhookCodeScanningAlertReopened/Alert.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/WebhookCodeScanningAlertReopened/Alert.php @@ -45,6 +45,14 @@ "null" ] }, + "dismissed_comment": { + "maxLength": 280, + "type": [ + "string", + "null" + ], + "description": "The dismissal comment associated with the dismissal of the alert." + }, "dismissed_reason": { "type": [ "string", @@ -52,6 +60,12 @@ ], "description": "The reason for dismissing or closing the alert. Can be one of: `false positive`, `won\'t fix`, and `used in tests`." }, + "fixed_at": { + "type": [ + "null" + ], + "description": "The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + }, "html_url": { "type": "string", "description": "The GitHub URL of the alert resource.", @@ -202,10 +216,14 @@ "enum": [ "open", "dismissed", - "fixed" + "fixed", + null ], - "type": "string", - "description": "State of a code scanning alert." + "type": [ + "string", + "null" + ], + "description": "State of a code scanning alert. Events for alerts found outside the default branch will return a `null` value until they are dismissed or fixed." }, "tool": { "required": [ @@ -246,7 +264,9 @@ "created_at": "1970-01-01T00:00:00+00:00", "dismissed_at": "generated", "dismissed_by": [], + "dismissed_comment": "generated", "dismissed_reason": "generated", + "fixed_at": "generated", "html_url": "https:\\/\\/example.com\\/", "most_recent_instance": { "analysis_key": "generated", @@ -293,18 +313,22 @@ /** * createdAt: The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.` * dismissedAt: The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. + * dismissedComment: The dismissal comment associated with the dismissal of the alert. * dismissedReason: The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`. + * fixedAt: The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. * htmlUrl: The GitHub URL of the alert resource. * number: The code scanning alert number. - * state: State of a code scanning alert. + * state: State of a code scanning alert. Events for alerts found outside the default branch will return a `null` value until they are dismissed or fixed. */ public function __construct(#[MapFrom('created_at')] public string $createdAt, #[MapFrom('dismissed_at')] public string|null $dismissedAt, #[MapFrom('dismissed_by')] - public Schema\WebhookCodeScanningAlertReopened\Alert\DismissedBy|null $dismissedBy, #[MapFrom('dismissed_reason')] - public string|null $dismissedReason, #[MapFrom('html_url')] + public Schema\WebhookCodeScanningAlertReopened\Alert\DismissedBy|null $dismissedBy, #[MapFrom('dismissed_comment')] + public string|null $dismissedComment, #[MapFrom('dismissed_reason')] + public string|null $dismissedReason, #[MapFrom('fixed_at')] + public string $fixedAt, #[MapFrom('html_url')] public string $htmlUrl, #[MapFrom('most_recent_instance')] - public Schema\WebhookCodeScanningAlertReopened\Alert\MostRecentInstance|null $mostRecentInstance, public int $number, public Schema\WebhookCodeScanningAlertReopened\Alert\Rule $rule, public string $state, public Schema\WebhookCodeScanningAlertReopened\Alert\Tool $tool, public string $url,) + public Schema\WebhookCodeScanningAlertReopened\Alert\MostRecentInstance|null $mostRecentInstance, public int $number, public Schema\WebhookCodeScanningAlertReopened\Alert\Rule $rule, public string|null $state, public Schema\WebhookCodeScanningAlertReopened\Alert\Tool $tool, public string $url,) { } } diff --git a/clients/GitHubEnterprise-3.13/src/Schema/WebhookCodeScanningAlertReopenedByUser.php b/clients/GitHubEnterprise-3.13/src/Schema/WebhookCodeScanningAlertReopenedByUser.php index ea2bdc548e1..7d6fcab954a 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/WebhookCodeScanningAlertReopenedByUser.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/WebhookCodeScanningAlertReopenedByUser.php @@ -58,12 +58,26 @@ "null" ] }, + "dismissed_comment": { + "maxLength": 280, + "type": [ + "string", + "null" + ], + "description": "The dismissal comment associated with the dismissal of the alert." + }, "dismissed_reason": { "type": [ "null" ], "description": "The reason for dismissing or closing the alert. Can be one of: `false positive`, `won\'t fix`, and `used in tests`." }, + "fixed_at": { + "type": [ + "null" + ], + "description": "The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + }, "html_url": { "type": "string", "description": "The GitHub URL of the alert resource.", @@ -185,10 +199,14 @@ "state": { "enum": [ "open", - "fixed" + "fixed", + null ], - "type": "string", - "description": "State of a code scanning alert." + "type": [ + "string", + "null" + ], + "description": "State of a code scanning alert. Events for alerts found outside the default branch will return a `null` value until they are dismissed or fixed." }, "tool": { "required": [ @@ -2106,7 +2124,9 @@ "created_at": "1970-01-01T00:00:00+00:00", "dismissed_at": "generated", "dismissed_by": "generated", + "dismissed_comment": "generated", "dismissed_reason": "generated", + "fixed_at": "generated", "html_url": "https:\\/\\/example.com\\/", "most_recent_instance": { "analysis_key": "generated", diff --git a/clients/GitHubEnterprise-3.13/src/Schema/WebhookCodeScanningAlertReopenedByUser/Alert.php b/clients/GitHubEnterprise-3.13/src/Schema/WebhookCodeScanningAlertReopenedByUser/Alert.php index 757e7b166b0..24c7182ca24 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/WebhookCodeScanningAlertReopenedByUser/Alert.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/WebhookCodeScanningAlertReopenedByUser/Alert.php @@ -40,12 +40,26 @@ "null" ] }, + "dismissed_comment": { + "maxLength": 280, + "type": [ + "string", + "null" + ], + "description": "The dismissal comment associated with the dismissal of the alert." + }, "dismissed_reason": { "type": [ "null" ], "description": "The reason for dismissing or closing the alert. Can be one of: `false positive`, `won\'t fix`, and `used in tests`." }, + "fixed_at": { + "type": [ + "null" + ], + "description": "The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + }, "html_url": { "type": "string", "description": "The GitHub URL of the alert resource.", @@ -167,10 +181,14 @@ "state": { "enum": [ "open", - "fixed" + "fixed", + null ], - "type": "string", - "description": "State of a code scanning alert." + "type": [ + "string", + "null" + ], + "description": "State of a code scanning alert. Events for alerts found outside the default branch will return a `null` value until they are dismissed or fixed." }, "tool": { "required": [ @@ -205,7 +223,9 @@ "created_at": "1970-01-01T00:00:00+00:00", "dismissed_at": "generated", "dismissed_by": "generated", + "dismissed_comment": "generated", "dismissed_reason": "generated", + "fixed_at": "generated", "html_url": "https:\\/\\/example.com\\/", "most_recent_instance": { "analysis_key": "generated", @@ -246,18 +266,22 @@ /** * createdAt: The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.` * dismissedAt: The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. + * dismissedComment: The dismissal comment associated with the dismissal of the alert. * dismissedReason: The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`. + * fixedAt: The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. * htmlUrl: The GitHub URL of the alert resource. * number: The code scanning alert number. - * state: State of a code scanning alert. + * state: State of a code scanning alert. Events for alerts found outside the default branch will return a `null` value until they are dismissed or fixed. */ public function __construct(#[MapFrom('created_at')] public string $createdAt, #[MapFrom('dismissed_at')] public string $dismissedAt, #[MapFrom('dismissed_by')] - public string $dismissedBy, #[MapFrom('dismissed_reason')] - public string $dismissedReason, #[MapFrom('html_url')] + public string $dismissedBy, #[MapFrom('dismissed_comment')] + public string|null $dismissedComment, #[MapFrom('dismissed_reason')] + public string $dismissedReason, #[MapFrom('fixed_at')] + public string $fixedAt, #[MapFrom('html_url')] public string $htmlUrl, #[MapFrom('most_recent_instance')] - public Schema\WebhookCodeScanningAlertReopenedByUser\Alert\MostRecentInstance|null $mostRecentInstance, public int $number, public Schema\WebhookCodeScanningAlertReopenedByUser\Alert\Rule $rule, public string $state, public Schema\WebhookCodeScanningAlertReopenedByUser\Alert\Tool $tool, public string $url,) + public Schema\WebhookCodeScanningAlertReopenedByUser\Alert\MostRecentInstance|null $mostRecentInstance, public int $number, public Schema\WebhookCodeScanningAlertReopenedByUser\Alert\Rule $rule, public string|null $state, public Schema\WebhookCodeScanningAlertReopenedByUser\Alert\Tool $tool, public string $url,) { } } diff --git a/etc/specs/GitHubEnterprise-3.13/current.spec.yaml b/etc/specs/GitHubEnterprise-3.13/current.spec.yaml index 09e6947df42..474dc729703 100644 --- a/etc/specs/GitHubEnterprise-3.13/current.spec.yaml +++ b/etc/specs/GitHubEnterprise-3.13/current.spec.yaml @@ -101409,6 +101409,8 @@ components: required: - login - id + dismissed_comment: + "$ref": "#/components/schemas/code-scanning-alert-dismissed-comment" dismissed_reason: description: The reason for dismissing or closing the alert. type: @@ -101419,6 +101421,11 @@ components: - won't fix - used in tests - + fixed_at: + description: 'The time that the alert was fixed in ISO 8601 format: + `YYYY-MM-DDTHH:MM:SSZ`.' + type: + - 'null' html_url: description: The GitHub URL of the alert resource. type: string @@ -101513,12 +101520,17 @@ components: - severity - description state: - description: State of a code scanning alert. - type: string + description: State of a code scanning alert. Events for alerts found + outside the default branch will return a `null` value until they are + dismissed or fixed. + type: + - string + - 'null' enum: - open - dismissed - fixed + - tool: type: object properties: @@ -101662,6 +101674,8 @@ components: required: - login - id + dismissed_comment: + "$ref": "#/components/schemas/code-scanning-alert-dismissed-comment" dismissed_reason: description: The reason for dismissing or closing the alert. type: @@ -101672,6 +101686,11 @@ components: - won't fix - used in tests - + fixed_at: + description: 'The time that the alert was fixed in ISO 8601 format: + `YYYY-MM-DDTHH:MM:SSZ`.' + type: + - 'null' html_url: description: The GitHub URL of the alert resource. type: string @@ -101880,6 +101899,8 @@ components: type: - 'null' fixed_at: + description: 'The time that the alert was fixed in ISO 8601 format: + `YYYY-MM-DDTHH:MM:SSZ`.' type: - 'null' html_url: @@ -101998,7 +102019,9 @@ components: - severity - description state: - description: State of a code scanning alert. + description: State of a code scanning alert. Events for alerts found + outside the default branch will return a `null` value until they are + dismissed or fixed. type: - string - 'null' @@ -102161,6 +102184,8 @@ components: required: - login - id + dismissed_comment: + "$ref": "#/components/schemas/code-scanning-alert-dismissed-comment" dismissed_reason: description: The reason for dismissing or closing the alert. type: @@ -102171,6 +102196,11 @@ components: - won't fix - used in tests - + fixed_at: + description: 'The time that the alert was fixed in ISO 8601 format: + `YYYY-MM-DDTHH:MM:SSZ`.' + type: + - 'null' html_url: description: The GitHub URL of the alert resource. type: string @@ -102288,10 +102318,15 @@ components: - severity - description state: - description: State of a code scanning alert. - type: string + description: State of a code scanning alert. Events for alerts found + outside the default branch will return a `null` value until they are + dismissed or fixed. + type: + - string + - 'null' enum: - fixed + - tool: type: object properties: @@ -102375,12 +102410,19 @@ components: type: - object - 'null' + dismissed_comment: + "$ref": "#/components/schemas/code-scanning-alert-dismissed-comment" dismissed_reason: description: 'The reason for dismissing or closing the alert. Can be one of: `false positive`, `won''t fix`, and `used in tests`.' type: - string - 'null' + fixed_at: + description: 'The time that the alert was fixed in ISO 8601 format: + `YYYY-MM-DDTHH:MM:SSZ`.' + type: + - 'null' html_url: description: The GitHub URL of the alert resource. type: string @@ -102495,12 +102537,17 @@ components: - severity - description state: - description: State of a code scanning alert. - type: string + description: State of a code scanning alert. Events for alerts found + outside the default branch will return a `null` value until they are + dismissed or fixed. + type: + - string + - 'null' enum: - open - dismissed - fixed + - tool: type: object properties: @@ -102590,11 +102637,18 @@ components: dismissed_by: type: - 'null' + dismissed_comment: + "$ref": "#/components/schemas/code-scanning-alert-dismissed-comment" dismissed_reason: description: 'The reason for dismissing or closing the alert. Can be one of: `false positive`, `won''t fix`, and `used in tests`.' type: - 'null' + fixed_at: + description: 'The time that the alert was fixed in ISO 8601 format: + `YYYY-MM-DDTHH:MM:SSZ`.' + type: + - 'null' html_url: description: The GitHub URL of the alert resource. type: string @@ -102689,11 +102743,16 @@ components: - severity - description state: - description: State of a code scanning alert. - type: string + description: State of a code scanning alert. Events for alerts found + outside the default branch will return a `null` value until they are + dismissed or fixed. + type: + - string + - 'null' enum: - open - fixed + - tool: type: object properties: