Skip to content

Commit 5d592da

Browse files
Commit via running ake Sources/repos
1 parent e6a0983 commit 5d592da

File tree

2 files changed

+31
-10
lines changed

2 files changed

+31
-10
lines changed

Sources/repos/Client.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8093,6 +8093,8 @@ public struct Client: APIProtocol {
80938093
return .forbidden(.init(body: body))
80948094
case 302:
80958095
return .found(.init())
8096+
case 304:
8097+
return .notModified(.init())
80968098
default:
80978099
return .undocumented(
80988100
statusCode: response.status.code,

Sources/repos/Types.swift

Lines changed: 29 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21600,10 +21600,6 @@ public enum Components {
2160021600
///
2160121601
/// - Remark: Generated from `#/components/parameters/page`.
2160221602
public typealias page = Swift.Int
21603-
/// Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.
21604-
///
21605-
/// - Remark: Generated from `#/components/parameters/since`.
21606-
public typealias since = Foundation.Date
2160721603
/// The unique identifier of the comment.
2160821604
///
2160921605
/// - Remark: Generated from `#/components/parameters/comment-id`.
@@ -36294,11 +36290,11 @@ public enum Operations {
3629436290
///
3629536291
/// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/GET/query/committer`.
3629636292
public var committer: Swift.String?
36297-
/// Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.
36293+
/// Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Due to limitations of Git, timestamps must be between 1970-01-01 and 2099-12-31 (inclusive) or unexpected results may be returned.
3629836294
///
3629936295
/// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/GET/query/since`.
36300-
public var since: Components.Parameters.since?
36301-
/// Only commits before this date will be returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.
36296+
public var since: Foundation.Date?
36297+
/// Only commits before this date will be returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Due to limitations of Git, timestamps must be between 1970-01-01 and 2099-12-31 (inclusive) or unexpected results may be returned.
3630236298
///
3630336299
/// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/GET/query/until`.
3630436300
public var until: Foundation.Date?
@@ -36317,16 +36313,16 @@ public enum Operations {
3631736313
/// - path: Only commits containing this file path will be returned.
3631836314
/// - author: GitHub username or email address to use to filter by commit author.
3631936315
/// - committer: GitHub username or email address to use to filter by commit committer.
36320-
/// - since: Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.
36321-
/// - until: Only commits before this date will be returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.
36316+
/// - since: Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Due to limitations of Git, timestamps must be between 1970-01-01 and 2099-12-31 (inclusive) or unexpected results may be returned.
36317+
/// - until: Only commits before this date will be returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Due to limitations of Git, timestamps must be between 1970-01-01 and 2099-12-31 (inclusive) or unexpected results may be returned.
3632236318
/// - 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)."
3632336319
/// - 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)."
3632436320
public init(
3632536321
sha: Swift.String? = nil,
3632636322
path: Swift.String? = nil,
3632736323
author: Swift.String? = nil,
3632836324
committer: Swift.String? = nil,
36329-
since: Components.Parameters.since? = nil,
36325+
since: Foundation.Date? = nil,
3633036326
until: Foundation.Date? = nil,
3633136327
per_page: Components.Parameters.per_hyphen_page? = nil,
3633236328
page: Components.Parameters.page? = nil
@@ -38962,6 +38958,29 @@ public enum Operations {
3896238958
}
3896338959
}
3896438960
}
38961+
/// Not modified
38962+
///
38963+
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/contents/{path}/get(repos/get-content)/responses/304`.
38964+
///
38965+
/// HTTP response code: `304 notModified`.
38966+
case notModified(Components.Responses.not_modified)
38967+
/// The associated value of the enum case if `self` is `.notModified`.
38968+
///
38969+
/// - Throws: An error if `self` is not `.notModified`.
38970+
/// - SeeAlso: `.notModified`.
38971+
public var notModified: Components.Responses.not_modified {
38972+
get throws {
38973+
switch self {
38974+
case let .notModified(response):
38975+
return response
38976+
default:
38977+
try throwUnexpectedResponseStatus(
38978+
expectedStatus: "notModified",
38979+
response: self
38980+
)
38981+
}
38982+
}
38983+
}
3896538984
/// Undocumented response.
3896638985
///
3896738986
/// A response with a code that is not documented in the OpenAPI document.

0 commit comments

Comments
 (0)