Skip to content

Commit 6e44aa9

Browse files
Commit via running ake Sources/repos
1 parent 09c40c9 commit 6e44aa9

File tree

2 files changed

+43
-2
lines changed

2 files changed

+43
-2
lines changed

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)