diff --git a/clients/GitHubEnterprise-3.15/etc/openapi-client-generator.state b/clients/GitHubEnterprise-3.15/etc/openapi-client-generator.state index 7398c6836a2..8d71b9dad00 100644 --- a/clients/GitHubEnterprise-3.15/etc/openapi-client-generator.state +++ b/clients/GitHubEnterprise-3.15/etc/openapi-client-generator.state @@ -1,5 +1,5 @@ { - "specHash": "b323588c4cb3168432ec55824c9b764c", + "specHash": "6ea130cb5afd29dda26a543a1de89424", "generatedFiles": { "files": [ { @@ -13544,7 +13544,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/Announcement.php", - "hash": "7820e487bef8ae9be3f4be30ae0e3387" + "hash": "dfde9804d8140fe4092466dec23ad5a3" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/LicenseInfo.php", @@ -27444,7 +27444,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/EnterpriseAdmin.php", - "hash": "7283ab444baadbfc831c091e6cd63c0d" + "hash": "c41e1e5ed253f0c166d3e55aeb3f84e0" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/SecurityAdvisories.php", @@ -28032,7 +28032,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Enterprise\/Announcement.php", - "hash": "2031eff3f5c8d7209048e852b5c84031" + "hash": "5e98612b79dbbc66f8c8e936476d0875" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Enterprise\/Settings\/License.php", diff --git a/clients/GitHubEnterprise-3.15/src/Internal/Hydrator/Operation/Enterprise/Announcement.php b/clients/GitHubEnterprise-3.15/src/Internal/Hydrator/Operation/Enterprise/Announcement.php index ef13bd7422b..67e639e1e39 100644 --- a/clients/GitHubEnterprise-3.15/src/Internal/Hydrator/Operation/Enterprise/Announcement.php +++ b/clients/GitHubEnterprise-3.15/src/Internal/Hydrator/Operation/Enterprise/Announcement.php @@ -68,6 +68,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema $properties['expiresAt'] = $value; after_expiresAt: + + $value = $payload['user_dismissible'] ?? null; + + if ($value === null) { + $properties['userDismissible'] = null; + goto after_userDismissible; + } + + $properties['userDismissible'] = $value; + + after_userDismissible: } catch (Throwable $exception) { throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\Announcement', $exception, stack: $this->hydrationStack); } @@ -198,6 +209,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ after_expiresAt: $result['expires_at'] = $expiresAt; + $userDismissible = $object->userDismissible; + + if ($userDismissible === null) { + goto after_userDismissible; + } + + after_userDismissible: $result['user_dismissible'] = $userDismissible; + return $result; } diff --git a/clients/GitHubEnterprise-3.15/src/Schema/Announcement.php b/clients/GitHubEnterprise-3.15/src/Schema/Announcement.php index 3a63b1b60a5..523d76137c4 100644 --- a/clients/GitHubEnterprise-3.15/src/Schema/Announcement.php +++ b/clients/GitHubEnterprise-3.15/src/Schema/Announcement.php @@ -35,6 +35,17 @@ "examples": [ "\\"2021-01-01T00:00:00.000-07:00\\"" ] + }, + "user_dismissible": { + "type": [ + "boolean", + "null" + ], + "description": "Whether an announcement can be dismissed by the user.", + "default": false, + "examples": [ + false + ] } }, "description": "Enterprise global announcement" @@ -43,15 +54,18 @@ public const SCHEMA_DESCRIPTION = 'Enterprise global announcement'; public const SCHEMA_EXAMPLE_DATA = '{ "announcement": "Very **important** announcement about _something_.", - "expires_at": "\\"2021-01-01T00:00:00.000-07:00\\"" + "expires_at": "\\"2021-01-01T00:00:00.000-07:00\\"", + "user_dismissible": false }'; /** * announcement: The announcement text in GitHub Flavored Markdown. For more information about GitHub Flavored Markdown, see "[Basic writing and formatting syntax](https://docs.github.com/enterprise-server@3.15/github/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax)." * expiresAt: The time at which the announcement expires. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. To set an announcement that never expires, omit this parameter, set it to `null`, or set it to an empty string. + * userDismissible: Whether an announcement can be dismissed by the user. */ public function __construct(public string|null $announcement, #[MapFrom('expires_at')] - public string|null $expiresAt,) + public string|null $expiresAt, #[MapFrom('user_dismissible')] + public bool|null $userDismissible,) { } } diff --git a/etc/specs/GitHubEnterprise-3.15/current.spec.yaml b/etc/specs/GitHubEnterprise-3.15/current.spec.yaml index 3b6b3941ba2..c8f4f218c48 100644 --- a/etc/specs/GitHubEnterprise-3.15/current.spec.yaml +++ b/etc/specs/GitHubEnterprise-3.15/current.spec.yaml @@ -34553,7 +34553,7 @@ paths: "$ref": "#/components/responses/validation_failed" x-github: githubCloudOnly: false - enabledForGitHubApps: false + enabledForGitHubApps: true category: reactions subcategory: reactions "/repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}": @@ -69539,6 +69539,14 @@ components: `null`, or set it to an empty string.' examples: - '"2021-01-01T00:00:00.000-07:00"' + announcement-user-dismissible: + type: + - boolean + - 'null' + description: Whether an announcement can be dismissed by the user. + default: false + examples: + - false announcement: title: Enterprise Announcement description: Enterprise global announcement @@ -69548,6 +69556,8 @@ components: "$ref": "#/components/schemas/announcement-message" expires_at: "$ref": "#/components/schemas/announcement-expiration" + user_dismissible: + "$ref": "#/components/schemas/announcement-user-dismissible" required: - announcement license-info: @@ -74662,14 +74672,6 @@ components: - created_at - updated_at - visibility - announcement-user-dismissible: - type: - - boolean - - 'null' - description: Whether an announcement can be dismissed by the user. - default: false - examples: - - false announcement-banner: title: Announcement Banner description: Announcement at either the repository, organization, or enterprise