Skip to content

Commit 97c9170

Browse files
Commit via running ake Sources/orgs
1 parent a61db75 commit 97c9170

File tree

2 files changed

+94
-117
lines changed

2 files changed

+94
-117
lines changed

Sources/orgs/Client.swift

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -134,17 +134,6 @@ public struct Client: APIProtocol {
134134
///
135135
/// To see the full details about an organization, the authenticated user must be an organization owner.
136136
///
137-
/// The values returned by this endpoint are set by the "Update an organization" endpoint. If your organization set a default security configuration (beta), the following values retrieved from the "Update an organization" endpoint have been overwritten by that configuration:
138-
///
139-
/// - advanced_security_enabled_for_new_repositories
140-
/// - dependabot_alerts_enabled_for_new_repositories
141-
/// - dependabot_security_updates_enabled_for_new_repositories
142-
/// - dependency_graph_enabled_for_new_repositories
143-
/// - secret_scanning_enabled_for_new_repositories
144-
/// - secret_scanning_push_protection_enabled_for_new_repositories
145-
///
146-
/// For more information on security configurations, see "[Enabling security features at scale](https://docs.github.com/code-security/securing-your-organization/introduction-to-securing-your-organization-at-scale/about-enabling-security-features-at-scale)."
147-
///
148137
/// OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to see the full details about an organization.
149138
///
150139
/// To see information about an organization's GitHub plan, GitHub Apps need the `Organization plan` permission.
@@ -235,18 +224,9 @@ public struct Client: APIProtocol {
235224
///
236225
/// **Parameter Deprecation Notice:** GitHub will replace and discontinue `members_allowed_repository_creation_type` in favor of more granular permissions. The new input parameters are `members_can_create_public_repositories`, `members_can_create_private_repositories` for all organizations and `members_can_create_internal_repositories` for organizations associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+. For more information, see the [blog post](https://developer.github.com/changes/2019-12-03-internal-visibility-changes).
237226
///
238-
/// Updates the organization's profile and member privileges.
227+
/// **Parameter Deprecation Notice:** Code security product enablement for new repositories through the organization API is deprecated. Please use [code security configurations](https://docs.github.com/rest/code-security/configurations#set-a-code-security-configuration-as-a-default-for-an-organization) to set defaults instead. For more information on setting a default security configuration, see the [changelog](https://github.blog/changelog/2024-07-09-sunsetting-security-settings-defaults-parameters-in-the-organizations-rest-api/).
239228
///
240-
/// With security configurations (beta), your organization can choose a default security configuration which will automatically apply a set of security enablement settings to new repositories in your organization based on their visibility. For targeted repositories, the following attributes will be overridden by the default security configuration:
241-
///
242-
/// - advanced_security_enabled_for_new_repositories
243-
/// - dependabot_alerts_enabled_for_new_repositories
244-
/// - dependabot_security_updates_enabled_for_new_repositories
245-
/// - dependency_graph_enabled_for_new_repositories
246-
/// - secret_scanning_enabled_for_new_repositories
247-
/// - secret_scanning_push_protection_enabled_for_new_repositories
248-
///
249-
/// For more information on setting a default security configuration, see "[Enabling security features at scale](https://docs.github.com/code-security/securing-your-organization/introduction-to-securing-your-organization-at-scale/about-enabling-security-features-at-scale)."
229+
/// Updates the organization's profile and member privileges.
250230
///
251231
/// The authenticated user must be an organization owner to use this endpoint.
252232
///

0 commit comments

Comments
 (0)