Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Bump Submodule/github/rest-api-description from0956844 tof024f30#121

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
Show all changes
13 commits
Select commitHold shift + click to select a range
888f252
Bump Submodule/github/rest-api-description from `0956844` to `f024f30`
dependabot[bot]May 26, 2025
daeaa42
Commit via running: make Sources/actions
dependabot[bot]May 27, 2025
643be93
Commit via running: make Sources/activity
dependabot[bot]May 27, 2025
70bb94d
Commit via running: make Sources/apps
dependabot[bot]May 27, 2025
00b94ef
Commit via running: make Sources/issues
dependabot[bot]May 27, 2025
223a197
Commit via running: make Sources/migrations
dependabot[bot]May 27, 2025
5eced0a
Commit via running: make Sources/pulls
dependabot[bot]May 27, 2025
e6ee068
Commit via running: make Sources/repos
dependabot[bot]May 27, 2025
ccffa01
Commit via running: make Sources/search
dependabot[bot]May 27, 2025
cee82b0
Commit via running: make Sources/secret-scanning
dependabot[bot]May 27, 2025
5a888de
Commit via running: make Sources/codespaces
dependabot[bot]May 27, 2025
006a235
Commit via running: make Sources/security-advisories
dependabot[bot]May 27, 2025
de9d04e
Commit via running: make Sources/private-registries
dependabot[bot]May 27, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletionsSources/actions/Client.swift
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -2915,12 +2915,38 @@ public struct Client: APIProtocol {
method: .delete
)
suppressMutabilityWarning(&request)
converter.setAcceptHeader(
in: &request.headerFields,
contentTypes: input.headers.accept
)
return (request, nil)
},
deserializer: { response, responseBody in
switch response.status.code {
case 204:
return .noContent(.init())
case 422:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
let body: Components.Responses.ValidationFailedSimple.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
"application/json"
]
)
switch chosenContentType {
case "application/json":
body = try await converter.getResponseBodyAsJSON(
Components.Schemas.ValidationErrorSimple.self,
from: responseBody,
transforming: { value in
.json(value)
}
)
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
return .unprocessableContent(.init(body: body))
default:
return .undocumented(
statusCode: response.status.code,
Expand DownExpand Up@@ -6976,12 +7002,38 @@ public struct Client: APIProtocol {
method: .delete
)
suppressMutabilityWarning(&request)
converter.setAcceptHeader(
in: &request.headerFields,
contentTypes: input.headers.accept
)
return (request, nil)
},
deserializer: { response, responseBody in
switch response.status.code {
case 204:
return .noContent(.init())
case 422:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
let body: Components.Responses.ValidationFailedSimple.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
"application/json"
]
)
switch chosenContentType {
case "application/json":
body = try await converter.getResponseBodyAsJSON(
Components.Schemas.ValidationErrorSimple.self,
from: responseBody,
transforming: { value in
.json(value)
}
)
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
return .unprocessableContent(.init(body: body))
default:
return .undocumented(
statusCode: response.status.code,
Expand Down
189 changes: 182 additions & 7 deletionsSources/actions/Types.swift
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -2327,8 +2327,14 @@ extension APIProtocol {
///
/// - Remark: HTTP `DELETE /orgs/{org}/actions/runners/{runner_id}`.
/// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/{runner_id}/delete(actions/delete-self-hosted-runner-from-org)`.
public func actionsDeleteSelfHostedRunnerFromOrg(path: Operations.ActionsDeleteSelfHostedRunnerFromOrg.Input.Path) async throws -> Operations.ActionsDeleteSelfHostedRunnerFromOrg.Output {
try await actionsDeleteSelfHostedRunnerFromOrg(Operations.ActionsDeleteSelfHostedRunnerFromOrg.Input(path: path))
public func actionsDeleteSelfHostedRunnerFromOrg(
path: Operations.ActionsDeleteSelfHostedRunnerFromOrg.Input.Path,
headers: Operations.ActionsDeleteSelfHostedRunnerFromOrg.Input.Headers = .init()
) async throws -> Operations.ActionsDeleteSelfHostedRunnerFromOrg.Output {
try await actionsDeleteSelfHostedRunnerFromOrg(Operations.ActionsDeleteSelfHostedRunnerFromOrg.Input(
path: path,
headers: headers
))
}
/// List labels for a self-hosted runner for an organization
///
Expand DownExpand Up@@ -3321,8 +3327,14 @@ extension APIProtocol {
///
/// - Remark: HTTP `DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}`.
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/{runner_id}/delete(actions/delete-self-hosted-runner-from-repo)`.
public func actionsDeleteSelfHostedRunnerFromRepo(path: Operations.ActionsDeleteSelfHostedRunnerFromRepo.Input.Path) async throws -> Operations.ActionsDeleteSelfHostedRunnerFromRepo.Output {
try await actionsDeleteSelfHostedRunnerFromRepo(Operations.ActionsDeleteSelfHostedRunnerFromRepo.Input(path: path))
public func actionsDeleteSelfHostedRunnerFromRepo(
path: Operations.ActionsDeleteSelfHostedRunnerFromRepo.Input.Path,
headers: Operations.ActionsDeleteSelfHostedRunnerFromRepo.Input.Headers = .init()
) async throws -> Operations.ActionsDeleteSelfHostedRunnerFromRepo.Output {
try await actionsDeleteSelfHostedRunnerFromRepo(Operations.ActionsDeleteSelfHostedRunnerFromRepo.Input(
path: path,
headers: headers
))
}
/// List labels for a self-hosted runner for a repository
///
Expand DownExpand Up@@ -5228,6 +5240,35 @@ public enum Components {
///
/// - Remark: Generated from `#/components/schemas/repository/anonymous_access_enabled`.
public var anonymousAccessEnabled: Swift.Bool?
/// The status of the code search index for this repository
///
/// - Remark: Generated from `#/components/schemas/repository/code_search_index_status`.
public struct CodeSearchIndexStatusPayload: Codable, Hashable, Sendable {
/// - Remark: Generated from `#/components/schemas/repository/code_search_index_status/lexical_search_ok`.
public var lexicalSearchOk: Swift.Bool?
/// - Remark: Generated from `#/components/schemas/repository/code_search_index_status/lexical_commit_sha`.
public var lexicalCommitSha: Swift.String?
/// Creates a new `CodeSearchIndexStatusPayload`.
///
/// - Parameters:
/// - lexicalSearchOk:
/// - lexicalCommitSha:
public init(
lexicalSearchOk: Swift.Bool? = nil,
lexicalCommitSha: Swift.String? = nil
) {
self.lexicalSearchOk = lexicalSearchOk
self.lexicalCommitSha = lexicalCommitSha
}
public enum CodingKeys: String, CodingKey {
case lexicalSearchOk = "lexical_search_ok"
case lexicalCommitSha = "lexical_commit_sha"
}
}
/// The status of the code search index for this repository
///
/// - Remark: Generated from `#/components/schemas/repository/code_search_index_status`.
public var codeSearchIndexStatus: Components.Schemas.Repository.CodeSearchIndexStatusPayload?
/// Creates a new `Repository`.
///
/// - Parameters:
Expand DownExpand Up@@ -5326,6 +5367,7 @@ public enum Components {
/// - masterBranch:
/// - starredAt:
/// - anonymousAccessEnabled: Whether anonymous git access is enabled for this repository
/// - codeSearchIndexStatus: The status of the code search index for this repository
public init(
id: Swift.Int64,
nodeId: Swift.String,
Expand DownExpand Up@@ -5421,7 +5463,8 @@ public enum Components {
watchers: Swift.Int,
masterBranch: Swift.String? = nil,
starredAt: Swift.String? = nil,
anonymousAccessEnabled: Swift.Bool? = nil
anonymousAccessEnabled: Swift.Bool? = nil,
codeSearchIndexStatus: Components.Schemas.Repository.CodeSearchIndexStatusPayload? = nil
) {
self.id = id
self.nodeId = nodeId
Expand DownExpand Up@@ -5518,6 +5561,7 @@ public enum Components {
self.masterBranch = masterBranch
self.starredAt = starredAt
self.anonymousAccessEnabled = anonymousAccessEnabled
self.codeSearchIndexStatus = codeSearchIndexStatus
}
public enum CodingKeys: String, CodingKey {
case id
Expand DownExpand Up@@ -5615,6 +5659,7 @@ public enum Components {
case masterBranch = "master_branch"
case starredAt = "starred_at"
case anonymousAccessEnabled = "anonymous_access_enabled"
case codeSearchIndexStatus = "code_search_index_status"
}
}
/// Code Of Conduct
Expand DownExpand Up@@ -17165,12 +17210,29 @@ public enum Operations {
}
}
public var path: Operations.ActionsDeleteSelfHostedRunnerFromOrg.Input.Path
/// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/{runner_id}/DELETE/header`.
public struct Headers: Sendable, Hashable {
public var accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.ActionsDeleteSelfHostedRunnerFromOrg.AcceptableContentType>]
/// Creates a new `Headers`.
///
/// - Parameters:
/// - accept:
public init(accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.ActionsDeleteSelfHostedRunnerFromOrg.AcceptableContentType>] = .defaultValues()) {
self.accept = accept
}
}
public var headers: Operations.ActionsDeleteSelfHostedRunnerFromOrg.Input.Headers
/// Creates a new `Input`.
///
/// - Parameters:
/// - path:
public init(path: Operations.ActionsDeleteSelfHostedRunnerFromOrg.Input.Path) {
/// - headers:
public init(
path: Operations.ActionsDeleteSelfHostedRunnerFromOrg.Input.Path,
headers: Operations.ActionsDeleteSelfHostedRunnerFromOrg.Input.Headers = .init()
) {
self.path = path
self.headers = headers
}
}
@frozen public enum Output: Sendable, Hashable {
Expand DownExpand Up@@ -17209,11 +17271,59 @@ public enum Operations {
}
}
}
/// Validation failed, or the endpoint has been spammed.
///
/// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/{runner_id}/delete(actions/delete-self-hosted-runner-from-org)/responses/422`.
///
/// HTTP response code: `422 unprocessableContent`.
case unprocessableContent(Components.Responses.ValidationFailedSimple)
/// The associated value of the enum case if `self` is `.unprocessableContent`.
///
/// - Throws: An error if `self` is not `.unprocessableContent`.
/// - SeeAlso: `.unprocessableContent`.
public var unprocessableContent: Components.Responses.ValidationFailedSimple {
get throws {
switch self {
case let .unprocessableContent(response):
return response
default:
try throwUnexpectedResponseStatus(
expectedStatus: "unprocessableContent",
response: self
)
}
}
}
/// Undocumented response.
///
/// A response with a code that is not documented in the OpenAPI document.
case undocumented(statusCode: Swift.Int, OpenAPIRuntime.UndocumentedPayload)
}
@frozen public enum AcceptableContentType: AcceptableProtocol {
case json
case other(Swift.String)
public init?(rawValue: Swift.String) {
switch rawValue.lowercased() {
case "application/json":
self = .json
default:
self = .other(rawValue)
}
}
public var rawValue: Swift.String {
switch self {
case let .other(string):
return string
case .json:
return "application/json"
}
}
public static var allCases: [Self] {
[
.json
]
}
}
}
/// List labels for a self-hosted runner for an organization
///
Expand DownExpand Up@@ -25593,12 +25703,29 @@ public enum Operations {
}
}
public var path: Operations.ActionsDeleteSelfHostedRunnerFromRepo.Input.Path
/// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/{runner_id}/DELETE/header`.
public struct Headers: Sendable, Hashable {
public var accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.ActionsDeleteSelfHostedRunnerFromRepo.AcceptableContentType>]
/// Creates a new `Headers`.
///
/// - Parameters:
/// - accept:
public init(accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.ActionsDeleteSelfHostedRunnerFromRepo.AcceptableContentType>] = .defaultValues()) {
self.accept = accept
}
}
public var headers: Operations.ActionsDeleteSelfHostedRunnerFromRepo.Input.Headers
/// Creates a new `Input`.
///
/// - Parameters:
/// - path:
public init(path: Operations.ActionsDeleteSelfHostedRunnerFromRepo.Input.Path) {
/// - headers:
public init(
path: Operations.ActionsDeleteSelfHostedRunnerFromRepo.Input.Path,
headers: Operations.ActionsDeleteSelfHostedRunnerFromRepo.Input.Headers = .init()
) {
self.path = path
self.headers = headers
}
}
@frozen public enum Output: Sendable, Hashable {
Expand DownExpand Up@@ -25637,11 +25764,59 @@ public enum Operations {
}
}
}
/// Validation failed, or the endpoint has been spammed.
///
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/{runner_id}/delete(actions/delete-self-hosted-runner-from-repo)/responses/422`.
///
/// HTTP response code: `422 unprocessableContent`.
case unprocessableContent(Components.Responses.ValidationFailedSimple)
/// The associated value of the enum case if `self` is `.unprocessableContent`.
///
/// - Throws: An error if `self` is not `.unprocessableContent`.
/// - SeeAlso: `.unprocessableContent`.
public var unprocessableContent: Components.Responses.ValidationFailedSimple {
get throws {
switch self {
case let .unprocessableContent(response):
return response
default:
try throwUnexpectedResponseStatus(
expectedStatus: "unprocessableContent",
response: self
)
}
}
}
/// Undocumented response.
///
/// A response with a code that is not documented in the OpenAPI document.
case undocumented(statusCode: Swift.Int, OpenAPIRuntime.UndocumentedPayload)
}
@frozen public enum AcceptableContentType: AcceptableProtocol {
case json
case other(Swift.String)
public init?(rawValue: Swift.String) {
switch rawValue.lowercased() {
case "application/json":
self = .json
default:
self = .other(rawValue)
}
}
public var rawValue: Swift.String {
switch self {
case let .other(string):
return string
case .json:
return "application/json"
}
}
public static var allCases: [Self] {
[
.json
]
}
}
}
/// List labels for a self-hosted runner for a repository
///
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp