diff --git a/clients/GitHub/README.md b/clients/GitHub/README.md index d2e7ff75793..bd35d588115 100644 --- a/clients/GitHub/README.md +++ b/clients/GitHub/README.md @@ -12781,7 +12781,7 @@ You can find more about this operation over at the [API method documentation](ht ### repos/check-automated-security-fixes -Check if automated security fixes are enabled for a repository +Check if Dependabot security updates are enabled for a repository Using the `call` method: ```php @@ -12798,12 +12798,12 @@ $client->operations()->repos()->checkAutomatedSecurityFixes( owner: 'gene ); ``` -You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/repos/repos#check-if-automated-security-fixes-are-enabled-for-a-repository). +You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/repos/repos#check-if-dependabot-security-updates-are-enabled-for-a-repository). ### repos/enable-automated-security-fixes -Enable automated security fixes +Enable Dependabot security updates Using the `call` method: ```php @@ -12820,12 +12820,12 @@ $client->operations()->repos()->enableAutomatedSecurityFixes( owner: 'gen ); ``` -You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/repos/repos#enable-automated-security-fixes). +You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/repos/repos#enable-dependabot-security-updates). ### repos/disable-automated-security-fixes -Disable automated security fixes +Disable Dependabot security updates Using the `call` method: ```php @@ -12842,7 +12842,7 @@ $client->operations()->repos()->disableAutomatedSecurityFixes( owner: 'ge ); ``` -You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/repos/repos#disable-automated-security-fixes). +You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/repos/repos#disable-dependabot-security-updates). ### repos/list-branches diff --git a/clients/GitHub/etc/openapi-client-generator.state b/clients/GitHub/etc/openapi-client-generator.state index dc3a0696773..9672efe3fac 100644 --- a/clients/GitHub/etc/openapi-client-generator.state +++ b/clients/GitHub/etc/openapi-client-generator.state @@ -1,5 +1,5 @@ { - "specHash": "4298b69a1afaf61496dd8894c7a47c3a", + "specHash": "529209138ca3f128f373739100dbd53c", "generatedFiles": { "files": [ { @@ -11588,11 +11588,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CopilotSeatDetails.php", - "hash": "d6f19f23cdc6fe5278d7c13040ebea56" + "hash": "003304078fbde44a6ab6619c9187cc72" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Operations\/Copilot\/ListCopilotSeats\/Response\/ApplicationJson\/Ok.php", - "hash": "5f65e0b6cd6d2af1cdd4dc734b2c02ba" + "hash": "ac127a9a68dedc61a4cd44f533bd6d49" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Copilot\/CancelCopilotSeatAssignmentForTeams\/Request\/ApplicationJson.php", @@ -11616,7 +11616,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CheckAutomatedSecurityFixes.php", - "hash": "a75ea67ddca661703f2e47dd0ccf26ff" + "hash": "d060eb3636eaa4f0c49544da5eea2b43" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Orgs\/EnableOrDisableSecurityProductOnAllOrgRepos\/Request\/ApplicationJson.php", @@ -24224,7 +24224,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Attribute\/CastUnionToType\/Schema\/CopilotSeatDetails\/AssigningTeam.php", - "hash": "86b25b1c2530248be880cee5d37b0759" + "hash": "8ce38f698adc69174916ccae39bcf6b0" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Attribute\/CastUnionToType\/Schema\/RepositoryRuleset\/Conditions.php", @@ -29392,7 +29392,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/EnterpriseTeam.php", - "hash": "2ff06468420bec0b828b0d1d7b572714" + "hash": "6683f9956704100286df4bdaa14338b6" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/TeamRoleAssignment.php", @@ -31500,7 +31500,7 @@ }, { "name": "..\/..\/composer.lock", - "hash": "9968921f0959a081d8998c22c95e7f44" + "hash": "ba3412e727d85b330527d34ff8accb9e" } ] } diff --git a/clients/GitHub/src/Internal/Attribute/CastUnionToType/Schema/CopilotSeatDetails/AssigningTeam.php b/clients/GitHub/src/Internal/Attribute/CastUnionToType/Schema/CopilotSeatDetails/AssigningTeam.php index 8b183ee387b..3c2f2438cce 100644 --- a/clients/GitHub/src/Internal/Attribute/CastUnionToType/Schema/CopilotSeatDetails/AssigningTeam.php +++ b/clients/GitHub/src/Internal/Attribute/CastUnionToType/Schema/CopilotSeatDetails/AssigningTeam.php @@ -32,7 +32,7 @@ public function cast(mixed $value, ObjectMapper $hydrator): mixed } } - if ($signature === 'created_at|group_id|html_url|id|members_url|name|slug|sync_to_organizations|updated_at|url') { + if ($signature === 'created_at|group_id|group_name|html_url|id|members_url|name|slug|sync_to_organizations|updated_at|url') { try { return $hydrator->hydrateObject(Schema\EnterpriseTeam::class, $value); } catch (Throwable) { diff --git a/clients/GitHub/src/Schema/CheckAutomatedSecurityFixes.php b/clients/GitHub/src/Schema/CheckAutomatedSecurityFixes.php index 1c8e9da811e..13db1e4b0c7 100644 --- a/clients/GitHub/src/Schema/CheckAutomatedSecurityFixes.php +++ b/clients/GitHub/src/Schema/CheckAutomatedSecurityFixes.php @@ -7,7 +7,7 @@ final readonly class CheckAutomatedSecurityFixes { public const SCHEMA_JSON = '{ - "title": "Check Automated Security Fixes", + "title": "Check Dependabot security updates", "required": [ "enabled", "paused" @@ -16,31 +16,31 @@ "properties": { "enabled": { "type": "boolean", - "description": "Whether automated security fixes are enabled for the repository.", + "description": "Whether Dependabot security updates are enabled for the repository.", "examples": [ true ] }, "paused": { "type": "boolean", - "description": "Whether automated security fixes are paused for the repository.", + "description": "Whether Dependabot security updates are paused for the repository.", "examples": [ false ] } }, - "description": "Check Automated Security Fixes" + "description": "Check Dependabot security updates" }'; - public const SCHEMA_TITLE = 'Check Automated Security Fixes'; - public const SCHEMA_DESCRIPTION = 'Check Automated Security Fixes'; + public const SCHEMA_TITLE = 'Check Dependabot security updates'; + public const SCHEMA_DESCRIPTION = 'Check Dependabot security updates'; public const SCHEMA_EXAMPLE_DATA = '{ "enabled": true, "paused": false }'; /** - * enabled: Whether automated security fixes are enabled for the repository. - * paused: Whether automated security fixes are paused for the repository. + * enabled: Whether Dependabot security updates are enabled for the repository. + * paused: Whether Dependabot security updates are paused for the repository. */ public function __construct(public bool $enabled, public bool $paused) { diff --git a/clients/GitHub/src/Schema/CopilotSeatDetails.php b/clients/GitHub/src/Schema/CopilotSeatDetails.php index ff69a98a5eb..b5b4fa2130a 100644 --- a/clients/GitHub/src/Schema/CopilotSeatDetails.php +++ b/clients/GitHub/src/Schema/CopilotSeatDetails.php @@ -552,6 +552,15 @@ "62ab9291-fae2-468e-974b-7e45096d5021" ] }, + "group_name": { + "type": [ + "string", + "null" + ], + "examples": [ + "Justice League" + ] + }, "html_url": { "type": "string", "format": "uri", diff --git a/clients/GitHub/src/Schema/EnterpriseTeam.php b/clients/GitHub/src/Schema/EnterpriseTeam.php index fc40faee91e..390ba0718b3 100644 --- a/clients/GitHub/src/Schema/EnterpriseTeam.php +++ b/clients/GitHub/src/Schema/EnterpriseTeam.php @@ -52,6 +52,15 @@ "62ab9291-fae2-468e-974b-7e45096d5021" ] }, + "group_name": { + "type": [ + "string", + "null" + ], + "examples": [ + "Justice League" + ] + }, "html_url": { "type": "string", "format": "uri", @@ -82,6 +91,7 @@ "url": "https:\\/\\/example.com\\/", "sync_to_organizations": "disabled | all", "group_id": "62ab9291-fae2-468e-974b-7e45096d5021", + "group_name": "Justice League", "html_url": "https:\\/\\/github.com\\/enterprises\\/dc\\/teams\\/justice-league", "members_url": "generated", "created_at": "1970-01-01T00:00:00+00:00", @@ -90,7 +100,8 @@ public function __construct(public int $id, public string $name, public string $slug, public string $url, #[MapFrom('sync_to_organizations')] public string $syncToOrganizations, #[MapFrom('group_id')] - public string|null $groupId, #[MapFrom('html_url')] + public string|null $groupId, #[MapFrom('group_name')] + public string|null $groupName, #[MapFrom('html_url')] public string $htmlUrl, #[MapFrom('members_url')] public string $membersUrl, #[MapFrom('created_at')] public string $createdAt, #[MapFrom('updated_at')] diff --git a/clients/GitHub/src/Schema/Operations/Copilot/ListCopilotSeats/Response/ApplicationJson/Ok.php b/clients/GitHub/src/Schema/Operations/Copilot/ListCopilotSeats/Response/ApplicationJson/Ok.php index 66ed4b25d5a..cadb50647f2 100644 --- a/clients/GitHub/src/Schema/Operations/Copilot/ListCopilotSeats/Response/ApplicationJson/Ok.php +++ b/clients/GitHub/src/Schema/Operations/Copilot/ListCopilotSeats/Response/ApplicationJson/Ok.php @@ -559,6 +559,15 @@ "62ab9291-fae2-468e-974b-7e45096d5021" ] }, + "group_name": { + "type": [ + "string", + "null" + ], + "examples": [ + "Justice League" + ] + }, "html_url": { "type": "string", "format": "uri", diff --git a/etc/specs/GitHub/current.spec.yaml b/etc/specs/GitHub/current.spec.yaml index 3d3b0c6071d..ba113ca31e3 100644 --- a/etc/specs/GitHub/current.spec.yaml +++ b/etc/specs/GitHub/current.spec.yaml @@ -21684,17 +21684,17 @@ paths: subcategory: autolinks "/repos/{owner}/{repo}/automated-security-fixes": get: - summary: Check if automated security fixes are enabled for a repository - description: Shows whether automated security fixes are enabled, disabled or - paused for a repository. The authenticated user must have admin read access - to the repository. For more information, see "[Configuring automated security - fixes](https://docs.github.com/articles/configuring-automated-security-fixes)". + summary: Check if Dependabot security updates are enabled for a repository + description: Shows whether Dependabot security updates are enabled, disabled + or paused for a repository. The authenticated user must have admin read access + to the repository. For more information, see "[Configuring Dependabot security + updates](https://docs.github.com/articles/configuring-automated-security-fixes)". tags: - repos operationId: repos/check-automated-security-fixes externalDocs: description: API method documentation - url: https://docs.github.com/rest/repos/repos#check-if-automated-security-fixes-are-enabled-for-a-repository + url: https://docs.github.com/rest/repos/repos#check-if-dependabot-security-updates-are-enabled-for-a-repository parameters: - "$ref": "#/components/parameters/owner" - "$ref": "#/components/parameters/repo" @@ -21718,16 +21718,16 @@ paths: category: repos subcategory: repos put: - summary: Enable automated security fixes - description: Enables automated security fixes for a repository. The authenticated + summary: Enable Dependabot security updates + description: Enables Dependabot security updates for a repository. The authenticated user must have admin access to the repository. For more information, see "[Configuring - automated security fixes](https://docs.github.com/articles/configuring-automated-security-fixes)". + Dependabot security updates](https://docs.github.com/articles/configuring-automated-security-fixes)". tags: - repos operationId: repos/enable-automated-security-fixes externalDocs: description: API method documentation - url: https://docs.github.com/rest/repos/repos#enable-automated-security-fixes + url: https://docs.github.com/rest/repos/repos#enable-dependabot-security-updates parameters: - "$ref": "#/components/parameters/owner" - "$ref": "#/components/parameters/repo" @@ -21740,16 +21740,16 @@ paths: category: repos subcategory: repos delete: - summary: Disable automated security fixes - description: Disables automated security fixes for a repository. The authenticated + summary: Disable Dependabot security updates + description: Disables Dependabot security updates for a repository. The authenticated user must have admin access to the repository. For more information, see "[Configuring - automated security fixes](https://docs.github.com/articles/configuring-automated-security-fixes)". + Dependabot security updates](https://docs.github.com/articles/configuring-automated-security-fixes)". tags: - repos operationId: repos/disable-automated-security-fixes externalDocs: description: API method documentation - url: https://docs.github.com/rest/repos/repos#disable-automated-security-fixes + url: https://docs.github.com/rest/repos/repos#disable-dependabot-security-updates parameters: - "$ref": "#/components/parameters/owner" - "$ref": "#/components/parameters/repo" @@ -74869,6 +74869,12 @@ components: - 'null' examples: - 62ab9291-fae2-468e-974b-7e45096d5021 + group_name: + type: + - string + - 'null' + examples: + - Justice League html_url: type: string format: uri @@ -81675,18 +81681,18 @@ components: - url_template - is_alphanumeric check-automated-security-fixes: - title: Check Automated Security Fixes - description: Check Automated Security Fixes + title: Check Dependabot security updates + description: Check Dependabot security updates type: object properties: enabled: type: boolean - description: Whether automated security fixes are enabled for the repository. + description: Whether Dependabot security updates are enabled for the repository. examples: - true paused: type: boolean - description: Whether automated security fixes are paused for the repository. + description: Whether Dependabot security updates are paused for the repository. examples: - false required: