Skip to content

Commit e03a4cd

Browse files
Commit via running ake Sources/repos
1 parent f04b5fa commit e03a4cd

File tree

2 files changed

+55
-6
lines changed

2 files changed

+55
-6
lines changed

Sources/repos/Client.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -786,6 +786,9 @@ public struct Client: APIProtocol {
786786
///
787787
/// Get a repository ruleset for an organization.
788788
///
789+
/// **Note:** To prevent leaking sensitive information, the `bypass_actors` property is only returned if the user
790+
/// making the API request has write access to the ruleset.
791+
///
789792
/// - Remark: HTTP `GET /orgs/{org}/rulesets/{ruleset_id}`.
790793
/// - Remark: Generated from `#/paths//orgs/{org}/rulesets/{ruleset_id}/get(repos/get-org-ruleset)`.
791794
public func repos_sol_get_hyphen_org_hyphen_ruleset(_ input: Operations.repos_sol_get_hyphen_org_hyphen_ruleset.Input) async throws -> Operations.repos_sol_get_hyphen_org_hyphen_ruleset.Output {
@@ -16628,6 +16631,9 @@ public struct Client: APIProtocol {
1662816631
///
1662916632
/// Get a ruleset for a repository.
1663016633
///
16634+
/// **Note:** To prevent leaking sensitive information, the `bypass_actors` property is only returned if the user
16635+
/// making the API request has write access to the ruleset.
16636+
///
1663116637
/// - Remark: HTTP `GET /repos/{owner}/{repo}/rulesets/{ruleset_id}`.
1663216638
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/rulesets/{ruleset_id}/get(repos/get-repo-ruleset)`.
1663316639
public func repos_sol_get_hyphen_repo_hyphen_ruleset(_ input: Operations.repos_sol_get_hyphen_repo_hyphen_ruleset.Input) async throws -> Operations.repos_sol_get_hyphen_repo_hyphen_ruleset.Output {

Sources/repos/Types.swift

Lines changed: 49 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ public protocol APIProtocol: Sendable {
6464
///
6565
/// Get a repository ruleset for an organization.
6666
///
67+
/// **Note:** To prevent leaking sensitive information, the `bypass_actors` property is only returned if the user
68+
/// making the API request has write access to the ruleset.
69+
///
6770
/// - Remark: HTTP `GET /orgs/{org}/rulesets/{ruleset_id}`.
6871
/// - Remark: Generated from `#/paths//orgs/{org}/rulesets/{ruleset_id}/get(repos/get-org-ruleset)`.
6972
func repos_sol_get_hyphen_org_hyphen_ruleset(_ input: Operations.repos_sol_get_hyphen_org_hyphen_ruleset.Input) async throws -> Operations.repos_sol_get_hyphen_org_hyphen_ruleset.Output
@@ -1773,6 +1776,9 @@ public protocol APIProtocol: Sendable {
17731776
///
17741777
/// Get a ruleset for a repository.
17751778
///
1779+
/// **Note:** To prevent leaking sensitive information, the `bypass_actors` property is only returned if the user
1780+
/// making the API request has write access to the ruleset.
1781+
///
17761782
/// - Remark: HTTP `GET /repos/{owner}/{repo}/rulesets/{ruleset_id}`.
17771783
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/rulesets/{ruleset_id}/get(repos/get-repo-ruleset)`.
17781784
func repos_sol_get_hyphen_repo_hyphen_ruleset(_ input: Operations.repos_sol_get_hyphen_repo_hyphen_ruleset.Input) async throws -> Operations.repos_sol_get_hyphen_repo_hyphen_ruleset.Output
@@ -2188,6 +2194,9 @@ extension APIProtocol {
21882194
///
21892195
/// Get a repository ruleset for an organization.
21902196
///
2197+
/// **Note:** To prevent leaking sensitive information, the `bypass_actors` property is only returned if the user
2198+
/// making the API request has write access to the ruleset.
2199+
///
21912200
/// - Remark: HTTP `GET /orgs/{org}/rulesets/{ruleset_id}`.
21922201
/// - Remark: Generated from `#/paths//orgs/{org}/rulesets/{ruleset_id}/get(repos/get-org-ruleset)`.
21932202
public func repos_sol_get_hyphen_org_hyphen_ruleset(
@@ -5265,6 +5274,9 @@ extension APIProtocol {
52655274
///
52665275
/// Get a ruleset for a repository.
52675276
///
5277+
/// **Note:** To prevent leaking sensitive information, the `bypass_actors` property is only returned if the user
5278+
/// making the API request has write access to the ruleset.
5279+
///
52685280
/// - Remark: HTTP `GET /repos/{owner}/{repo}/rulesets/{ruleset_id}`.
52695281
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/rulesets/{ruleset_id}/get(repos/get-repo-ruleset)`.
52705282
public func repos_sol_get_hyphen_repo_hyphen_ruleset(
@@ -10964,6 +10976,7 @@ public enum Components {
1096410976
case RepositoryRole = "RepositoryRole"
1096510977
case Team = "Team"
1096610978
case DeployKey = "DeployKey"
10979+
case EnterpriseTeam = "EnterpriseTeam"
1096710980
}
1096810981
/// The type of actor that can bypass a ruleset.
1096910982
///
@@ -22944,6 +22957,8 @@ public enum Operations {
2294422957
/// - Remark: Generated from `#/paths/orgs/{org}/repos/POST/requestBody/json/use_squash_pr_title_as_default`.
2294522958
@available(*, deprecated)
2294622959
public var use_squash_pr_title_as_default: Swift.Bool?
22960+
/// Required when using `squash_merge_commit_message`.
22961+
///
2294722962
/// The default value for a squash merge commit title:
2294822963
///
2294922964
/// - `PR_TITLE` - default to the pull request's title.
@@ -22954,6 +22969,8 @@ public enum Operations {
2295422969
case PR_TITLE = "PR_TITLE"
2295522970
case COMMIT_OR_PR_TITLE = "COMMIT_OR_PR_TITLE"
2295622971
}
22972+
/// Required when using `squash_merge_commit_message`.
22973+
///
2295722974
/// The default value for a squash merge commit title:
2295822975
///
2295922976
/// - `PR_TITLE` - default to the pull request's title.
@@ -22981,6 +22998,8 @@ public enum Operations {
2298122998
///
2298222999
/// - Remark: Generated from `#/paths/orgs/{org}/repos/POST/requestBody/json/squash_merge_commit_message`.
2298323000
public var squash_merge_commit_message: Operations.repos_sol_create_hyphen_in_hyphen_org.Input.Body.jsonPayload.squash_merge_commit_messagePayload?
23001+
/// Required when using `merge_commit_message`.
23002+
///
2298423003
/// The default value for a merge commit title.
2298523004
///
2298623005
/// - `PR_TITLE` - default to the pull request's title.
@@ -22991,6 +23010,8 @@ public enum Operations {
2299123010
case PR_TITLE = "PR_TITLE"
2299223011
case MERGE_MESSAGE = "MERGE_MESSAGE"
2299323012
}
23013+
/// Required when using `merge_commit_message`.
23014+
///
2299423015
/// The default value for a merge commit title.
2299523016
///
2299623017
/// - `PR_TITLE` - default to the pull request's title.
@@ -23065,9 +23086,9 @@ public enum Operations {
2306523086
/// - allow_auto_merge: Either `true` to allow auto-merge on pull requests, or `false` to disallow auto-merge.
2306623087
/// - delete_branch_on_merge: Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion. **The authenticated user must be an organization owner to set this property to `true`.**
2306723088
/// - use_squash_pr_title_as_default: Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property has been deprecated. Please use `squash_merge_commit_title` instead.
23068-
/// - squash_merge_commit_title: The default value for a squash merge commit title:
23089+
/// - squash_merge_commit_title: Required when using `squash_merge_commit_message`.
2306923090
/// - squash_merge_commit_message: The default value for a squash merge commit message:
23070-
/// - merge_commit_title: The default value for a merge commit title.
23091+
/// - merge_commit_title: Required when using `merge_commit_message`.
2307123092
/// - merge_commit_message: The default value for a merge commit message.
2307223093
/// - custom_properties: The custom properties for the new repository. The keys are the custom property names, and the values are the corresponding custom property values.
2307323094
public init(
@@ -24233,6 +24254,9 @@ public enum Operations {
2423324254
///
2423424255
/// Get a repository ruleset for an organization.
2423524256
///
24257+
/// **Note:** To prevent leaking sensitive information, the `bypass_actors` property is only returned if the user
24258+
/// making the API request has write access to the ruleset.
24259+
///
2423624260
/// - Remark: HTTP `GET /orgs/{org}/rulesets/{ruleset_id}`.
2423724261
/// - Remark: Generated from `#/paths//orgs/{org}/rulesets/{ruleset_id}/get(repos/get-org-ruleset)`.
2423824262
public enum repos_sol_get_hyphen_org_hyphen_ruleset {
@@ -25322,6 +25346,8 @@ public enum Operations {
2532225346
/// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/requestBody/json/use_squash_pr_title_as_default`.
2532325347
@available(*, deprecated)
2532425348
public var use_squash_pr_title_as_default: Swift.Bool?
25349+
/// Required when using `squash_merge_commit_message`.
25350+
///
2532525351
/// The default value for a squash merge commit title:
2532625352
///
2532725353
/// - `PR_TITLE` - default to the pull request's title.
@@ -25332,6 +25358,8 @@ public enum Operations {
2533225358
case PR_TITLE = "PR_TITLE"
2533325359
case COMMIT_OR_PR_TITLE = "COMMIT_OR_PR_TITLE"
2533425360
}
25361+
/// Required when using `squash_merge_commit_message`.
25362+
///
2533525363
/// The default value for a squash merge commit title:
2533625364
///
2533725365
/// - `PR_TITLE` - default to the pull request's title.
@@ -25359,6 +25387,8 @@ public enum Operations {
2535925387
///
2536025388
/// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/requestBody/json/squash_merge_commit_message`.
2536125389
public var squash_merge_commit_message: Operations.repos_sol_update.Input.Body.jsonPayload.squash_merge_commit_messagePayload?
25390+
/// Required when using `merge_commit_message`.
25391+
///
2536225392
/// The default value for a merge commit title.
2536325393
///
2536425394
/// - `PR_TITLE` - default to the pull request's title.
@@ -25369,6 +25399,8 @@ public enum Operations {
2536925399
case PR_TITLE = "PR_TITLE"
2537025400
case MERGE_MESSAGE = "MERGE_MESSAGE"
2537125401
}
25402+
/// Required when using `merge_commit_message`.
25403+
///
2537225404
/// The default value for a merge commit title.
2537325405
///
2537425406
/// - `PR_TITLE` - default to the pull request's title.
@@ -25429,9 +25461,9 @@ public enum Operations {
2542925461
/// - delete_branch_on_merge: Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion.
2543025462
/// - allow_update_branch: Either `true` to always allow a pull request head branch that is behind its base branch to be updated even if it is not required to be up to date before merging, or false otherwise.
2543125463
/// - use_squash_pr_title_as_default: Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property has been deprecated. Please use `squash_merge_commit_title` instead.
25432-
/// - squash_merge_commit_title: The default value for a squash merge commit title:
25464+
/// - squash_merge_commit_title: Required when using `squash_merge_commit_message`.
2543325465
/// - squash_merge_commit_message: The default value for a squash merge commit message:
25434-
/// - merge_commit_title: The default value for a merge commit title.
25466+
/// - merge_commit_title: Required when using `merge_commit_message`.
2543525467
/// - merge_commit_message: The default value for a merge commit message.
2543625468
/// - archived: Whether to archive this repository. `false` will unarchive a previously archived repository.
2543725469
/// - allow_forking: Either `true` to allow private forks, or `false` to prevent private forks.
@@ -57572,6 +57604,9 @@ public enum Operations {
5757257604
///
5757357605
/// Get a ruleset for a repository.
5757457606
///
57607+
/// **Note:** To prevent leaking sensitive information, the `bypass_actors` property is only returned if the user
57608+
/// making the API request has write access to the ruleset.
57609+
///
5757557610
/// - Remark: HTTP `GET /repos/{owner}/{repo}/rulesets/{ruleset_id}`.
5757657611
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/rulesets/{ruleset_id}/get(repos/get-repo-ruleset)`.
5757757612
public enum repos_sol_get_hyphen_repo_hyphen_ruleset {
@@ -62958,6 +62993,8 @@ public enum Operations {
6295862993
///
6295962994
/// - Remark: Generated from `#/paths/user/repos/POST/requestBody/json/delete_branch_on_merge`.
6296062995
public var delete_branch_on_merge: Swift.Bool?
62996+
/// Required when using `squash_merge_commit_message`.
62997+
///
6296162998
/// The default value for a squash merge commit title:
6296262999
///
6296363000
/// - `PR_TITLE` - default to the pull request's title.
@@ -62968,6 +63005,8 @@ public enum Operations {
6296863005
case PR_TITLE = "PR_TITLE"
6296963006
case COMMIT_OR_PR_TITLE = "COMMIT_OR_PR_TITLE"
6297063007
}
63008+
/// Required when using `squash_merge_commit_message`.
63009+
///
6297163010
/// The default value for a squash merge commit title:
6297263011
///
6297363012
/// - `PR_TITLE` - default to the pull request's title.
@@ -62995,6 +63034,8 @@ public enum Operations {
6299563034
///
6299663035
/// - Remark: Generated from `#/paths/user/repos/POST/requestBody/json/squash_merge_commit_message`.
6299763036
public var squash_merge_commit_message: Operations.repos_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body.jsonPayload.squash_merge_commit_messagePayload?
63037+
/// Required when using `merge_commit_message`.
63038+
///
6299863039
/// The default value for a merge commit title.
6299963040
///
6300063041
/// - `PR_TITLE` - default to the pull request's title.
@@ -63005,6 +63046,8 @@ public enum Operations {
6300563046
case PR_TITLE = "PR_TITLE"
6300663047
case MERGE_MESSAGE = "MERGE_MESSAGE"
6300763048
}
63049+
/// Required when using `merge_commit_message`.
63050+
///
6300863051
/// The default value for a merge commit title.
6300963052
///
6301063053
/// - `PR_TITLE` - default to the pull request's title.
@@ -63060,9 +63103,9 @@ public enum Operations {
6306063103
/// - allow_rebase_merge: Whether to allow rebase merges for pull requests.
6306163104
/// - allow_auto_merge: Whether to allow Auto-merge to be used on pull requests.
6306263105
/// - delete_branch_on_merge: Whether to delete head branches when pull requests are merged
63063-
/// - squash_merge_commit_title: The default value for a squash merge commit title:
63106+
/// - squash_merge_commit_title: Required when using `squash_merge_commit_message`.
6306463107
/// - squash_merge_commit_message: The default value for a squash merge commit message:
63065-
/// - merge_commit_title: The default value for a merge commit title.
63108+
/// - merge_commit_title: Required when using `merge_commit_message`.
6306663109
/// - merge_commit_message: The default value for a merge commit message.
6306763110
/// - has_downloads: Whether downloads are enabled.
6306863111
/// - is_template: Whether this repository acts as a template that can be used to generate new repositories.

0 commit comments

Comments
 (0)