diff --git a/clients/GitHub/etc/openapi-client-generator.state b/clients/GitHub/etc/openapi-client-generator.state index 6cdc22ff6d3..dc3a0696773 100644 --- a/clients/GitHub/etc/openapi-client-generator.state +++ b/clients/GitHub/etc/openapi-client-generator.state @@ -1,5 +1,5 @@ { - "specHash": "8a2dc25e1302b824ed48fe860969ca91", + "specHash": "4298b69a1afaf61496dd8894c7a47c3a", "generatedFiles": { "files": [ { @@ -1624,27 +1624,27 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertAppearedInBranch.php", - "hash": "c92c8d67d6b14865378c734c75f1a729" + "hash": "b39ab1976eb97f84e245a500e8e8d71b" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertClosedByUser.php", - "hash": "be478d340d1d85a6848ea290e9735d3b" + "hash": "4b8833d38eb509de39d34cca6f7c7ff5" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertCreated.php", - "hash": "55aeeccf1e283236c2831b6839d98e06" + "hash": "5824635ffd8c3f59e09c0aa1bbd2470d" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertFixed.php", - "hash": "9eca6f909f5a20469869eac54251cb0a" + "hash": "2a9d365b62913dcd39717b8fb859f983" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertReopened.php", - "hash": "a7b8b44ffac038c3094267374c6318de" + "hash": "ff6a2580e48ee099253564dd611f1ea0" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertReopenedByUser.php", - "hash": "496b15b5efecdc34bd6d949a415ba142" + "hash": "275a272bb4cdddd484a951726d885d79" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCommitCommentCreated.php", @@ -3332,7 +3332,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertAppearedInBranch\/Alert.php", - "hash": "42b5ee892e0d4d73ba64851015755003" + "hash": "c29385de42e5d41701b419c5c04497a9" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertAppearedInBranch\/Alert\/MostRecentInstance.php", @@ -3352,7 +3352,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertClosedByUser\/Alert.php", - "hash": "f064a841194e360c80ac4198b0e51566" + "hash": "38c854f3de72f7810179e918f031ac10" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertClosedByUser\/Alert\/Rule.php", @@ -3364,7 +3364,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertCreated\/Alert.php", - "hash": "10ddf4052d7f2518ed64c8545eb9641a" + "hash": "2c862c36988ab608ebecfe26ee3ed2fc" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertCreated\/Alert\/Tool.php", @@ -3372,15 +3372,15 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertFixed\/Alert.php", - "hash": "b0c35ff95d7a8bacb6792f62592dbe26" + "hash": "919559b9dc18bd044534fbdeb177f368" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertReopened\/Alert.php", - "hash": "0384ebcd2ead9aef96d22506f130871b" + "hash": "7f7dfa66b7cf687e8a437cdf7d486cb7" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertReopenedByUser\/Alert.php", - "hash": "8bbf0385291517da2458deb01a68f70a" + "hash": "ff1309de4bbfc58b748f22bc19a46f1c" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCommitCommentCreated\/Comment.php", @@ -27944,7 +27944,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/CodeScanningAlert.php", - "hash": "809600e12c796fbd6001bd6ea64107fb" + "hash": "7bb41a0c0b98973219dcd554c186333b" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/CommitComment.php", diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/CodeScanningAlert.php b/clients/GitHub/src/Internal/Hydrator/WebHook/CodeScanningAlert.php index dbc3ece46b6..1c85351cb68 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/CodeScanningAlert.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/CodeScanningAlert.php @@ -342,6 +342,17 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh 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⚡️GitHub⚡️Schema⚡️Webh 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⚡️GitHub⚡️Schema⚡️Webh $value = $payload['state'] ?? null; if ($value === null) { - $missingFields[] = 'state'; + $properties['state'] = null; goto after_state; } @@ -4483,6 +4505,17 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh 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⚡️GitHub⚡️Schema⚡️Webh 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⚡️GitHub⚡️Schema⚡️Webh 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⚡️GitHub⚡️Schema⚡️Webh 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⚡️GitHub⚡️Schema⚡️Webh $value = $payload['state'] ?? null; if ($value === null) { - $missingFields[] = 'state'; + $properties['state'] = null; goto after_state; } @@ -7292,6 +7358,17 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh 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⚡️GitHub⚡️Schema⚡️Webh 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⚡️GitHub⚡️Schema⚡️Webh $value = $payload['state'] ?? null; if ($value === null) { - $missingFields[] = 'state'; + $properties['state'] = null; goto after_state; } @@ -8030,6 +8118,17 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh 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⚡️GitHub⚡️Schema⚡️Webh 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⚡️GitHub⚡️Schema⚡️Webh $value = $payload['state'] ?? null; if ($value === null) { - $missingFields[] = 'state'; + $properties['state'] = null; goto after_state; } @@ -8761,6 +8871,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $dismissedBy = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️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⚡️GitHub⚡️Schema 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⚡️GitHub⚡️Schema $rule = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️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⚡️GitHub⚡️Schema $dismissedBy = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️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⚡️GitHub⚡️Schema 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⚡️GitHub⚡️Schema $dismissedBy = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️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⚡️GitHub⚡️Schema 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⚡️GitHub⚡️Schema $rule = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️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⚡️GitHub⚡️Schema $dismissedBy = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️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⚡️GitHub⚡️Schema 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⚡️GitHub⚡️Schema $rule = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️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⚡️GitHub⚡️Schema $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⚡️GitHub⚡️Schema $rule = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️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/GitHub/src/Schema/WebhookCodeScanningAlertAppearedInBranch.php b/clients/GitHub/src/Schema/WebhookCodeScanningAlertAppearedInBranch.php index c677f54773a..1cafc46a73b 100644 --- a/clients/GitHub/src/Schema/WebhookCodeScanningAlertAppearedInBranch.php +++ b/clients/GitHub/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/GitHub/src/Schema/WebhookCodeScanningAlertAppearedInBranch/Alert.php b/clients/GitHub/src/Schema/WebhookCodeScanningAlertAppearedInBranch/Alert.php index 53beb07f542..c5ec8668012 100644 --- a/clients/GitHub/src/Schema/WebhookCodeScanningAlertAppearedInBranch/Alert.php +++ b/clients/GitHub/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/GitHub/src/Schema/WebhookCodeScanningAlertClosedByUser.php b/clients/GitHub/src/Schema/WebhookCodeScanningAlertClosedByUser.php index bead9681ae5..07f6ecb780a 100644 --- a/clients/GitHub/src/Schema/WebhookCodeScanningAlertClosedByUser.php +++ b/clients/GitHub/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/GitHub/src/Schema/WebhookCodeScanningAlertClosedByUser/Alert.php b/clients/GitHub/src/Schema/WebhookCodeScanningAlertClosedByUser/Alert.php index 8bd7957eadd..c0d5bab68b8 100644 --- a/clients/GitHub/src/Schema/WebhookCodeScanningAlertClosedByUser/Alert.php +++ b/clients/GitHub/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/GitHub/src/Schema/WebhookCodeScanningAlertCreated.php b/clients/GitHub/src/Schema/WebhookCodeScanningAlertCreated.php index e6d2adee82f..ed39fc278c4 100644 --- a/clients/GitHub/src/Schema/WebhookCodeScanningAlertCreated.php +++ b/clients/GitHub/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/GitHub/src/Schema/WebhookCodeScanningAlertCreated/Alert.php b/clients/GitHub/src/Schema/WebhookCodeScanningAlertCreated/Alert.php index d7c8a085b15..65984896a8a 100644 --- a/clients/GitHub/src/Schema/WebhookCodeScanningAlertCreated/Alert.php +++ b/clients/GitHub/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/GitHub/src/Schema/WebhookCodeScanningAlertFixed.php b/clients/GitHub/src/Schema/WebhookCodeScanningAlertFixed.php index 3cda5b674a8..904ecd090a8 100644 --- a/clients/GitHub/src/Schema/WebhookCodeScanningAlertFixed.php +++ b/clients/GitHub/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/GitHub/src/Schema/WebhookCodeScanningAlertFixed/Alert.php b/clients/GitHub/src/Schema/WebhookCodeScanningAlertFixed/Alert.php index ad0b2fd8928..98e95c10567 100644 --- a/clients/GitHub/src/Schema/WebhookCodeScanningAlertFixed/Alert.php +++ b/clients/GitHub/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/GitHub/src/Schema/WebhookCodeScanningAlertReopened.php b/clients/GitHub/src/Schema/WebhookCodeScanningAlertReopened.php index 7046205fd9d..6b122d7057c 100644 --- a/clients/GitHub/src/Schema/WebhookCodeScanningAlertReopened.php +++ b/clients/GitHub/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/GitHub/src/Schema/WebhookCodeScanningAlertReopened/Alert.php b/clients/GitHub/src/Schema/WebhookCodeScanningAlertReopened/Alert.php index cd454a50847..adfb7bf989f 100644 --- a/clients/GitHub/src/Schema/WebhookCodeScanningAlertReopened/Alert.php +++ b/clients/GitHub/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/GitHub/src/Schema/WebhookCodeScanningAlertReopenedByUser.php b/clients/GitHub/src/Schema/WebhookCodeScanningAlertReopenedByUser.php index 812c5a8017f..ea69a5e8712 100644 --- a/clients/GitHub/src/Schema/WebhookCodeScanningAlertReopenedByUser.php +++ b/clients/GitHub/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/GitHub/src/Schema/WebhookCodeScanningAlertReopenedByUser/Alert.php b/clients/GitHub/src/Schema/WebhookCodeScanningAlertReopenedByUser/Alert.php index 9e48242238e..81e7fc62db3 100644 --- a/clients/GitHub/src/Schema/WebhookCodeScanningAlertReopenedByUser/Alert.php +++ b/clients/GitHub/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/GitHub/current.spec.yaml b/etc/specs/GitHub/current.spec.yaml index f26e45ea53f..3d3b0c6071d 100644 --- a/etc/specs/GitHub/current.spec.yaml +++ b/etc/specs/GitHub/current.spec.yaml @@ -105866,6 +105866,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: @@ -105876,6 +105878,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 @@ -105970,12 +105977,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: @@ -106119,6 +106131,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: @@ -106129,6 +106143,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 @@ -106337,6 +106356,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: @@ -106455,7 +106476,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' @@ -106618,6 +106641,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: @@ -106628,6 +106653,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 @@ -106745,10 +106775,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: @@ -106832,12 +106867,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 @@ -106952,12 +106994,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: @@ -107047,11 +107094,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 @@ -107146,11 +107200,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: