Skip to content

Commit 9680a13

Browse files
Merge pull request #81 from Wei18/dependabot/submodules/Submodule/github/rest-api-description-5b32856
Bump Submodule/github/rest-api-description from `6b266a1` to `5b32856`
2 parents ff9d7ed + 6e44aa9 commit 9680a13

File tree

4 files changed

+44
-9
lines changed

4 files changed

+44
-9
lines changed

Sources/orgs/Types.swift

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5249,8 +5249,6 @@ public enum Components {
52495249
public var private_gists: Swift.Int?
52505250
/// - Remark: Generated from `#/components/schemas/organization-full/disk_usage`.
52515251
public var disk_usage: Swift.Int?
5252-
/// - Remark: Generated from `#/components/schemas/organization-full/collaborators`.
5253-
public var collaborators: Swift.Int?
52545252
/// - Remark: Generated from `#/components/schemas/organization-full/billing_email`.
52555253
public var billing_email: Swift.String?
52565254
/// - Remark: Generated from `#/components/schemas/organization-full/plan`.
@@ -5422,7 +5420,6 @@ public enum Components {
54225420
/// - owned_private_repos:
54235421
/// - private_gists:
54245422
/// - disk_usage:
5425-
/// - collaborators:
54265423
/// - billing_email:
54275424
/// - plan:
54285425
/// - default_repository_permission:
@@ -5480,7 +5477,6 @@ public enum Components {
54805477
owned_private_repos: Swift.Int? = nil,
54815478
private_gists: Swift.Int? = nil,
54825479
disk_usage: Swift.Int? = nil,
5483-
collaborators: Swift.Int? = nil,
54845480
billing_email: Swift.String? = nil,
54855481
plan: Components.Schemas.organization_hyphen_full.planPayload? = nil,
54865482
default_repository_permission: Swift.String? = nil,
@@ -5538,7 +5534,6 @@ public enum Components {
55385534
self.owned_private_repos = owned_private_repos
55395535
self.private_gists = private_gists
55405536
self.disk_usage = disk_usage
5541-
self.collaborators = collaborators
55425537
self.billing_email = billing_email
55435538
self.plan = plan
55445539
self.default_repository_permission = default_repository_permission
@@ -5597,7 +5592,6 @@ public enum Components {
55975592
case owned_private_repos
55985593
case private_gists
55995594
case disk_usage
5600-
case collaborators
56015595
case billing_email
56025596
case plan
56035597
case default_repository_permission

Sources/repos/Client.swift

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,13 @@ public struct Client: APIProtocol {
311311
name: "page",
312312
value: input.query.page
313313
)
314+
try converter.setQueryItemAsURI(
315+
in: &request,
316+
style: .form,
317+
explode: true,
318+
name: "targets",
319+
value: input.query.targets
320+
)
314321
converter.setAcceptHeader(
315322
in: &request.headerFields,
316323
contentTypes: input.headers.accept
@@ -16141,6 +16148,13 @@ public struct Client: APIProtocol {
1614116148
name: "includes_parents",
1614216149
value: input.query.includes_parents
1614316150
)
16151+
try converter.setQueryItemAsURI(
16152+
in: &request,
16153+
style: .form,
16154+
explode: true,
16155+
name: "targets",
16156+
value: input.query.targets
16157+
)
1614416158
converter.setAcceptHeader(
1614516159
in: &request.headerFields,
1614616160
contentTypes: input.headers.accept

Sources/repos/Types.swift

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22113,6 +22113,13 @@ public enum Components {
2211322113
///
2211422114
/// - Remark: Generated from `#/components/parameters/invitation-id`.
2211522115
public typealias invitation_hyphen_id = Swift.Int
22116+
/// A comma-separated list of rule targets to filter by.
22117+
/// If provided, only rulesets that apply to the specified targets will be returned.
22118+
/// For example, `branch,tag,push`.
22119+
///
22120+
///
22121+
/// - Remark: Generated from `#/components/parameters/ruleset-targets`.
22122+
public typealias ruleset_hyphen_targets = Swift.String
2211622123
/// The name of the ref. Cannot contain wildcard characters. Optionally prefix with `refs/heads/` to limit to branches or `refs/tags/` to limit to tags. Omit the prefix to search across all refs. When specified, only rule evaluations triggered for this ref will be returned.
2211722124
///
2211822125
/// - Remark: Generated from `#/components/parameters/ref-in-query`.
@@ -23442,17 +23449,27 @@ public enum Operations {
2344223449
///
2344323450
/// - Remark: Generated from `#/paths/orgs/{org}/rulesets/GET/query/page`.
2344423451
public var page: Components.Parameters.page?
23452+
/// A comma-separated list of rule targets to filter by.
23453+
/// If provided, only rulesets that apply to the specified targets will be returned.
23454+
/// For example, `branch,tag,push`.
23455+
///
23456+
///
23457+
/// - Remark: Generated from `#/paths/orgs/{org}/rulesets/GET/query/targets`.
23458+
public var targets: Components.Parameters.ruleset_hyphen_targets?
2344523459
/// Creates a new `Query`.
2344623460
///
2344723461
/// - Parameters:
2344823462
/// - per_page: The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
2344923463
/// - page: The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
23464+
/// - targets: A comma-separated list of rule targets to filter by.
2345023465
public init(
2345123466
per_page: Components.Parameters.per_hyphen_page? = nil,
23452-
page: Components.Parameters.page? = nil
23467+
page: Components.Parameters.page? = nil,
23468+
targets: Components.Parameters.ruleset_hyphen_targets? = nil
2345323469
) {
2345423470
self.per_page = per_page
2345523471
self.page = page
23472+
self.targets = targets
2345623473
}
2345723474
}
2345823475
public var query: Operations.repos_sol_get_hyphen_org_hyphen_rulesets.Input.Query
@@ -56553,20 +56570,30 @@ public enum Operations {
5655356570
///
5655456571
/// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/GET/query/includes_parents`.
5655556572
public var includes_parents: Swift.Bool?
56573+
/// A comma-separated list of rule targets to filter by.
56574+
/// If provided, only rulesets that apply to the specified targets will be returned.
56575+
/// For example, `branch,tag,push`.
56576+
///
56577+
///
56578+
/// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/GET/query/targets`.
56579+
public var targets: Components.Parameters.ruleset_hyphen_targets?
5655656580
/// Creates a new `Query`.
5655756581
///
5655856582
/// - Parameters:
5655956583
/// - per_page: The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
5656056584
/// - page: The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
5656156585
/// - includes_parents: Include rulesets configured at higher levels that apply to this repository
56586+
/// - targets: A comma-separated list of rule targets to filter by.
5656256587
public init(
5656356588
per_page: Components.Parameters.per_hyphen_page? = nil,
5656456589
page: Components.Parameters.page? = nil,
56565-
includes_parents: Swift.Bool? = nil
56590+
includes_parents: Swift.Bool? = nil,
56591+
targets: Components.Parameters.ruleset_hyphen_targets? = nil
5656656592
) {
5656756593
self.per_page = per_page
5656856594
self.page = page
5656956595
self.includes_parents = includes_parents
56596+
self.targets = targets
5657056597
}
5657156598
}
5657256599
public var query: Operations.repos_sol_get_hyphen_repo_hyphen_rulesets.Input.Query

0 commit comments

Comments
 (0)