diff --git a/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state b/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state index 3e385815d5d..f811749639f 100644 --- a/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state +++ b/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state @@ -1,5 +1,5 @@ { - "specHash": "9e7ab390ae84353f100b5db1dbcb3339", + "specHash": "79449ce7df3e3a8b4c97032f07cbaae3", "generatedFiles": { "files": [ { @@ -1740,27 +1740,27 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertAppearedInBranch.php", - "hash": "310d039740c8c11ce02a2dd97abf3728" + "hash": "f602659613c03a0f09ef04b594f2c52f" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertClosedByUser.php", - "hash": "cb61ea5a783e4e884c20b28b6ea27187" + "hash": "7b05e732b104e76f0b27c69615d8db8a" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertCreated.php", - "hash": "c55c7f38a87ebee5660d269d817bbb24" + "hash": "af37dab598509c3cdf02b3a704fc1eca" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertFixed.php", - "hash": "fc0bd9449d778eb891235bfb2209140b" + "hash": "396cf1f9223b7b75ac03c31f5fcd912b" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertReopened.php", - "hash": "548fe341fac76b8410ce1126e6a1e759" + "hash": "0705294574415fab2dc6d4373f8d53d9" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertReopenedByUser.php", - "hash": "3a8429d73269ef55c34c346b80924e5a" + "hash": "cc1b50911951c24f1ec4003bdb23dba6" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookCommitCommentCreated.php", @@ -3568,7 +3568,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertAppearedInBranch\/Alert.php", - "hash": "6c37c410a4357f02253e68559b1bc054" + "hash": "65c31d68b4d5300ca4bae344402a87cd" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertAppearedInBranch\/Alert\/MostRecentInstance.php", @@ -3588,7 +3588,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertClosedByUser\/Alert.php", - "hash": "d2f83984a5aeeb2bc9d7e60076b85133" + "hash": "3a5f56776d37230d5cf3f0e7f6322c72" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertClosedByUser\/Alert\/Rule.php", @@ -3600,7 +3600,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertCreated\/Alert.php", - "hash": "3576c9619c4af8b9fcf65b09b67a3a62" + "hash": "52d77e9f14382940f44feec13274cfc5" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertCreated\/Alert\/Tool.php", @@ -3608,15 +3608,15 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertFixed\/Alert.php", - "hash": "8d946e62b3b62f2d5ec7e10a7375b6bc" + "hash": "371e5ddd86c3c8de2852adbb61c26db0" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertReopened\/Alert.php", - "hash": "98934dc2cba40ef07a98abbff7b6dc1c" + "hash": "a9fd129f37494ed134a10bf022308c29" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertReopenedByUser\/Alert.php", - "hash": "7d4f486c182484d0cb6ca9e6ddc2fc42" + "hash": "5dc04255770762a3f704643eefb3f08a" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookCommitCommentCreated\/Comment.php", @@ -30028,7 +30028,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/CodeScanningAlert.php", - "hash": "df362d4ab3e14516d979aa673434dea3" + "hash": "39488483d791cd0fad5806b0d4ddc491" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/CommitComment.php", diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/CodeScanningAlert.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/CodeScanningAlert.php index 9d99e4fdc4b..a2e5989f238 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/CodeScanningAlert.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/CodeScanningAlert.php @@ -342,6 +342,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S 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⚡️GitHubEnterpriseCloud⚡️S 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⚡️GitHubEnterpriseCloud⚡️S $value = $payload['state'] ?? null; if ($value === null) { - $missingFields[] = 'state'; + $properties['state'] = null; goto after_state; } @@ -4483,6 +4505,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S 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⚡️GitHubEnterpriseCloud⚡️S 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⚡️GitHubEnterpriseCloud⚡️S 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⚡️GitHubEnterpriseCloud⚡️S 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⚡️GitHubEnterpriseCloud⚡️S $value = $payload['state'] ?? null; if ($value === null) { - $missingFields[] = 'state'; + $properties['state'] = null; goto after_state; } @@ -7292,6 +7358,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S 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⚡️GitHubEnterpriseCloud⚡️S 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⚡️GitHubEnterpriseCloud⚡️S $value = $payload['state'] ?? null; if ($value === null) { - $missingFields[] = 'state'; + $properties['state'] = null; goto after_state; } @@ -8030,6 +8118,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S 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⚡️GitHubEnterpriseCloud⚡️S 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⚡️GitHubEnterpriseCloud⚡️S $value = $payload['state'] ?? null; if ($value === null) { - $missingFields[] = 'state'; + $properties['state'] = null; goto after_state; } @@ -8761,6 +8871,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou $dismissedBy = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️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⚡️GitHubEnterpriseClou 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⚡️GitHubEnterpriseClou $rule = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️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⚡️GitHubEnterpriseClou $dismissedBy = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️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⚡️GitHubEnterpriseClou 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⚡️GitHubEnterpriseClou $dismissedBy = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️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⚡️GitHubEnterpriseClou 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⚡️GitHubEnterpriseClou $rule = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️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⚡️GitHubEnterpriseClou $dismissedBy = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️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⚡️GitHubEnterpriseClou 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⚡️GitHubEnterpriseClou $rule = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️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⚡️GitHubEnterpriseClou $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⚡️GitHubEnterpriseClou $rule = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️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/GitHubEnterpriseCloud/src/Schema/WebhookCodeScanningAlertAppearedInBranch.php b/clients/GitHubEnterpriseCloud/src/Schema/WebhookCodeScanningAlertAppearedInBranch.php index 424849d6c2f..7bd9ae0a35f 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/WebhookCodeScanningAlertAppearedInBranch.php +++ b/clients/GitHubEnterpriseCloud/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/GitHubEnterpriseCloud/src/Schema/WebhookCodeScanningAlertAppearedInBranch/Alert.php b/clients/GitHubEnterpriseCloud/src/Schema/WebhookCodeScanningAlertAppearedInBranch/Alert.php index 67f8001308d..ad1ff9d4636 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/WebhookCodeScanningAlertAppearedInBranch/Alert.php +++ b/clients/GitHubEnterpriseCloud/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/GitHubEnterpriseCloud/src/Schema/WebhookCodeScanningAlertClosedByUser.php b/clients/GitHubEnterpriseCloud/src/Schema/WebhookCodeScanningAlertClosedByUser.php index 5cd1d2dd7c9..6a4a8361227 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/WebhookCodeScanningAlertClosedByUser.php +++ b/clients/GitHubEnterpriseCloud/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/GitHubEnterpriseCloud/src/Schema/WebhookCodeScanningAlertClosedByUser/Alert.php b/clients/GitHubEnterpriseCloud/src/Schema/WebhookCodeScanningAlertClosedByUser/Alert.php index b04d6930737..aa4321b0066 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/WebhookCodeScanningAlertClosedByUser/Alert.php +++ b/clients/GitHubEnterpriseCloud/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/GitHubEnterpriseCloud/src/Schema/WebhookCodeScanningAlertCreated.php b/clients/GitHubEnterpriseCloud/src/Schema/WebhookCodeScanningAlertCreated.php index 4344ccd98e8..3d6a454553b 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/WebhookCodeScanningAlertCreated.php +++ b/clients/GitHubEnterpriseCloud/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/GitHubEnterpriseCloud/src/Schema/WebhookCodeScanningAlertCreated/Alert.php b/clients/GitHubEnterpriseCloud/src/Schema/WebhookCodeScanningAlertCreated/Alert.php index 376baa55efe..3fe91cc5748 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/WebhookCodeScanningAlertCreated/Alert.php +++ b/clients/GitHubEnterpriseCloud/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/GitHubEnterpriseCloud/src/Schema/WebhookCodeScanningAlertFixed.php b/clients/GitHubEnterpriseCloud/src/Schema/WebhookCodeScanningAlertFixed.php index b8d7bf2e1e4..deab3a7628b 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/WebhookCodeScanningAlertFixed.php +++ b/clients/GitHubEnterpriseCloud/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/GitHubEnterpriseCloud/src/Schema/WebhookCodeScanningAlertFixed/Alert.php b/clients/GitHubEnterpriseCloud/src/Schema/WebhookCodeScanningAlertFixed/Alert.php index 155ad2cc002..40f452dc37a 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/WebhookCodeScanningAlertFixed/Alert.php +++ b/clients/GitHubEnterpriseCloud/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/GitHubEnterpriseCloud/src/Schema/WebhookCodeScanningAlertReopened.php b/clients/GitHubEnterpriseCloud/src/Schema/WebhookCodeScanningAlertReopened.php index 5393486e052..551fc7a71b5 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/WebhookCodeScanningAlertReopened.php +++ b/clients/GitHubEnterpriseCloud/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/GitHubEnterpriseCloud/src/Schema/WebhookCodeScanningAlertReopened/Alert.php b/clients/GitHubEnterpriseCloud/src/Schema/WebhookCodeScanningAlertReopened/Alert.php index 5592a2940dc..9e92ce988bf 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/WebhookCodeScanningAlertReopened/Alert.php +++ b/clients/GitHubEnterpriseCloud/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/GitHubEnterpriseCloud/src/Schema/WebhookCodeScanningAlertReopenedByUser.php b/clients/GitHubEnterpriseCloud/src/Schema/WebhookCodeScanningAlertReopenedByUser.php index 44f86e7feca..356a4d57da4 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/WebhookCodeScanningAlertReopenedByUser.php +++ b/clients/GitHubEnterpriseCloud/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/GitHubEnterpriseCloud/src/Schema/WebhookCodeScanningAlertReopenedByUser/Alert.php b/clients/GitHubEnterpriseCloud/src/Schema/WebhookCodeScanningAlertReopenedByUser/Alert.php index 0bbefc86b97..22b809dae21 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/WebhookCodeScanningAlertReopenedByUser/Alert.php +++ b/clients/GitHubEnterpriseCloud/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/GitHubEnterpriseCloud/current.spec.yaml b/etc/specs/GitHubEnterpriseCloud/current.spec.yaml index 621b44ebd9e..0de4216e6d6 100644 --- a/etc/specs/GitHubEnterpriseCloud/current.spec.yaml +++ b/etc/specs/GitHubEnterpriseCloud/current.spec.yaml @@ -115420,6 +115420,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: @@ -115430,6 +115432,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 @@ -115524,12 +115531,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: @@ -115673,6 +115685,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: @@ -115683,6 +115697,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 @@ -115891,6 +115910,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: @@ -116009,7 +116030,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' @@ -116172,6 +116195,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: @@ -116182,6 +116207,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 @@ -116299,10 +116329,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: @@ -116386,12 +116421,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 @@ -116506,12 +116548,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: @@ -116601,11 +116648,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 @@ -116700,11 +116754,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: