diff --git a/Lambdas/GitHubAPI/Aliases.swift b/Lambdas/GitHubAPI/Aliases.swift index 08b5fe75..3d67cd58 100644 --- a/Lambdas/GitHubAPI/Aliases.swift +++ b/Lambdas/GitHubAPI/Aliases.swift @@ -19,3 +19,4 @@ public typealias Enterprise = Components.Schemas.enterprise public typealias Installation = Components.Schemas.simple_installation public typealias Tag = Components.Schemas.tag public typealias ProjectCard = Components.Schemas.project_card +public typealias TimelineIssueEvent = Components.Schemas.timeline_issue_events diff --git a/Lambdas/GitHubAPI/GeneratedSources/Client.swift b/Lambdas/GitHubAPI/GeneratedSources/Client.swift index 096373ed..e9402ecf 100644 --- a/Lambdas/GitHubAPI/GeneratedSources/Client.swift +++ b/Lambdas/GitHubAPI/GeneratedSources/Client.swift @@ -3569,6 +3569,103 @@ public struct Client: APIProtocol { } ) } + /// List timeline events for an issue + /// + /// List all timeline events for an issue. + /// + /// - Remark: HTTP `GET /repos/{owner}/{repo}/issues/{issue_number}/timeline`. + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/timeline/get(issues/list-events-for-timeline)`. + public func issues_list_events_for_timeline(_ input: Operations.issues_list_events_for_timeline.Input) async throws + -> Operations.issues_list_events_for_timeline.Output + { + try await client.send( + input: input, + forOperation: Operations.issues_list_events_for_timeline.id, + serializer: { input in + let path = try converter.renderedPath( + template: "/repos/{}/{}/issues/{}/timeline", + parameters: [input.path.owner, input.path.repo, input.path.issue_number] + ) + var request: OpenAPIRuntime.Request = .init(path: path, method: .get) + suppressMutabilityWarning(&request) + try converter.setQueryItemAsURI( + in: &request, + style: .form, + explode: true, + name: "per_page", + value: input.query.per_page + ) + try converter.setQueryItemAsURI( + in: &request, + style: .form, + explode: true, + name: "page", + value: input.query.page + ) + converter.setAcceptHeader(in: &request.headerFields, contentTypes: input.headers.accept) + return request + }, + deserializer: { response in + switch response.statusCode { + case 200: + let headers: Operations.issues_list_events_for_timeline.Output.Ok.Headers = .init( + Link: try converter.getOptionalHeaderFieldAsURI( + in: response.headerFields, + name: "Link", + as: Components.Headers.link.self + ) + ) + let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) + let body: Operations.issues_list_events_for_timeline.Output.Ok.Body + if try contentType == nil + || converter.isMatchingContentType(received: contentType, expectedRaw: "application/json") + { + body = try converter.getResponseBodyAsJSON( + [Components.Schemas.timeline_issue_events].self, + from: response.body, + transforming: { value in .json(value) } + ) + } else { + throw converter.makeUnexpectedContentTypeError(contentType: contentType) + } + return .ok(.init(headers: headers, body: body)) + case 404: + let headers: Components.Responses.not_found.Headers = .init() + let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) + let body: Components.Responses.not_found.Body + if try contentType == nil + || converter.isMatchingContentType(received: contentType, expectedRaw: "application/json") + { + body = try converter.getResponseBodyAsJSON( + Components.Schemas.basic_error.self, + from: response.body, + transforming: { value in .json(value) } + ) + } else { + throw converter.makeUnexpectedContentTypeError(contentType: contentType) + } + return .notFound(.init(headers: headers, body: body)) + case 410: + let headers: Components.Responses.gone.Headers = .init() + let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) + let body: Components.Responses.gone.Body + if try contentType == nil + || converter.isMatchingContentType(received: contentType, expectedRaw: "application/json") + { + body = try converter.getResponseBodyAsJSON( + Components.Schemas.basic_error.self, + from: response.body, + transforming: { value in .json(value) } + ) + } else { + throw converter.makeUnexpectedContentTypeError(contentType: contentType) + } + return .gone(.init(headers: headers, body: body)) + default: return .undocumented(statusCode: response.statusCode, .init()) + } + } + ) + } /// List pull requests /// /// Draft pull requests are available in public repositories with GitHub Free and GitHub Free for organizations, GitHub Pro, and legacy per-repository billing plans, and in public and private repositories with GitHub Team and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. diff --git a/Lambdas/GitHubAPI/GeneratedSources/Types.swift b/Lambdas/GitHubAPI/GeneratedSources/Types.swift index 14aa70fc..bae8a646 100644 --- a/Lambdas/GitHubAPI/GeneratedSources/Types.swift +++ b/Lambdas/GitHubAPI/GeneratedSources/Types.swift @@ -352,6 +352,14 @@ public protocol APIProtocol: Sendable { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/comments/post(issues/create-comment)`. func issues_create_comment(_ input: Operations.issues_create_comment.Input) async throws -> Operations.issues_create_comment.Output + /// List timeline events for an issue + /// + /// List all timeline events for an issue. + /// + /// - Remark: HTTP `GET /repos/{owner}/{repo}/issues/{issue_number}/timeline`. + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/timeline/get(issues/list-events-for-timeline)`. + func issues_list_events_for_timeline(_ input: Operations.issues_list_events_for_timeline.Input) async throws + -> Operations.issues_list_events_for_timeline.Output /// List pull requests /// /// Draft pull requests are available in public repositories with GitHub Free and GitHub Free for organizations, GitHub Pro, and legacy per-repository billing plans, and in public and private repositories with GitHub Team and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. @@ -559,6 +567,201 @@ public enum Components { case starred_at } } + /// GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. + /// + /// - Remark: Generated from `#/components/schemas/integration`. + public struct integration: Codable, Hashable, Sendable { + /// Unique identifier of the GitHub app + /// + /// - Remark: Generated from `#/components/schemas/integration/id`. + public var id: Swift.Int + /// The slug name of the GitHub app + /// + /// - Remark: Generated from `#/components/schemas/integration/slug`. + public var slug: Swift.String? + /// - Remark: Generated from `#/components/schemas/integration/node_id`. + public var node_id: Swift.String + /// - Remark: Generated from `#/components/schemas/integration/owner`. + public var owner: Components.Schemas.nullable_simple_user + /// The name of the GitHub app + /// + /// - Remark: Generated from `#/components/schemas/integration/name`. + public var name: Swift.String + /// - Remark: Generated from `#/components/schemas/integration/description`. + public var description: Swift.String + /// - Remark: Generated from `#/components/schemas/integration/external_url`. + public var external_url: Swift.String + /// - Remark: Generated from `#/components/schemas/integration/html_url`. + public var html_url: Swift.String + /// - Remark: Generated from `#/components/schemas/integration/created_at`. + public var created_at: Foundation.Date + /// - Remark: Generated from `#/components/schemas/integration/updated_at`. + public var updated_at: Foundation.Date + /// The set of permissions for the GitHub app + /// + /// - Remark: Generated from `#/components/schemas/integration/permissions`. + public struct permissionsPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/integration/permissions/issues`. + public var issues: Swift.String? + /// - Remark: Generated from `#/components/schemas/integration/permissions/checks`. + public var checks: Swift.String? + /// - Remark: Generated from `#/components/schemas/integration/permissions/metadata`. + public var metadata: Swift.String? + /// - Remark: Generated from `#/components/schemas/integration/permissions/contents`. + public var contents: Swift.String? + /// - Remark: Generated from `#/components/schemas/integration/permissions/deployments`. + public var deployments: Swift.String? + /// A container of undocumented properties. + public var additionalProperties: [String: Swift.String] + /// Creates a new `permissionsPayload`. + /// + /// - Parameters: + /// - issues: + /// - checks: + /// - metadata: + /// - contents: + /// - deployments: + /// - additionalProperties: A container of undocumented properties. + public init( + issues: Swift.String? = nil, + checks: Swift.String? = nil, + metadata: Swift.String? = nil, + contents: Swift.String? = nil, + deployments: Swift.String? = nil, + additionalProperties: [String: Swift.String] = .init() + ) { + self.issues = issues + self.checks = checks + self.metadata = metadata + self.contents = contents + self.deployments = deployments + self.additionalProperties = additionalProperties + } + public enum CodingKeys: String, CodingKey { + case issues + case checks + case metadata + case contents + case deployments + } + public init(from decoder: any Decoder) throws { + let container = try decoder.container(keyedBy: CodingKeys.self) + issues = try container.decodeIfPresent(Swift.String.self, forKey: .issues) + checks = try container.decodeIfPresent(Swift.String.self, forKey: .checks) + metadata = try container.decodeIfPresent(Swift.String.self, forKey: .metadata) + contents = try container.decodeIfPresent(Swift.String.self, forKey: .contents) + deployments = try container.decodeIfPresent(Swift.String.self, forKey: .deployments) + additionalProperties = try decoder.decodeAdditionalProperties(knownKeys: [ + "issues", "checks", "metadata", "contents", "deployments", + ]) + } + public func encode(to encoder: any Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encodeIfPresent(issues, forKey: .issues) + try container.encodeIfPresent(checks, forKey: .checks) + try container.encodeIfPresent(metadata, forKey: .metadata) + try container.encodeIfPresent(contents, forKey: .contents) + try container.encodeIfPresent(deployments, forKey: .deployments) + try encoder.encodeAdditionalProperties(additionalProperties) + } + } + /// The set of permissions for the GitHub app + /// + /// - Remark: Generated from `#/components/schemas/integration/permissions`. + public var permissions: Components.Schemas.integration.permissionsPayload + /// The list of events for the GitHub app + /// + /// - Remark: Generated from `#/components/schemas/integration/events`. + public var events: [Swift.String] + /// The number of installations associated with the GitHub app + /// + /// - Remark: Generated from `#/components/schemas/integration/installations_count`. + public var installations_count: Swift.Int? + /// - Remark: Generated from `#/components/schemas/integration/client_id`. + public var client_id: Swift.String? + /// - Remark: Generated from `#/components/schemas/integration/client_secret`. + public var client_secret: Swift.String? + /// - Remark: Generated from `#/components/schemas/integration/webhook_secret`. + public var webhook_secret: Swift.String? + /// - Remark: Generated from `#/components/schemas/integration/pem`. + public var pem: Swift.String? + /// Creates a new `integration`. + /// + /// - Parameters: + /// - id: Unique identifier of the GitHub app + /// - slug: The slug name of the GitHub app + /// - node_id: + /// - owner: + /// - name: The name of the GitHub app + /// - description: + /// - external_url: + /// - html_url: + /// - created_at: + /// - updated_at: + /// - permissions: The set of permissions for the GitHub app + /// - events: The list of events for the GitHub app + /// - installations_count: The number of installations associated with the GitHub app + /// - client_id: + /// - client_secret: + /// - webhook_secret: + /// - pem: + public init( + id: Swift.Int, + slug: Swift.String? = nil, + node_id: Swift.String, + owner: Components.Schemas.nullable_simple_user, + name: Swift.String, + description: Swift.String, + external_url: Swift.String, + html_url: Swift.String, + created_at: Foundation.Date, + updated_at: Foundation.Date, + permissions: Components.Schemas.integration.permissionsPayload, + events: [Swift.String], + installations_count: Swift.Int? = nil, + client_id: Swift.String? = nil, + client_secret: Swift.String? = nil, + webhook_secret: Swift.String? = nil, + pem: Swift.String? = nil + ) { + self.id = id + self.slug = slug + self.node_id = node_id + self.owner = owner + self.name = name + self.description = description + self.external_url = external_url + self.html_url = html_url + self.created_at = created_at + self.updated_at = updated_at + self.permissions = permissions + self.events = events + self.installations_count = installations_count + self.client_id = client_id + self.client_secret = client_secret + self.webhook_secret = webhook_secret + self.pem = pem + } + public enum CodingKeys: String, CodingKey { + case id + case slug + case node_id + case owner + case name + case description + case external_url + case html_url + case created_at + case updated_at + case permissions + case events + case installations_count + case client_id + case client_secret + case webhook_secret + case pem + } + } /// Basic Error /// /// - Remark: Generated from `#/components/schemas/basic-error`. @@ -11571,6 +11774,103 @@ public enum Components { case committer } } + /// Commit Comment + /// + /// - Remark: Generated from `#/components/schemas/commit-comment`. + public struct commit_comment: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/commit-comment/html_url`. + public var html_url: Swift.String + /// - Remark: Generated from `#/components/schemas/commit-comment/url`. + public var url: Swift.String + /// - Remark: Generated from `#/components/schemas/commit-comment/id`. + public var id: Swift.Int + /// - Remark: Generated from `#/components/schemas/commit-comment/node_id`. + public var node_id: Swift.String + /// - Remark: Generated from `#/components/schemas/commit-comment/body`. + public var body: Swift.String + /// - Remark: Generated from `#/components/schemas/commit-comment/path`. + public var path: Swift.String + /// - Remark: Generated from `#/components/schemas/commit-comment/position`. + public var position: Swift.Int + /// - Remark: Generated from `#/components/schemas/commit-comment/line`. + public var line: Swift.Int + /// - Remark: Generated from `#/components/schemas/commit-comment/commit_id`. + public var commit_id: Swift.String + /// - Remark: Generated from `#/components/schemas/commit-comment/user`. + public var user: Components.Schemas.nullable_simple_user + /// - Remark: Generated from `#/components/schemas/commit-comment/created_at`. + public var created_at: Foundation.Date + /// - Remark: Generated from `#/components/schemas/commit-comment/updated_at`. + public var updated_at: Foundation.Date + /// - Remark: Generated from `#/components/schemas/commit-comment/author_association`. + public var author_association: Components.Schemas.author_association + /// - Remark: Generated from `#/components/schemas/commit-comment/reactions`. + public var reactions: Components.Schemas.reaction_rollup? + /// Creates a new `commit_comment`. + /// + /// - Parameters: + /// - html_url: + /// - url: + /// - id: + /// - node_id: + /// - body: + /// - path: + /// - position: + /// - line: + /// - commit_id: + /// - user: + /// - created_at: + /// - updated_at: + /// - author_association: + /// - reactions: + public init( + html_url: Swift.String, + url: Swift.String, + id: Swift.Int, + node_id: Swift.String, + body: Swift.String, + path: Swift.String, + position: Swift.Int, + line: Swift.Int, + commit_id: Swift.String, + user: Components.Schemas.nullable_simple_user, + created_at: Foundation.Date, + updated_at: Foundation.Date, + author_association: Components.Schemas.author_association, + reactions: Components.Schemas.reaction_rollup? = nil + ) { + self.html_url = html_url + self.url = url + self.id = id + self.node_id = node_id + self.body = body + self.path = path + self.position = position + self.line = line + self.commit_id = commit_id + self.user = user + self.created_at = created_at + self.updated_at = updated_at + self.author_association = author_association + self.reactions = reactions + } + public enum CodingKeys: String, CodingKey { + case html_url + case url + case id + case node_id + case body + case path + case position + case line + case commit_id + case user + case created_at + case updated_at + case author_association + case reactions + } + } /// Hypermedia Link /// /// - Remark: Generated from `#/components/schemas/link`. @@ -12339,65 +12639,2190 @@ public enum Components { case name } } - /// Color-coded labels help you categorize and filter your issues (just like labels in Gmail). + /// Labeled Issue Event /// - /// - Remark: Generated from `#/components/schemas/label`. - public struct label: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/label/id`. - public var id: Swift.Int64 - /// - Remark: Generated from `#/components/schemas/label/node_id`. + /// - Remark: Generated from `#/components/schemas/labeled-issue-event`. + public struct labeled_issue_event: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/labeled-issue-event/id`. + public var id: Swift.Int + /// - Remark: Generated from `#/components/schemas/labeled-issue-event/node_id`. public var node_id: Swift.String - /// URL for the label - /// - /// - Remark: Generated from `#/components/schemas/label/url`. + /// - Remark: Generated from `#/components/schemas/labeled-issue-event/url`. public var url: Swift.String - /// The name of the label. - /// - /// - Remark: Generated from `#/components/schemas/label/name`. - public var name: Swift.String - /// - Remark: Generated from `#/components/schemas/label/description`. - public var description: Swift.String? - /// 6-character hex code, without the leading #, identifying the color + /// - Remark: Generated from `#/components/schemas/labeled-issue-event/actor`. + public var actor: Components.Schemas.simple_user + /// - Remark: Generated from `#/components/schemas/labeled-issue-event/event`. + public var event: Swift.String + /// - Remark: Generated from `#/components/schemas/labeled-issue-event/commit_id`. + public var commit_id: Swift.String + /// - Remark: Generated from `#/components/schemas/labeled-issue-event/commit_url`. + public var commit_url: Swift.String + /// - Remark: Generated from `#/components/schemas/labeled-issue-event/created_at`. + public var created_at: Swift.String + /// - Remark: Generated from `#/components/schemas/labeled-issue-event/performed_via_github_app`. + public var performed_via_github_app: Components.Schemas.nullable_integration + /// - Remark: Generated from `#/components/schemas/labeled-issue-event/label`. + public struct labelPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/labeled-issue-event/label/name`. + public var name: Swift.String + /// - Remark: Generated from `#/components/schemas/labeled-issue-event/label/color`. + public var color: Swift.String + /// Creates a new `labelPayload`. + /// + /// - Parameters: + /// - name: + /// - color: + public init(name: Swift.String, color: Swift.String) { + self.name = name + self.color = color + } + public enum CodingKeys: String, CodingKey { + case name + case color + } + } + /// - Remark: Generated from `#/components/schemas/labeled-issue-event/label`. + public var label: Components.Schemas.labeled_issue_event.labelPayload + /// Creates a new `labeled_issue_event`. /// - /// - Remark: Generated from `#/components/schemas/label/color`. - public var color: Swift.String - /// - Remark: Generated from `#/components/schemas/label/default`. - public var _default: Swift.Bool - /// Creates a new `label`. + /// - Parameters: + /// - id: + /// - node_id: + /// - url: + /// - actor: + /// - event: + /// - commit_id: + /// - commit_url: + /// - created_at: + /// - performed_via_github_app: + /// - label: + public init( + id: Swift.Int, + node_id: Swift.String, + url: Swift.String, + actor: Components.Schemas.simple_user, + event: Swift.String, + commit_id: Swift.String, + commit_url: Swift.String, + created_at: Swift.String, + performed_via_github_app: Components.Schemas.nullable_integration, + label: Components.Schemas.labeled_issue_event.labelPayload + ) { + self.id = id + self.node_id = node_id + self.url = url + self.actor = actor + self.event = event + self.commit_id = commit_id + self.commit_url = commit_url + self.created_at = created_at + self.performed_via_github_app = performed_via_github_app + self.label = label + } + public enum CodingKeys: String, CodingKey { + case id + case node_id + case url + case actor + case event + case commit_id + case commit_url + case created_at + case performed_via_github_app + case label + } + } + /// Unlabeled Issue Event + /// + /// - Remark: Generated from `#/components/schemas/unlabeled-issue-event`. + public struct unlabeled_issue_event: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/unlabeled-issue-event/id`. + public var id: Swift.Int + /// - Remark: Generated from `#/components/schemas/unlabeled-issue-event/node_id`. + public var node_id: Swift.String + /// - Remark: Generated from `#/components/schemas/unlabeled-issue-event/url`. + public var url: Swift.String + /// - Remark: Generated from `#/components/schemas/unlabeled-issue-event/actor`. + public var actor: Components.Schemas.simple_user + /// - Remark: Generated from `#/components/schemas/unlabeled-issue-event/event`. + public var event: Swift.String + /// - Remark: Generated from `#/components/schemas/unlabeled-issue-event/commit_id`. + public var commit_id: Swift.String + /// - Remark: Generated from `#/components/schemas/unlabeled-issue-event/commit_url`. + public var commit_url: Swift.String + /// - Remark: Generated from `#/components/schemas/unlabeled-issue-event/created_at`. + public var created_at: Swift.String + /// - Remark: Generated from `#/components/schemas/unlabeled-issue-event/performed_via_github_app`. + public var performed_via_github_app: Components.Schemas.nullable_integration + /// - Remark: Generated from `#/components/schemas/unlabeled-issue-event/label`. + public struct labelPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/unlabeled-issue-event/label/name`. + public var name: Swift.String + /// - Remark: Generated from `#/components/schemas/unlabeled-issue-event/label/color`. + public var color: Swift.String + /// Creates a new `labelPayload`. + /// + /// - Parameters: + /// - name: + /// - color: + public init(name: Swift.String, color: Swift.String) { + self.name = name + self.color = color + } + public enum CodingKeys: String, CodingKey { + case name + case color + } + } + /// - Remark: Generated from `#/components/schemas/unlabeled-issue-event/label`. + public var label: Components.Schemas.unlabeled_issue_event.labelPayload + /// Creates a new `unlabeled_issue_event`. /// /// - Parameters: /// - id: /// - node_id: - /// - url: URL for the label - /// - name: The name of the label. - /// - description: - /// - color: 6-character hex code, without the leading #, identifying the color - /// - _default: + /// - url: + /// - actor: + /// - event: + /// - commit_id: + /// - commit_url: + /// - created_at: + /// - performed_via_github_app: + /// - label: public init( - id: Swift.Int64, + id: Swift.Int, node_id: Swift.String, url: Swift.String, - name: Swift.String, - description: Swift.String? = nil, - color: Swift.String, - _default: Swift.Bool + actor: Components.Schemas.simple_user, + event: Swift.String, + commit_id: Swift.String, + commit_url: Swift.String, + created_at: Swift.String, + performed_via_github_app: Components.Schemas.nullable_integration, + label: Components.Schemas.unlabeled_issue_event.labelPayload + ) { + self.id = id + self.node_id = node_id + self.url = url + self.actor = actor + self.event = event + self.commit_id = commit_id + self.commit_url = commit_url + self.created_at = created_at + self.performed_via_github_app = performed_via_github_app + self.label = label + } + public enum CodingKeys: String, CodingKey { + case id + case node_id + case url + case actor + case event + case commit_id + case commit_url + case created_at + case performed_via_github_app + case label + } + } + /// Assigned Issue Event + /// + /// - Remark: Generated from `#/components/schemas/assigned-issue-event`. + public struct assigned_issue_event: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/assigned-issue-event/id`. + public var id: Swift.Int + /// - Remark: Generated from `#/components/schemas/assigned-issue-event/node_id`. + public var node_id: Swift.String + /// - Remark: Generated from `#/components/schemas/assigned-issue-event/url`. + public var url: Swift.String + /// - Remark: Generated from `#/components/schemas/assigned-issue-event/actor`. + public var actor: Components.Schemas.simple_user + /// - Remark: Generated from `#/components/schemas/assigned-issue-event/event`. + public var event: Swift.String + /// - Remark: Generated from `#/components/schemas/assigned-issue-event/commit_id`. + public var commit_id: Swift.String + /// - Remark: Generated from `#/components/schemas/assigned-issue-event/commit_url`. + public var commit_url: Swift.String + /// - Remark: Generated from `#/components/schemas/assigned-issue-event/created_at`. + public var created_at: Swift.String + /// - Remark: Generated from `#/components/schemas/assigned-issue-event/performed_via_github_app`. + public var performed_via_github_app: Components.Schemas.integration + /// - Remark: Generated from `#/components/schemas/assigned-issue-event/assignee`. + public var assignee: Components.Schemas.simple_user + /// - Remark: Generated from `#/components/schemas/assigned-issue-event/assigner`. + public var assigner: Components.Schemas.simple_user + /// Creates a new `assigned_issue_event`. + /// + /// - Parameters: + /// - id: + /// - node_id: + /// - url: + /// - actor: + /// - event: + /// - commit_id: + /// - commit_url: + /// - created_at: + /// - performed_via_github_app: + /// - assignee: + /// - assigner: + public init( + id: Swift.Int, + node_id: Swift.String, + url: Swift.String, + actor: Components.Schemas.simple_user, + event: Swift.String, + commit_id: Swift.String, + commit_url: Swift.String, + created_at: Swift.String, + performed_via_github_app: Components.Schemas.integration, + assignee: Components.Schemas.simple_user, + assigner: Components.Schemas.simple_user + ) { + self.id = id + self.node_id = node_id + self.url = url + self.actor = actor + self.event = event + self.commit_id = commit_id + self.commit_url = commit_url + self.created_at = created_at + self.performed_via_github_app = performed_via_github_app + self.assignee = assignee + self.assigner = assigner + } + public enum CodingKeys: String, CodingKey { + case id + case node_id + case url + case actor + case event + case commit_id + case commit_url + case created_at + case performed_via_github_app + case assignee + case assigner + } + } + /// Unassigned Issue Event + /// + /// - Remark: Generated from `#/components/schemas/unassigned-issue-event`. + public struct unassigned_issue_event: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/unassigned-issue-event/id`. + public var id: Swift.Int + /// - Remark: Generated from `#/components/schemas/unassigned-issue-event/node_id`. + public var node_id: Swift.String + /// - Remark: Generated from `#/components/schemas/unassigned-issue-event/url`. + public var url: Swift.String + /// - Remark: Generated from `#/components/schemas/unassigned-issue-event/actor`. + public var actor: Components.Schemas.simple_user + /// - Remark: Generated from `#/components/schemas/unassigned-issue-event/event`. + public var event: Swift.String + /// - Remark: Generated from `#/components/schemas/unassigned-issue-event/commit_id`. + public var commit_id: Swift.String + /// - Remark: Generated from `#/components/schemas/unassigned-issue-event/commit_url`. + public var commit_url: Swift.String + /// - Remark: Generated from `#/components/schemas/unassigned-issue-event/created_at`. + public var created_at: Swift.String + /// - Remark: Generated from `#/components/schemas/unassigned-issue-event/performed_via_github_app`. + public var performed_via_github_app: Components.Schemas.nullable_integration + /// - Remark: Generated from `#/components/schemas/unassigned-issue-event/assignee`. + public var assignee: Components.Schemas.simple_user + /// - Remark: Generated from `#/components/schemas/unassigned-issue-event/assigner`. + public var assigner: Components.Schemas.simple_user + /// Creates a new `unassigned_issue_event`. + /// + /// - Parameters: + /// - id: + /// - node_id: + /// - url: + /// - actor: + /// - event: + /// - commit_id: + /// - commit_url: + /// - created_at: + /// - performed_via_github_app: + /// - assignee: + /// - assigner: + public init( + id: Swift.Int, + node_id: Swift.String, + url: Swift.String, + actor: Components.Schemas.simple_user, + event: Swift.String, + commit_id: Swift.String, + commit_url: Swift.String, + created_at: Swift.String, + performed_via_github_app: Components.Schemas.nullable_integration, + assignee: Components.Schemas.simple_user, + assigner: Components.Schemas.simple_user + ) { + self.id = id + self.node_id = node_id + self.url = url + self.actor = actor + self.event = event + self.commit_id = commit_id + self.commit_url = commit_url + self.created_at = created_at + self.performed_via_github_app = performed_via_github_app + self.assignee = assignee + self.assigner = assigner + } + public enum CodingKeys: String, CodingKey { + case id + case node_id + case url + case actor + case event + case commit_id + case commit_url + case created_at + case performed_via_github_app + case assignee + case assigner + } + } + /// Milestoned Issue Event + /// + /// - Remark: Generated from `#/components/schemas/milestoned-issue-event`. + public struct milestoned_issue_event: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/milestoned-issue-event/id`. + public var id: Swift.Int + /// - Remark: Generated from `#/components/schemas/milestoned-issue-event/node_id`. + public var node_id: Swift.String + /// - Remark: Generated from `#/components/schemas/milestoned-issue-event/url`. + public var url: Swift.String + /// - Remark: Generated from `#/components/schemas/milestoned-issue-event/actor`. + public var actor: Components.Schemas.simple_user + /// - Remark: Generated from `#/components/schemas/milestoned-issue-event/event`. + public var event: Swift.String + /// - Remark: Generated from `#/components/schemas/milestoned-issue-event/commit_id`. + public var commit_id: Swift.String + /// - Remark: Generated from `#/components/schemas/milestoned-issue-event/commit_url`. + public var commit_url: Swift.String + /// - Remark: Generated from `#/components/schemas/milestoned-issue-event/created_at`. + public var created_at: Swift.String + /// - Remark: Generated from `#/components/schemas/milestoned-issue-event/performed_via_github_app`. + public var performed_via_github_app: Components.Schemas.nullable_integration + /// - Remark: Generated from `#/components/schemas/milestoned-issue-event/milestone`. + public struct milestonePayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/milestoned-issue-event/milestone/title`. + public var title: Swift.String + /// Creates a new `milestonePayload`. + /// + /// - Parameters: + /// - title: + public init(title: Swift.String) { self.title = title } + public enum CodingKeys: String, CodingKey { case title } + } + /// - Remark: Generated from `#/components/schemas/milestoned-issue-event/milestone`. + public var milestone: Components.Schemas.milestoned_issue_event.milestonePayload + /// Creates a new `milestoned_issue_event`. + /// + /// - Parameters: + /// - id: + /// - node_id: + /// - url: + /// - actor: + /// - event: + /// - commit_id: + /// - commit_url: + /// - created_at: + /// - performed_via_github_app: + /// - milestone: + public init( + id: Swift.Int, + node_id: Swift.String, + url: Swift.String, + actor: Components.Schemas.simple_user, + event: Swift.String, + commit_id: Swift.String, + commit_url: Swift.String, + created_at: Swift.String, + performed_via_github_app: Components.Schemas.nullable_integration, + milestone: Components.Schemas.milestoned_issue_event.milestonePayload + ) { + self.id = id + self.node_id = node_id + self.url = url + self.actor = actor + self.event = event + self.commit_id = commit_id + self.commit_url = commit_url + self.created_at = created_at + self.performed_via_github_app = performed_via_github_app + self.milestone = milestone + } + public enum CodingKeys: String, CodingKey { + case id + case node_id + case url + case actor + case event + case commit_id + case commit_url + case created_at + case performed_via_github_app + case milestone + } + } + /// Demilestoned Issue Event + /// + /// - Remark: Generated from `#/components/schemas/demilestoned-issue-event`. + public struct demilestoned_issue_event: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/demilestoned-issue-event/id`. + public var id: Swift.Int + /// - Remark: Generated from `#/components/schemas/demilestoned-issue-event/node_id`. + public var node_id: Swift.String + /// - Remark: Generated from `#/components/schemas/demilestoned-issue-event/url`. + public var url: Swift.String + /// - Remark: Generated from `#/components/schemas/demilestoned-issue-event/actor`. + public var actor: Components.Schemas.simple_user + /// - Remark: Generated from `#/components/schemas/demilestoned-issue-event/event`. + public var event: Swift.String + /// - Remark: Generated from `#/components/schemas/demilestoned-issue-event/commit_id`. + public var commit_id: Swift.String + /// - Remark: Generated from `#/components/schemas/demilestoned-issue-event/commit_url`. + public var commit_url: Swift.String + /// - Remark: Generated from `#/components/schemas/demilestoned-issue-event/created_at`. + public var created_at: Swift.String + /// - Remark: Generated from `#/components/schemas/demilestoned-issue-event/performed_via_github_app`. + public var performed_via_github_app: Components.Schemas.nullable_integration + /// - Remark: Generated from `#/components/schemas/demilestoned-issue-event/milestone`. + public struct milestonePayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/demilestoned-issue-event/milestone/title`. + public var title: Swift.String + /// Creates a new `milestonePayload`. + /// + /// - Parameters: + /// - title: + public init(title: Swift.String) { self.title = title } + public enum CodingKeys: String, CodingKey { case title } + } + /// - Remark: Generated from `#/components/schemas/demilestoned-issue-event/milestone`. + public var milestone: Components.Schemas.demilestoned_issue_event.milestonePayload + /// Creates a new `demilestoned_issue_event`. + /// + /// - Parameters: + /// - id: + /// - node_id: + /// - url: + /// - actor: + /// - event: + /// - commit_id: + /// - commit_url: + /// - created_at: + /// - performed_via_github_app: + /// - milestone: + public init( + id: Swift.Int, + node_id: Swift.String, + url: Swift.String, + actor: Components.Schemas.simple_user, + event: Swift.String, + commit_id: Swift.String, + commit_url: Swift.String, + created_at: Swift.String, + performed_via_github_app: Components.Schemas.nullable_integration, + milestone: Components.Schemas.demilestoned_issue_event.milestonePayload + ) { + self.id = id + self.node_id = node_id + self.url = url + self.actor = actor + self.event = event + self.commit_id = commit_id + self.commit_url = commit_url + self.created_at = created_at + self.performed_via_github_app = performed_via_github_app + self.milestone = milestone + } + public enum CodingKeys: String, CodingKey { + case id + case node_id + case url + case actor + case event + case commit_id + case commit_url + case created_at + case performed_via_github_app + case milestone + } + } + /// Renamed Issue Event + /// + /// - Remark: Generated from `#/components/schemas/renamed-issue-event`. + public struct renamed_issue_event: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/renamed-issue-event/id`. + public var id: Swift.Int + /// - Remark: Generated from `#/components/schemas/renamed-issue-event/node_id`. + public var node_id: Swift.String + /// - Remark: Generated from `#/components/schemas/renamed-issue-event/url`. + public var url: Swift.String + /// - Remark: Generated from `#/components/schemas/renamed-issue-event/actor`. + public var actor: Components.Schemas.simple_user + /// - Remark: Generated from `#/components/schemas/renamed-issue-event/event`. + public var event: Swift.String + /// - Remark: Generated from `#/components/schemas/renamed-issue-event/commit_id`. + public var commit_id: Swift.String + /// - Remark: Generated from `#/components/schemas/renamed-issue-event/commit_url`. + public var commit_url: Swift.String + /// - Remark: Generated from `#/components/schemas/renamed-issue-event/created_at`. + public var created_at: Swift.String + /// - Remark: Generated from `#/components/schemas/renamed-issue-event/performed_via_github_app`. + public var performed_via_github_app: Components.Schemas.nullable_integration + /// - Remark: Generated from `#/components/schemas/renamed-issue-event/rename`. + public struct renamePayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/renamed-issue-event/rename/from`. + public var from: Swift.String + /// - Remark: Generated from `#/components/schemas/renamed-issue-event/rename/to`. + public var to: Swift.String + /// Creates a new `renamePayload`. + /// + /// - Parameters: + /// - from: + /// - to: + public init(from: Swift.String, to: Swift.String) { + self.from = from + self.to = to + } + public enum CodingKeys: String, CodingKey { + case from + case to + } + } + /// - Remark: Generated from `#/components/schemas/renamed-issue-event/rename`. + public var rename: Components.Schemas.renamed_issue_event.renamePayload + /// Creates a new `renamed_issue_event`. + /// + /// - Parameters: + /// - id: + /// - node_id: + /// - url: + /// - actor: + /// - event: + /// - commit_id: + /// - commit_url: + /// - created_at: + /// - performed_via_github_app: + /// - rename: + public init( + id: Swift.Int, + node_id: Swift.String, + url: Swift.String, + actor: Components.Schemas.simple_user, + event: Swift.String, + commit_id: Swift.String, + commit_url: Swift.String, + created_at: Swift.String, + performed_via_github_app: Components.Schemas.nullable_integration, + rename: Components.Schemas.renamed_issue_event.renamePayload + ) { + self.id = id + self.node_id = node_id + self.url = url + self.actor = actor + self.event = event + self.commit_id = commit_id + self.commit_url = commit_url + self.created_at = created_at + self.performed_via_github_app = performed_via_github_app + self.rename = rename + } + public enum CodingKeys: String, CodingKey { + case id + case node_id + case url + case actor + case event + case commit_id + case commit_url + case created_at + case performed_via_github_app + case rename + } + } + /// Review Requested Issue Event + /// + /// - Remark: Generated from `#/components/schemas/review-requested-issue-event`. + public struct review_requested_issue_event: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/review-requested-issue-event/id`. + public var id: Swift.Int + /// - Remark: Generated from `#/components/schemas/review-requested-issue-event/node_id`. + public var node_id: Swift.String + /// - Remark: Generated from `#/components/schemas/review-requested-issue-event/url`. + public var url: Swift.String + /// - Remark: Generated from `#/components/schemas/review-requested-issue-event/actor`. + public var actor: Components.Schemas.simple_user + /// - Remark: Generated from `#/components/schemas/review-requested-issue-event/event`. + public var event: Swift.String + /// - Remark: Generated from `#/components/schemas/review-requested-issue-event/commit_id`. + public var commit_id: Swift.String + /// - Remark: Generated from `#/components/schemas/review-requested-issue-event/commit_url`. + public var commit_url: Swift.String + /// - Remark: Generated from `#/components/schemas/review-requested-issue-event/created_at`. + public var created_at: Swift.String + /// - Remark: Generated from `#/components/schemas/review-requested-issue-event/performed_via_github_app`. + public var performed_via_github_app: Components.Schemas.nullable_integration + /// - Remark: Generated from `#/components/schemas/review-requested-issue-event/review_requester`. + public var review_requester: Components.Schemas.simple_user + /// - Remark: Generated from `#/components/schemas/review-requested-issue-event/requested_team`. + public var requested_team: Components.Schemas.team? + /// - Remark: Generated from `#/components/schemas/review-requested-issue-event/requested_reviewer`. + public var requested_reviewer: Components.Schemas.simple_user? + /// Creates a new `review_requested_issue_event`. + /// + /// - Parameters: + /// - id: + /// - node_id: + /// - url: + /// - actor: + /// - event: + /// - commit_id: + /// - commit_url: + /// - created_at: + /// - performed_via_github_app: + /// - review_requester: + /// - requested_team: + /// - requested_reviewer: + public init( + id: Swift.Int, + node_id: Swift.String, + url: Swift.String, + actor: Components.Schemas.simple_user, + event: Swift.String, + commit_id: Swift.String, + commit_url: Swift.String, + created_at: Swift.String, + performed_via_github_app: Components.Schemas.nullable_integration, + review_requester: Components.Schemas.simple_user, + requested_team: Components.Schemas.team? = nil, + requested_reviewer: Components.Schemas.simple_user? = nil + ) { + self.id = id + self.node_id = node_id + self.url = url + self.actor = actor + self.event = event + self.commit_id = commit_id + self.commit_url = commit_url + self.created_at = created_at + self.performed_via_github_app = performed_via_github_app + self.review_requester = review_requester + self.requested_team = requested_team + self.requested_reviewer = requested_reviewer + } + public enum CodingKeys: String, CodingKey { + case id + case node_id + case url + case actor + case event + case commit_id + case commit_url + case created_at + case performed_via_github_app + case review_requester + case requested_team + case requested_reviewer + } + } + /// Review Request Removed Issue Event + /// + /// - Remark: Generated from `#/components/schemas/review-request-removed-issue-event`. + public struct review_request_removed_issue_event: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/review-request-removed-issue-event/id`. + public var id: Swift.Int + /// - Remark: Generated from `#/components/schemas/review-request-removed-issue-event/node_id`. + public var node_id: Swift.String + /// - Remark: Generated from `#/components/schemas/review-request-removed-issue-event/url`. + public var url: Swift.String + /// - Remark: Generated from `#/components/schemas/review-request-removed-issue-event/actor`. + public var actor: Components.Schemas.simple_user + /// - Remark: Generated from `#/components/schemas/review-request-removed-issue-event/event`. + public var event: Swift.String + /// - Remark: Generated from `#/components/schemas/review-request-removed-issue-event/commit_id`. + public var commit_id: Swift.String + /// - Remark: Generated from `#/components/schemas/review-request-removed-issue-event/commit_url`. + public var commit_url: Swift.String + /// - Remark: Generated from `#/components/schemas/review-request-removed-issue-event/created_at`. + public var created_at: Swift.String + /// - Remark: Generated from `#/components/schemas/review-request-removed-issue-event/performed_via_github_app`. + public var performed_via_github_app: Components.Schemas.nullable_integration + /// - Remark: Generated from `#/components/schemas/review-request-removed-issue-event/review_requester`. + public var review_requester: Components.Schemas.simple_user + /// - Remark: Generated from `#/components/schemas/review-request-removed-issue-event/requested_team`. + public var requested_team: Components.Schemas.team? + /// - Remark: Generated from `#/components/schemas/review-request-removed-issue-event/requested_reviewer`. + public var requested_reviewer: Components.Schemas.simple_user? + /// Creates a new `review_request_removed_issue_event`. + /// + /// - Parameters: + /// - id: + /// - node_id: + /// - url: + /// - actor: + /// - event: + /// - commit_id: + /// - commit_url: + /// - created_at: + /// - performed_via_github_app: + /// - review_requester: + /// - requested_team: + /// - requested_reviewer: + public init( + id: Swift.Int, + node_id: Swift.String, + url: Swift.String, + actor: Components.Schemas.simple_user, + event: Swift.String, + commit_id: Swift.String, + commit_url: Swift.String, + created_at: Swift.String, + performed_via_github_app: Components.Schemas.nullable_integration, + review_requester: Components.Schemas.simple_user, + requested_team: Components.Schemas.team? = nil, + requested_reviewer: Components.Schemas.simple_user? = nil + ) { + self.id = id + self.node_id = node_id + self.url = url + self.actor = actor + self.event = event + self.commit_id = commit_id + self.commit_url = commit_url + self.created_at = created_at + self.performed_via_github_app = performed_via_github_app + self.review_requester = review_requester + self.requested_team = requested_team + self.requested_reviewer = requested_reviewer + } + public enum CodingKeys: String, CodingKey { + case id + case node_id + case url + case actor + case event + case commit_id + case commit_url + case created_at + case performed_via_github_app + case review_requester + case requested_team + case requested_reviewer + } + } + /// Review Dismissed Issue Event + /// + /// - Remark: Generated from `#/components/schemas/review-dismissed-issue-event`. + public struct review_dismissed_issue_event: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/review-dismissed-issue-event/id`. + public var id: Swift.Int + /// - Remark: Generated from `#/components/schemas/review-dismissed-issue-event/node_id`. + public var node_id: Swift.String + /// - Remark: Generated from `#/components/schemas/review-dismissed-issue-event/url`. + public var url: Swift.String + /// - Remark: Generated from `#/components/schemas/review-dismissed-issue-event/actor`. + public var actor: Components.Schemas.simple_user + /// - Remark: Generated from `#/components/schemas/review-dismissed-issue-event/event`. + public var event: Swift.String + /// - Remark: Generated from `#/components/schemas/review-dismissed-issue-event/commit_id`. + public var commit_id: Swift.String + /// - Remark: Generated from `#/components/schemas/review-dismissed-issue-event/commit_url`. + public var commit_url: Swift.String + /// - Remark: Generated from `#/components/schemas/review-dismissed-issue-event/created_at`. + public var created_at: Swift.String + /// - Remark: Generated from `#/components/schemas/review-dismissed-issue-event/performed_via_github_app`. + public var performed_via_github_app: Components.Schemas.nullable_integration + /// - Remark: Generated from `#/components/schemas/review-dismissed-issue-event/dismissed_review`. + public struct dismissed_reviewPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/review-dismissed-issue-event/dismissed_review/state`. + public var state: Swift.String + /// - Remark: Generated from `#/components/schemas/review-dismissed-issue-event/dismissed_review/review_id`. + public var review_id: Swift.Int + /// - Remark: Generated from `#/components/schemas/review-dismissed-issue-event/dismissed_review/dismissal_message`. + public var dismissal_message: Swift.String + /// - Remark: Generated from `#/components/schemas/review-dismissed-issue-event/dismissed_review/dismissal_commit_id`. + public var dismissal_commit_id: Swift.String? + /// Creates a new `dismissed_reviewPayload`. + /// + /// - Parameters: + /// - state: + /// - review_id: + /// - dismissal_message: + /// - dismissal_commit_id: + public init( + state: Swift.String, + review_id: Swift.Int, + dismissal_message: Swift.String, + dismissal_commit_id: Swift.String? = nil + ) { + self.state = state + self.review_id = review_id + self.dismissal_message = dismissal_message + self.dismissal_commit_id = dismissal_commit_id + } + public enum CodingKeys: String, CodingKey { + case state + case review_id + case dismissal_message + case dismissal_commit_id + } + } + /// - Remark: Generated from `#/components/schemas/review-dismissed-issue-event/dismissed_review`. + public var dismissed_review: Components.Schemas.review_dismissed_issue_event.dismissed_reviewPayload + /// Creates a new `review_dismissed_issue_event`. + /// + /// - Parameters: + /// - id: + /// - node_id: + /// - url: + /// - actor: + /// - event: + /// - commit_id: + /// - commit_url: + /// - created_at: + /// - performed_via_github_app: + /// - dismissed_review: + public init( + id: Swift.Int, + node_id: Swift.String, + url: Swift.String, + actor: Components.Schemas.simple_user, + event: Swift.String, + commit_id: Swift.String, + commit_url: Swift.String, + created_at: Swift.String, + performed_via_github_app: Components.Schemas.nullable_integration, + dismissed_review: Components.Schemas.review_dismissed_issue_event.dismissed_reviewPayload + ) { + self.id = id + self.node_id = node_id + self.url = url + self.actor = actor + self.event = event + self.commit_id = commit_id + self.commit_url = commit_url + self.created_at = created_at + self.performed_via_github_app = performed_via_github_app + self.dismissed_review = dismissed_review + } + public enum CodingKeys: String, CodingKey { + case id + case node_id + case url + case actor + case event + case commit_id + case commit_url + case created_at + case performed_via_github_app + case dismissed_review + } + } + /// Locked Issue Event + /// + /// - Remark: Generated from `#/components/schemas/locked-issue-event`. + public struct locked_issue_event: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/locked-issue-event/id`. + public var id: Swift.Int + /// - Remark: Generated from `#/components/schemas/locked-issue-event/node_id`. + public var node_id: Swift.String + /// - Remark: Generated from `#/components/schemas/locked-issue-event/url`. + public var url: Swift.String + /// - Remark: Generated from `#/components/schemas/locked-issue-event/actor`. + public var actor: Components.Schemas.simple_user + /// - Remark: Generated from `#/components/schemas/locked-issue-event/event`. + public var event: Swift.String + /// - Remark: Generated from `#/components/schemas/locked-issue-event/commit_id`. + public var commit_id: Swift.String + /// - Remark: Generated from `#/components/schemas/locked-issue-event/commit_url`. + public var commit_url: Swift.String + /// - Remark: Generated from `#/components/schemas/locked-issue-event/created_at`. + public var created_at: Swift.String + /// - Remark: Generated from `#/components/schemas/locked-issue-event/performed_via_github_app`. + public var performed_via_github_app: Components.Schemas.nullable_integration + /// - Remark: Generated from `#/components/schemas/locked-issue-event/lock_reason`. + public var lock_reason: Swift.String + /// Creates a new `locked_issue_event`. + /// + /// - Parameters: + /// - id: + /// - node_id: + /// - url: + /// - actor: + /// - event: + /// - commit_id: + /// - commit_url: + /// - created_at: + /// - performed_via_github_app: + /// - lock_reason: + public init( + id: Swift.Int, + node_id: Swift.String, + url: Swift.String, + actor: Components.Schemas.simple_user, + event: Swift.String, + commit_id: Swift.String, + commit_url: Swift.String, + created_at: Swift.String, + performed_via_github_app: Components.Schemas.nullable_integration, + lock_reason: Swift.String + ) { + self.id = id + self.node_id = node_id + self.url = url + self.actor = actor + self.event = event + self.commit_id = commit_id + self.commit_url = commit_url + self.created_at = created_at + self.performed_via_github_app = performed_via_github_app + self.lock_reason = lock_reason + } + public enum CodingKeys: String, CodingKey { + case id + case node_id + case url + case actor + case event + case commit_id + case commit_url + case created_at + case performed_via_github_app + case lock_reason + } + } + /// Added to Project Issue Event + /// + /// - Remark: Generated from `#/components/schemas/added-to-project-issue-event`. + public struct added_to_project_issue_event: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/added-to-project-issue-event/id`. + public var id: Swift.Int + /// - Remark: Generated from `#/components/schemas/added-to-project-issue-event/node_id`. + public var node_id: Swift.String + /// - Remark: Generated from `#/components/schemas/added-to-project-issue-event/url`. + public var url: Swift.String + /// - Remark: Generated from `#/components/schemas/added-to-project-issue-event/actor`. + public var actor: Components.Schemas.simple_user + /// - Remark: Generated from `#/components/schemas/added-to-project-issue-event/event`. + public var event: Swift.String + /// - Remark: Generated from `#/components/schemas/added-to-project-issue-event/commit_id`. + public var commit_id: Swift.String + /// - Remark: Generated from `#/components/schemas/added-to-project-issue-event/commit_url`. + public var commit_url: Swift.String + /// - Remark: Generated from `#/components/schemas/added-to-project-issue-event/created_at`. + public var created_at: Swift.String + /// - Remark: Generated from `#/components/schemas/added-to-project-issue-event/performed_via_github_app`. + public var performed_via_github_app: Components.Schemas.nullable_integration + /// - Remark: Generated from `#/components/schemas/added-to-project-issue-event/project_card`. + public struct project_cardPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/added-to-project-issue-event/project_card/id`. + public var id: Swift.Int + /// - Remark: Generated from `#/components/schemas/added-to-project-issue-event/project_card/url`. + public var url: Swift.String + /// - Remark: Generated from `#/components/schemas/added-to-project-issue-event/project_card/project_id`. + public var project_id: Swift.Int + /// - Remark: Generated from `#/components/schemas/added-to-project-issue-event/project_card/project_url`. + public var project_url: Swift.String + /// - Remark: Generated from `#/components/schemas/added-to-project-issue-event/project_card/column_name`. + public var column_name: Swift.String + /// - Remark: Generated from `#/components/schemas/added-to-project-issue-event/project_card/previous_column_name`. + public var previous_column_name: Swift.String? + /// Creates a new `project_cardPayload`. + /// + /// - Parameters: + /// - id: + /// - url: + /// - project_id: + /// - project_url: + /// - column_name: + /// - previous_column_name: + public init( + id: Swift.Int, + url: Swift.String, + project_id: Swift.Int, + project_url: Swift.String, + column_name: Swift.String, + previous_column_name: Swift.String? = nil + ) { + self.id = id + self.url = url + self.project_id = project_id + self.project_url = project_url + self.column_name = column_name + self.previous_column_name = previous_column_name + } + public enum CodingKeys: String, CodingKey { + case id + case url + case project_id + case project_url + case column_name + case previous_column_name + } + } + /// - Remark: Generated from `#/components/schemas/added-to-project-issue-event/project_card`. + public var project_card: Components.Schemas.added_to_project_issue_event.project_cardPayload? + /// Creates a new `added_to_project_issue_event`. + /// + /// - Parameters: + /// - id: + /// - node_id: + /// - url: + /// - actor: + /// - event: + /// - commit_id: + /// - commit_url: + /// - created_at: + /// - performed_via_github_app: + /// - project_card: + public init( + id: Swift.Int, + node_id: Swift.String, + url: Swift.String, + actor: Components.Schemas.simple_user, + event: Swift.String, + commit_id: Swift.String, + commit_url: Swift.String, + created_at: Swift.String, + performed_via_github_app: Components.Schemas.nullable_integration, + project_card: Components.Schemas.added_to_project_issue_event.project_cardPayload? = nil + ) { + self.id = id + self.node_id = node_id + self.url = url + self.actor = actor + self.event = event + self.commit_id = commit_id + self.commit_url = commit_url + self.created_at = created_at + self.performed_via_github_app = performed_via_github_app + self.project_card = project_card + } + public enum CodingKeys: String, CodingKey { + case id + case node_id + case url + case actor + case event + case commit_id + case commit_url + case created_at + case performed_via_github_app + case project_card + } + } + /// Moved Column in Project Issue Event + /// + /// - Remark: Generated from `#/components/schemas/moved-column-in-project-issue-event`. + public struct moved_column_in_project_issue_event: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/moved-column-in-project-issue-event/id`. + public var id: Swift.Int + /// - Remark: Generated from `#/components/schemas/moved-column-in-project-issue-event/node_id`. + public var node_id: Swift.String + /// - Remark: Generated from `#/components/schemas/moved-column-in-project-issue-event/url`. + public var url: Swift.String + /// - Remark: Generated from `#/components/schemas/moved-column-in-project-issue-event/actor`. + public var actor: Components.Schemas.simple_user + /// - Remark: Generated from `#/components/schemas/moved-column-in-project-issue-event/event`. + public var event: Swift.String + /// - Remark: Generated from `#/components/schemas/moved-column-in-project-issue-event/commit_id`. + public var commit_id: Swift.String + /// - Remark: Generated from `#/components/schemas/moved-column-in-project-issue-event/commit_url`. + public var commit_url: Swift.String + /// - Remark: Generated from `#/components/schemas/moved-column-in-project-issue-event/created_at`. + public var created_at: Swift.String + /// - Remark: Generated from `#/components/schemas/moved-column-in-project-issue-event/performed_via_github_app`. + public var performed_via_github_app: Components.Schemas.nullable_integration + /// - Remark: Generated from `#/components/schemas/moved-column-in-project-issue-event/project_card`. + public struct project_cardPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/moved-column-in-project-issue-event/project_card/id`. + public var id: Swift.Int + /// - Remark: Generated from `#/components/schemas/moved-column-in-project-issue-event/project_card/url`. + public var url: Swift.String + /// - Remark: Generated from `#/components/schemas/moved-column-in-project-issue-event/project_card/project_id`. + public var project_id: Swift.Int + /// - Remark: Generated from `#/components/schemas/moved-column-in-project-issue-event/project_card/project_url`. + public var project_url: Swift.String + /// - Remark: Generated from `#/components/schemas/moved-column-in-project-issue-event/project_card/column_name`. + public var column_name: Swift.String + /// - Remark: Generated from `#/components/schemas/moved-column-in-project-issue-event/project_card/previous_column_name`. + public var previous_column_name: Swift.String? + /// Creates a new `project_cardPayload`. + /// + /// - Parameters: + /// - id: + /// - url: + /// - project_id: + /// - project_url: + /// - column_name: + /// - previous_column_name: + public init( + id: Swift.Int, + url: Swift.String, + project_id: Swift.Int, + project_url: Swift.String, + column_name: Swift.String, + previous_column_name: Swift.String? = nil + ) { + self.id = id + self.url = url + self.project_id = project_id + self.project_url = project_url + self.column_name = column_name + self.previous_column_name = previous_column_name + } + public enum CodingKeys: String, CodingKey { + case id + case url + case project_id + case project_url + case column_name + case previous_column_name + } + } + /// - Remark: Generated from `#/components/schemas/moved-column-in-project-issue-event/project_card`. + public var project_card: Components.Schemas.moved_column_in_project_issue_event.project_cardPayload? + /// Creates a new `moved_column_in_project_issue_event`. + /// + /// - Parameters: + /// - id: + /// - node_id: + /// - url: + /// - actor: + /// - event: + /// - commit_id: + /// - commit_url: + /// - created_at: + /// - performed_via_github_app: + /// - project_card: + public init( + id: Swift.Int, + node_id: Swift.String, + url: Swift.String, + actor: Components.Schemas.simple_user, + event: Swift.String, + commit_id: Swift.String, + commit_url: Swift.String, + created_at: Swift.String, + performed_via_github_app: Components.Schemas.nullable_integration, + project_card: Components.Schemas.moved_column_in_project_issue_event.project_cardPayload? = nil + ) { + self.id = id + self.node_id = node_id + self.url = url + self.actor = actor + self.event = event + self.commit_id = commit_id + self.commit_url = commit_url + self.created_at = created_at + self.performed_via_github_app = performed_via_github_app + self.project_card = project_card + } + public enum CodingKeys: String, CodingKey { + case id + case node_id + case url + case actor + case event + case commit_id + case commit_url + case created_at + case performed_via_github_app + case project_card + } + } + /// Removed from Project Issue Event + /// + /// - Remark: Generated from `#/components/schemas/removed-from-project-issue-event`. + public struct removed_from_project_issue_event: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/removed-from-project-issue-event/id`. + public var id: Swift.Int + /// - Remark: Generated from `#/components/schemas/removed-from-project-issue-event/node_id`. + public var node_id: Swift.String + /// - Remark: Generated from `#/components/schemas/removed-from-project-issue-event/url`. + public var url: Swift.String + /// - Remark: Generated from `#/components/schemas/removed-from-project-issue-event/actor`. + public var actor: Components.Schemas.simple_user + /// - Remark: Generated from `#/components/schemas/removed-from-project-issue-event/event`. + public var event: Swift.String + /// - Remark: Generated from `#/components/schemas/removed-from-project-issue-event/commit_id`. + public var commit_id: Swift.String + /// - Remark: Generated from `#/components/schemas/removed-from-project-issue-event/commit_url`. + public var commit_url: Swift.String + /// - Remark: Generated from `#/components/schemas/removed-from-project-issue-event/created_at`. + public var created_at: Swift.String + /// - Remark: Generated from `#/components/schemas/removed-from-project-issue-event/performed_via_github_app`. + public var performed_via_github_app: Components.Schemas.nullable_integration + /// - Remark: Generated from `#/components/schemas/removed-from-project-issue-event/project_card`. + public struct project_cardPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/removed-from-project-issue-event/project_card/id`. + public var id: Swift.Int + /// - Remark: Generated from `#/components/schemas/removed-from-project-issue-event/project_card/url`. + public var url: Swift.String + /// - Remark: Generated from `#/components/schemas/removed-from-project-issue-event/project_card/project_id`. + public var project_id: Swift.Int + /// - Remark: Generated from `#/components/schemas/removed-from-project-issue-event/project_card/project_url`. + public var project_url: Swift.String + /// - Remark: Generated from `#/components/schemas/removed-from-project-issue-event/project_card/column_name`. + public var column_name: Swift.String + /// - Remark: Generated from `#/components/schemas/removed-from-project-issue-event/project_card/previous_column_name`. + public var previous_column_name: Swift.String? + /// Creates a new `project_cardPayload`. + /// + /// - Parameters: + /// - id: + /// - url: + /// - project_id: + /// - project_url: + /// - column_name: + /// - previous_column_name: + public init( + id: Swift.Int, + url: Swift.String, + project_id: Swift.Int, + project_url: Swift.String, + column_name: Swift.String, + previous_column_name: Swift.String? = nil + ) { + self.id = id + self.url = url + self.project_id = project_id + self.project_url = project_url + self.column_name = column_name + self.previous_column_name = previous_column_name + } + public enum CodingKeys: String, CodingKey { + case id + case url + case project_id + case project_url + case column_name + case previous_column_name + } + } + /// - Remark: Generated from `#/components/schemas/removed-from-project-issue-event/project_card`. + public var project_card: Components.Schemas.removed_from_project_issue_event.project_cardPayload? + /// Creates a new `removed_from_project_issue_event`. + /// + /// - Parameters: + /// - id: + /// - node_id: + /// - url: + /// - actor: + /// - event: + /// - commit_id: + /// - commit_url: + /// - created_at: + /// - performed_via_github_app: + /// - project_card: + public init( + id: Swift.Int, + node_id: Swift.String, + url: Swift.String, + actor: Components.Schemas.simple_user, + event: Swift.String, + commit_id: Swift.String, + commit_url: Swift.String, + created_at: Swift.String, + performed_via_github_app: Components.Schemas.nullable_integration, + project_card: Components.Schemas.removed_from_project_issue_event.project_cardPayload? = nil + ) { + self.id = id + self.node_id = node_id + self.url = url + self.actor = actor + self.event = event + self.commit_id = commit_id + self.commit_url = commit_url + self.created_at = created_at + self.performed_via_github_app = performed_via_github_app + self.project_card = project_card + } + public enum CodingKeys: String, CodingKey { + case id + case node_id + case url + case actor + case event + case commit_id + case commit_url + case created_at + case performed_via_github_app + case project_card + } + } + /// Converted Note to Issue Issue Event + /// + /// - Remark: Generated from `#/components/schemas/converted-note-to-issue-issue-event`. + public struct converted_note_to_issue_issue_event: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/converted-note-to-issue-issue-event/id`. + public var id: Swift.Int + /// - Remark: Generated from `#/components/schemas/converted-note-to-issue-issue-event/node_id`. + public var node_id: Swift.String + /// - Remark: Generated from `#/components/schemas/converted-note-to-issue-issue-event/url`. + public var url: Swift.String + /// - Remark: Generated from `#/components/schemas/converted-note-to-issue-issue-event/actor`. + public var actor: Components.Schemas.simple_user + /// - Remark: Generated from `#/components/schemas/converted-note-to-issue-issue-event/event`. + public var event: Swift.String + /// - Remark: Generated from `#/components/schemas/converted-note-to-issue-issue-event/commit_id`. + public var commit_id: Swift.String + /// - Remark: Generated from `#/components/schemas/converted-note-to-issue-issue-event/commit_url`. + public var commit_url: Swift.String + /// - Remark: Generated from `#/components/schemas/converted-note-to-issue-issue-event/created_at`. + public var created_at: Swift.String + /// - Remark: Generated from `#/components/schemas/converted-note-to-issue-issue-event/performed_via_github_app`. + public var performed_via_github_app: Components.Schemas.integration + /// - Remark: Generated from `#/components/schemas/converted-note-to-issue-issue-event/project_card`. + public struct project_cardPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/converted-note-to-issue-issue-event/project_card/id`. + public var id: Swift.Int + /// - Remark: Generated from `#/components/schemas/converted-note-to-issue-issue-event/project_card/url`. + public var url: Swift.String + /// - Remark: Generated from `#/components/schemas/converted-note-to-issue-issue-event/project_card/project_id`. + public var project_id: Swift.Int + /// - Remark: Generated from `#/components/schemas/converted-note-to-issue-issue-event/project_card/project_url`. + public var project_url: Swift.String + /// - Remark: Generated from `#/components/schemas/converted-note-to-issue-issue-event/project_card/column_name`. + public var column_name: Swift.String + /// - Remark: Generated from `#/components/schemas/converted-note-to-issue-issue-event/project_card/previous_column_name`. + public var previous_column_name: Swift.String? + /// Creates a new `project_cardPayload`. + /// + /// - Parameters: + /// - id: + /// - url: + /// - project_id: + /// - project_url: + /// - column_name: + /// - previous_column_name: + public init( + id: Swift.Int, + url: Swift.String, + project_id: Swift.Int, + project_url: Swift.String, + column_name: Swift.String, + previous_column_name: Swift.String? = nil + ) { + self.id = id + self.url = url + self.project_id = project_id + self.project_url = project_url + self.column_name = column_name + self.previous_column_name = previous_column_name + } + public enum CodingKeys: String, CodingKey { + case id + case url + case project_id + case project_url + case column_name + case previous_column_name + } + } + /// - Remark: Generated from `#/components/schemas/converted-note-to-issue-issue-event/project_card`. + public var project_card: Components.Schemas.converted_note_to_issue_issue_event.project_cardPayload? + /// Creates a new `converted_note_to_issue_issue_event`. + /// + /// - Parameters: + /// - id: + /// - node_id: + /// - url: + /// - actor: + /// - event: + /// - commit_id: + /// - commit_url: + /// - created_at: + /// - performed_via_github_app: + /// - project_card: + public init( + id: Swift.Int, + node_id: Swift.String, + url: Swift.String, + actor: Components.Schemas.simple_user, + event: Swift.String, + commit_id: Swift.String, + commit_url: Swift.String, + created_at: Swift.String, + performed_via_github_app: Components.Schemas.integration, + project_card: Components.Schemas.converted_note_to_issue_issue_event.project_cardPayload? = nil + ) { + self.id = id + self.node_id = node_id + self.url = url + self.actor = actor + self.event = event + self.commit_id = commit_id + self.commit_url = commit_url + self.created_at = created_at + self.performed_via_github_app = performed_via_github_app + self.project_card = project_card + } + public enum CodingKeys: String, CodingKey { + case id + case node_id + case url + case actor + case event + case commit_id + case commit_url + case created_at + case performed_via_github_app + case project_card + } + } + /// Issue Event for Issue + /// + /// - Remark: Generated from `#/components/schemas/issue-event-for-issue`. + public struct issue_event_for_issue: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/issue-event-for-issue/value1`. + public var value1: Components.Schemas.labeled_issue_event? + /// - Remark: Generated from `#/components/schemas/issue-event-for-issue/value2`. + public var value2: Components.Schemas.unlabeled_issue_event? + /// - Remark: Generated from `#/components/schemas/issue-event-for-issue/value3`. + public var value3: Components.Schemas.assigned_issue_event? + /// - Remark: Generated from `#/components/schemas/issue-event-for-issue/value4`. + public var value4: Components.Schemas.unassigned_issue_event? + /// - Remark: Generated from `#/components/schemas/issue-event-for-issue/value5`. + public var value5: Components.Schemas.milestoned_issue_event? + /// - Remark: Generated from `#/components/schemas/issue-event-for-issue/value6`. + public var value6: Components.Schemas.demilestoned_issue_event? + /// - Remark: Generated from `#/components/schemas/issue-event-for-issue/value7`. + public var value7: Components.Schemas.renamed_issue_event? + /// - Remark: Generated from `#/components/schemas/issue-event-for-issue/value8`. + public var value8: Components.Schemas.review_requested_issue_event? + /// - Remark: Generated from `#/components/schemas/issue-event-for-issue/value9`. + public var value9: Components.Schemas.review_request_removed_issue_event? + /// - Remark: Generated from `#/components/schemas/issue-event-for-issue/value10`. + public var value10: Components.Schemas.review_dismissed_issue_event? + /// - Remark: Generated from `#/components/schemas/issue-event-for-issue/value11`. + public var value11: Components.Schemas.locked_issue_event? + /// - Remark: Generated from `#/components/schemas/issue-event-for-issue/value12`. + public var value12: Components.Schemas.added_to_project_issue_event? + /// - Remark: Generated from `#/components/schemas/issue-event-for-issue/value13`. + public var value13: Components.Schemas.moved_column_in_project_issue_event? + /// - Remark: Generated from `#/components/schemas/issue-event-for-issue/value14`. + public var value14: Components.Schemas.removed_from_project_issue_event? + /// - Remark: Generated from `#/components/schemas/issue-event-for-issue/value15`. + public var value15: Components.Schemas.converted_note_to_issue_issue_event? + /// Creates a new `issue_event_for_issue`. + /// + /// - Parameters: + /// - value1: + /// - value2: + /// - value3: + /// - value4: + /// - value5: + /// - value6: + /// - value7: + /// - value8: + /// - value9: + /// - value10: + /// - value11: + /// - value12: + /// - value13: + /// - value14: + /// - value15: + public init( + value1: Components.Schemas.labeled_issue_event? = nil, + value2: Components.Schemas.unlabeled_issue_event? = nil, + value3: Components.Schemas.assigned_issue_event? = nil, + value4: Components.Schemas.unassigned_issue_event? = nil, + value5: Components.Schemas.milestoned_issue_event? = nil, + value6: Components.Schemas.demilestoned_issue_event? = nil, + value7: Components.Schemas.renamed_issue_event? = nil, + value8: Components.Schemas.review_requested_issue_event? = nil, + value9: Components.Schemas.review_request_removed_issue_event? = nil, + value10: Components.Schemas.review_dismissed_issue_event? = nil, + value11: Components.Schemas.locked_issue_event? = nil, + value12: Components.Schemas.added_to_project_issue_event? = nil, + value13: Components.Schemas.moved_column_in_project_issue_event? = nil, + value14: Components.Schemas.removed_from_project_issue_event? = nil, + value15: Components.Schemas.converted_note_to_issue_issue_event? = nil + ) { + self.value1 = value1 + self.value2 = value2 + self.value3 = value3 + self.value4 = value4 + self.value5 = value5 + self.value6 = value6 + self.value7 = value7 + self.value8 = value8 + self.value9 = value9 + self.value10 = value10 + self.value11 = value11 + self.value12 = value12 + self.value13 = value13 + self.value14 = value14 + self.value15 = value15 + } + public init(from decoder: any Decoder) throws { + value1 = try? .init(from: decoder) + value2 = try? .init(from: decoder) + value3 = try? .init(from: decoder) + value4 = try? .init(from: decoder) + value5 = try? .init(from: decoder) + value6 = try? .init(from: decoder) + value7 = try? .init(from: decoder) + value8 = try? .init(from: decoder) + value9 = try? .init(from: decoder) + value10 = try? .init(from: decoder) + value11 = try? .init(from: decoder) + value12 = try? .init(from: decoder) + value13 = try? .init(from: decoder) + value14 = try? .init(from: decoder) + value15 = try? .init(from: decoder) + try DecodingError.verifyAtLeastOneSchemaIsNotNil( + [ + value1, value2, value3, value4, value5, value6, value7, value8, value9, value10, value11, + value12, value13, value14, value15, + ], + type: Self.self, + codingPath: decoder.codingPath + ) + } + public func encode(to encoder: any Encoder) throws { + try value1?.encode(to: encoder) + try value2?.encode(to: encoder) + try value3?.encode(to: encoder) + try value4?.encode(to: encoder) + try value5?.encode(to: encoder) + try value6?.encode(to: encoder) + try value7?.encode(to: encoder) + try value8?.encode(to: encoder) + try value9?.encode(to: encoder) + try value10?.encode(to: encoder) + try value11?.encode(to: encoder) + try value12?.encode(to: encoder) + try value13?.encode(to: encoder) + try value14?.encode(to: encoder) + try value15?.encode(to: encoder) + } + } + /// Color-coded labels help you categorize and filter your issues (just like labels in Gmail). + /// + /// - Remark: Generated from `#/components/schemas/label`. + public struct label: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/label/id`. + public var id: Swift.Int64 + /// - Remark: Generated from `#/components/schemas/label/node_id`. + public var node_id: Swift.String + /// URL for the label + /// + /// - Remark: Generated from `#/components/schemas/label/url`. + public var url: Swift.String + /// The name of the label. + /// + /// - Remark: Generated from `#/components/schemas/label/name`. + public var name: Swift.String + /// - Remark: Generated from `#/components/schemas/label/description`. + public var description: Swift.String? + /// 6-character hex code, without the leading #, identifying the color + /// + /// - Remark: Generated from `#/components/schemas/label/color`. + public var color: Swift.String + /// - Remark: Generated from `#/components/schemas/label/default`. + public var _default: Swift.Bool + /// Creates a new `label`. + /// + /// - Parameters: + /// - id: + /// - node_id: + /// - url: URL for the label + /// - name: The name of the label. + /// - description: + /// - color: 6-character hex code, without the leading #, identifying the color + /// - _default: + public init( + id: Swift.Int64, + node_id: Swift.String, + url: Swift.String, + name: Swift.String, + description: Swift.String? = nil, + color: Swift.String, + _default: Swift.Bool + ) { + self.id = id + self.node_id = node_id + self.url = url + self.name = name + self.description = description + self.color = color + self._default = _default + } + public enum CodingKeys: String, CodingKey { + case id + case node_id + case url + case name + case description + case color + case _default = "default" + } + } + /// Timeline Comment Event + /// + /// - Remark: Generated from `#/components/schemas/timeline-comment-event`. + public struct timeline_comment_event: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/timeline-comment-event/event`. + public var event: Swift.String + /// - Remark: Generated from `#/components/schemas/timeline-comment-event/actor`. + public var actor: Components.Schemas.simple_user + /// Unique identifier of the issue comment + /// + /// - Remark: Generated from `#/components/schemas/timeline-comment-event/id`. + public var id: Swift.Int + /// - Remark: Generated from `#/components/schemas/timeline-comment-event/node_id`. + public var node_id: Swift.String + /// URL for the issue comment + /// + /// - Remark: Generated from `#/components/schemas/timeline-comment-event/url`. + public var url: Swift.String + /// Contents of the issue comment + /// + /// - Remark: Generated from `#/components/schemas/timeline-comment-event/body`. + public var body: Swift.String? + /// - Remark: Generated from `#/components/schemas/timeline-comment-event/body_text`. + public var body_text: Swift.String? + /// - Remark: Generated from `#/components/schemas/timeline-comment-event/body_html`. + public var body_html: Swift.String? + /// - Remark: Generated from `#/components/schemas/timeline-comment-event/html_url`. + public var html_url: Swift.String + /// - Remark: Generated from `#/components/schemas/timeline-comment-event/user`. + public var user: Components.Schemas.simple_user + /// - Remark: Generated from `#/components/schemas/timeline-comment-event/created_at`. + public var created_at: Foundation.Date + /// - Remark: Generated from `#/components/schemas/timeline-comment-event/updated_at`. + public var updated_at: Foundation.Date + /// - Remark: Generated from `#/components/schemas/timeline-comment-event/issue_url`. + public var issue_url: Swift.String + /// - Remark: Generated from `#/components/schemas/timeline-comment-event/author_association`. + public var author_association: Components.Schemas.author_association + /// - Remark: Generated from `#/components/schemas/timeline-comment-event/performed_via_github_app`. + public var performed_via_github_app: Components.Schemas.nullable_integration? + /// - Remark: Generated from `#/components/schemas/timeline-comment-event/reactions`. + public var reactions: Components.Schemas.reaction_rollup? + /// Creates a new `timeline_comment_event`. + /// + /// - Parameters: + /// - event: + /// - actor: + /// - id: Unique identifier of the issue comment + /// - node_id: + /// - url: URL for the issue comment + /// - body: Contents of the issue comment + /// - body_text: + /// - body_html: + /// - html_url: + /// - user: + /// - created_at: + /// - updated_at: + /// - issue_url: + /// - author_association: + /// - performed_via_github_app: + /// - reactions: + public init( + event: Swift.String, + actor: Components.Schemas.simple_user, + id: Swift.Int, + node_id: Swift.String, + url: Swift.String, + body: Swift.String? = nil, + body_text: Swift.String? = nil, + body_html: Swift.String? = nil, + html_url: Swift.String, + user: Components.Schemas.simple_user, + created_at: Foundation.Date, + updated_at: Foundation.Date, + issue_url: Swift.String, + author_association: Components.Schemas.author_association, + performed_via_github_app: Components.Schemas.nullable_integration? = nil, + reactions: Components.Schemas.reaction_rollup? = nil + ) { + self.event = event + self.actor = actor + self.id = id + self.node_id = node_id + self.url = url + self.body = body + self.body_text = body_text + self.body_html = body_html + self.html_url = html_url + self.user = user + self.created_at = created_at + self.updated_at = updated_at + self.issue_url = issue_url + self.author_association = author_association + self.performed_via_github_app = performed_via_github_app + self.reactions = reactions + } + public enum CodingKeys: String, CodingKey { + case event + case actor + case id + case node_id + case url + case body + case body_text + case body_html + case html_url + case user + case created_at + case updated_at + case issue_url + case author_association + case performed_via_github_app + case reactions + } + } + /// Timeline Cross Referenced Event + /// + /// - Remark: Generated from `#/components/schemas/timeline-cross-referenced-event`. + public struct timeline_cross_referenced_event: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/timeline-cross-referenced-event/event`. + public var event: Swift.String + /// - Remark: Generated from `#/components/schemas/timeline-cross-referenced-event/actor`. + public var actor: Components.Schemas.simple_user? + /// - Remark: Generated from `#/components/schemas/timeline-cross-referenced-event/created_at`. + public var created_at: Foundation.Date + /// - Remark: Generated from `#/components/schemas/timeline-cross-referenced-event/updated_at`. + public var updated_at: Foundation.Date + /// - Remark: Generated from `#/components/schemas/timeline-cross-referenced-event/source`. + public struct sourcePayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/timeline-cross-referenced-event/source/type`. + public var _type: Swift.String? + /// - Remark: Generated from `#/components/schemas/timeline-cross-referenced-event/source/issue`. + public var issue: Components.Schemas.issue? + /// Creates a new `sourcePayload`. + /// + /// - Parameters: + /// - _type: + /// - issue: + public init(_type: Swift.String? = nil, issue: Components.Schemas.issue? = nil) { + self._type = _type + self.issue = issue + } + public enum CodingKeys: String, CodingKey { + case _type = "type" + case issue + } + } + /// - Remark: Generated from `#/components/schemas/timeline-cross-referenced-event/source`. + public var source: Components.Schemas.timeline_cross_referenced_event.sourcePayload + /// Creates a new `timeline_cross_referenced_event`. + /// + /// - Parameters: + /// - event: + /// - actor: + /// - created_at: + /// - updated_at: + /// - source: + public init( + event: Swift.String, + actor: Components.Schemas.simple_user? = nil, + created_at: Foundation.Date, + updated_at: Foundation.Date, + source: Components.Schemas.timeline_cross_referenced_event.sourcePayload + ) { + self.event = event + self.actor = actor + self.created_at = created_at + self.updated_at = updated_at + self.source = source + } + public enum CodingKeys: String, CodingKey { + case event + case actor + case created_at + case updated_at + case source + } + } + /// Timeline Committed Event + /// + /// - Remark: Generated from `#/components/schemas/timeline-committed-event`. + public struct timeline_committed_event: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/timeline-committed-event/event`. + public var event: Swift.String? + /// SHA for the commit + /// + /// - Remark: Generated from `#/components/schemas/timeline-committed-event/sha`. + public var sha: Swift.String + /// - Remark: Generated from `#/components/schemas/timeline-committed-event/node_id`. + public var node_id: Swift.String + /// - Remark: Generated from `#/components/schemas/timeline-committed-event/url`. + public var url: Swift.String + /// Identifying information for the git-user + /// + /// - Remark: Generated from `#/components/schemas/timeline-committed-event/author`. + public struct authorPayload: Codable, Hashable, Sendable { + /// Timestamp of the commit + /// + /// - Remark: Generated from `#/components/schemas/timeline-committed-event/author/date`. + public var date: Foundation.Date + /// Git email address of the user + /// + /// - Remark: Generated from `#/components/schemas/timeline-committed-event/author/email`. + public var email: Swift.String + /// Name of the git user + /// + /// - Remark: Generated from `#/components/schemas/timeline-committed-event/author/name`. + public var name: Swift.String + /// Creates a new `authorPayload`. + /// + /// - Parameters: + /// - date: Timestamp of the commit + /// - email: Git email address of the user + /// - name: Name of the git user + public init(date: Foundation.Date, email: Swift.String, name: Swift.String) { + self.date = date + self.email = email + self.name = name + } + public enum CodingKeys: String, CodingKey { + case date + case email + case name + } + } + /// Identifying information for the git-user + /// + /// - Remark: Generated from `#/components/schemas/timeline-committed-event/author`. + public var author: Components.Schemas.timeline_committed_event.authorPayload + /// Identifying information for the git-user + /// + /// - Remark: Generated from `#/components/schemas/timeline-committed-event/committer`. + public struct committerPayload: Codable, Hashable, Sendable { + /// Timestamp of the commit + /// + /// - Remark: Generated from `#/components/schemas/timeline-committed-event/committer/date`. + public var date: Foundation.Date + /// Git email address of the user + /// + /// - Remark: Generated from `#/components/schemas/timeline-committed-event/committer/email`. + public var email: Swift.String + /// Name of the git user + /// + /// - Remark: Generated from `#/components/schemas/timeline-committed-event/committer/name`. + public var name: Swift.String + /// Creates a new `committerPayload`. + /// + /// - Parameters: + /// - date: Timestamp of the commit + /// - email: Git email address of the user + /// - name: Name of the git user + public init(date: Foundation.Date, email: Swift.String, name: Swift.String) { + self.date = date + self.email = email + self.name = name + } + public enum CodingKeys: String, CodingKey { + case date + case email + case name + } + } + /// Identifying information for the git-user + /// + /// - Remark: Generated from `#/components/schemas/timeline-committed-event/committer`. + public var committer: Components.Schemas.timeline_committed_event.committerPayload + /// Message describing the purpose of the commit + /// + /// - Remark: Generated from `#/components/schemas/timeline-committed-event/message`. + public var message: Swift.String + /// - Remark: Generated from `#/components/schemas/timeline-committed-event/tree`. + public struct treePayload: Codable, Hashable, Sendable { + /// SHA for the commit + /// + /// - Remark: Generated from `#/components/schemas/timeline-committed-event/tree/sha`. + public var sha: Swift.String + /// - Remark: Generated from `#/components/schemas/timeline-committed-event/tree/url`. + public var url: Swift.String + /// Creates a new `treePayload`. + /// + /// - Parameters: + /// - sha: SHA for the commit + /// - url: + public init(sha: Swift.String, url: Swift.String) { + self.sha = sha + self.url = url + } + public enum CodingKeys: String, CodingKey { + case sha + case url + } + } + /// - Remark: Generated from `#/components/schemas/timeline-committed-event/tree`. + public var tree: Components.Schemas.timeline_committed_event.treePayload + /// - Remark: Generated from `#/components/schemas/timeline-committed-event/parentsPayload`. + public struct parentsPayloadPayload: Codable, Hashable, Sendable { + /// SHA for the commit + /// + /// - Remark: Generated from `#/components/schemas/timeline-committed-event/parentsPayload/sha`. + public var sha: Swift.String + /// - Remark: Generated from `#/components/schemas/timeline-committed-event/parentsPayload/url`. + public var url: Swift.String + /// - Remark: Generated from `#/components/schemas/timeline-committed-event/parentsPayload/html_url`. + public var html_url: Swift.String + /// Creates a new `parentsPayloadPayload`. + /// + /// - Parameters: + /// - sha: SHA for the commit + /// - url: + /// - html_url: + public init(sha: Swift.String, url: Swift.String, html_url: Swift.String) { + self.sha = sha + self.url = url + self.html_url = html_url + } + public enum CodingKeys: String, CodingKey { + case sha + case url + case html_url + } + } + /// - Remark: Generated from `#/components/schemas/timeline-committed-event/parents`. + public typealias parentsPayload = [Components.Schemas.timeline_committed_event.parentsPayloadPayload] + /// - Remark: Generated from `#/components/schemas/timeline-committed-event/parents`. + public var parents: Components.Schemas.timeline_committed_event.parentsPayload + /// - Remark: Generated from `#/components/schemas/timeline-committed-event/verification`. + public struct verificationPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/timeline-committed-event/verification/verified`. + public var verified: Swift.Bool + /// - Remark: Generated from `#/components/schemas/timeline-committed-event/verification/reason`. + public var reason: Swift.String + /// - Remark: Generated from `#/components/schemas/timeline-committed-event/verification/signature`. + public var signature: Swift.String + /// - Remark: Generated from `#/components/schemas/timeline-committed-event/verification/payload`. + public var payload: Swift.String + /// Creates a new `verificationPayload`. + /// + /// - Parameters: + /// - verified: + /// - reason: + /// - signature: + /// - payload: + public init(verified: Swift.Bool, reason: Swift.String, signature: Swift.String, payload: Swift.String) + { + self.verified = verified + self.reason = reason + self.signature = signature + self.payload = payload + } + public enum CodingKeys: String, CodingKey { + case verified + case reason + case signature + case payload + } + } + /// - Remark: Generated from `#/components/schemas/timeline-committed-event/verification`. + public var verification: Components.Schemas.timeline_committed_event.verificationPayload + /// - Remark: Generated from `#/components/schemas/timeline-committed-event/html_url`. + public var html_url: Swift.String + /// Creates a new `timeline_committed_event`. + /// + /// - Parameters: + /// - event: + /// - sha: SHA for the commit + /// - node_id: + /// - url: + /// - author: Identifying information for the git-user + /// - committer: Identifying information for the git-user + /// - message: Message describing the purpose of the commit + /// - tree: + /// - parents: + /// - verification: + /// - html_url: + public init( + event: Swift.String? = nil, + sha: Swift.String, + node_id: Swift.String, + url: Swift.String, + author: Components.Schemas.timeline_committed_event.authorPayload, + committer: Components.Schemas.timeline_committed_event.committerPayload, + message: Swift.String, + tree: Components.Schemas.timeline_committed_event.treePayload, + parents: Components.Schemas.timeline_committed_event.parentsPayload, + verification: Components.Schemas.timeline_committed_event.verificationPayload, + html_url: Swift.String + ) { + self.event = event + self.sha = sha + self.node_id = node_id + self.url = url + self.author = author + self.committer = committer + self.message = message + self.tree = tree + self.parents = parents + self.verification = verification + self.html_url = html_url + } + public enum CodingKeys: String, CodingKey { + case event + case sha + case node_id + case url + case author + case committer + case message + case tree + case parents + case verification + case html_url + } + } + /// Timeline Reviewed Event + /// + /// - Remark: Generated from `#/components/schemas/timeline-reviewed-event`. + public struct timeline_reviewed_event: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/timeline-reviewed-event/event`. + public var event: Swift.String + /// Unique identifier of the review + /// + /// - Remark: Generated from `#/components/schemas/timeline-reviewed-event/id`. + public var id: Swift.Int + /// - Remark: Generated from `#/components/schemas/timeline-reviewed-event/node_id`. + public var node_id: Swift.String + /// - Remark: Generated from `#/components/schemas/timeline-reviewed-event/user`. + public var user: Components.Schemas.simple_user + /// The text of the review. + /// + /// - Remark: Generated from `#/components/schemas/timeline-reviewed-event/body`. + public var body: Swift.String + /// - Remark: Generated from `#/components/schemas/timeline-reviewed-event/state`. + public var state: Swift.String + /// - Remark: Generated from `#/components/schemas/timeline-reviewed-event/html_url`. + public var html_url: Swift.String + /// - Remark: Generated from `#/components/schemas/timeline-reviewed-event/pull_request_url`. + public var pull_request_url: Swift.String + /// - Remark: Generated from `#/components/schemas/timeline-reviewed-event/_links`. + public struct _linksPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/timeline-reviewed-event/_links/html`. + public struct htmlPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/timeline-reviewed-event/_links/html/href`. + public var href: Swift.String + /// Creates a new `htmlPayload`. + /// + /// - Parameters: + /// - href: + public init(href: Swift.String) { self.href = href } + public enum CodingKeys: String, CodingKey { case href } + } + /// - Remark: Generated from `#/components/schemas/timeline-reviewed-event/_links/html`. + public var html: Components.Schemas.timeline_reviewed_event._linksPayload.htmlPayload + /// - Remark: Generated from `#/components/schemas/timeline-reviewed-event/_links/pull_request`. + public struct pull_requestPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/timeline-reviewed-event/_links/pull_request/href`. + public var href: Swift.String + /// Creates a new `pull_requestPayload`. + /// + /// - Parameters: + /// - href: + public init(href: Swift.String) { self.href = href } + public enum CodingKeys: String, CodingKey { case href } + } + /// - Remark: Generated from `#/components/schemas/timeline-reviewed-event/_links/pull_request`. + public var pull_request: Components.Schemas.timeline_reviewed_event._linksPayload.pull_requestPayload + /// Creates a new `_linksPayload`. + /// + /// - Parameters: + /// - html: + /// - pull_request: + public init( + html: Components.Schemas.timeline_reviewed_event._linksPayload.htmlPayload, + pull_request: Components.Schemas.timeline_reviewed_event._linksPayload.pull_requestPayload + ) { + self.html = html + self.pull_request = pull_request + } + public enum CodingKeys: String, CodingKey { + case html + case pull_request + } + } + /// - Remark: Generated from `#/components/schemas/timeline-reviewed-event/_links`. + public var _links: Components.Schemas.timeline_reviewed_event._linksPayload + /// - Remark: Generated from `#/components/schemas/timeline-reviewed-event/submitted_at`. + public var submitted_at: Foundation.Date? + /// A commit SHA for the review. + /// + /// - Remark: Generated from `#/components/schemas/timeline-reviewed-event/commit_id`. + public var commit_id: Swift.String + /// - Remark: Generated from `#/components/schemas/timeline-reviewed-event/body_html`. + public var body_html: Swift.String? + /// - Remark: Generated from `#/components/schemas/timeline-reviewed-event/body_text`. + public var body_text: Swift.String? + /// - Remark: Generated from `#/components/schemas/timeline-reviewed-event/author_association`. + public var author_association: Components.Schemas.author_association + /// Creates a new `timeline_reviewed_event`. + /// + /// - Parameters: + /// - event: + /// - id: Unique identifier of the review + /// - node_id: + /// - user: + /// - body: The text of the review. + /// - state: + /// - html_url: + /// - pull_request_url: + /// - _links: + /// - submitted_at: + /// - commit_id: A commit SHA for the review. + /// - body_html: + /// - body_text: + /// - author_association: + public init( + event: Swift.String, + id: Swift.Int, + node_id: Swift.String, + user: Components.Schemas.simple_user, + body: Swift.String, + state: Swift.String, + html_url: Swift.String, + pull_request_url: Swift.String, + _links: Components.Schemas.timeline_reviewed_event._linksPayload, + submitted_at: Foundation.Date? = nil, + commit_id: Swift.String, + body_html: Swift.String? = nil, + body_text: Swift.String? = nil, + author_association: Components.Schemas.author_association ) { + self.event = event self.id = id self.node_id = node_id - self.url = url - self.name = name - self.description = description - self.color = color - self._default = _default + self.user = user + self.body = body + self.state = state + self.html_url = html_url + self.pull_request_url = pull_request_url + self._links = _links + self.submitted_at = submitted_at + self.commit_id = commit_id + self.body_html = body_html + self.body_text = body_text + self.author_association = author_association } public enum CodingKeys: String, CodingKey { + case event case id case node_id - case url - case name - case description - case color - case _default = "default" + case user + case body + case state + case html_url + case pull_request_url + case _links + case submitted_at + case commit_id + case body_html + case body_text + case author_association } } /// Pull Request Review Comments are comments on a portion of the Pull Request's diff. @@ -12672,96 +15097,567 @@ public enum Components { /// - body_html: /// - body_text: public init( - url: Swift.String, - pull_request_review_id: Swift.Int, + url: Swift.String, + pull_request_review_id: Swift.Int, + id: Swift.Int, + node_id: Swift.String, + diff_hunk: Swift.String, + path: Swift.String, + position: Swift.Int? = nil, + original_position: Swift.Int? = nil, + commit_id: Swift.String, + original_commit_id: Swift.String, + in_reply_to_id: Swift.Int? = nil, + user: Components.Schemas.simple_user, + body: Swift.String, + created_at: Foundation.Date, + updated_at: Foundation.Date, + html_url: Swift.String, + pull_request_url: Swift.String, + author_association: Components.Schemas.author_association, + _links: Components.Schemas.pull_request_review_comment._linksPayload, + start_line: Swift.Int? = nil, + original_start_line: Swift.Int? = nil, + start_side: Components.Schemas.pull_request_review_comment.start_sidePayload? = nil, + line: Swift.Int? = nil, + original_line: Swift.Int? = nil, + side: Components.Schemas.pull_request_review_comment.sidePayload? = nil, + subject_type: Components.Schemas.pull_request_review_comment.subject_typePayload? = nil, + reactions: Components.Schemas.reaction_rollup? = nil, + body_html: Swift.String? = nil, + body_text: Swift.String? = nil + ) { + self.url = url + self.pull_request_review_id = pull_request_review_id + self.id = id + self.node_id = node_id + self.diff_hunk = diff_hunk + self.path = path + self.position = position + self.original_position = original_position + self.commit_id = commit_id + self.original_commit_id = original_commit_id + self.in_reply_to_id = in_reply_to_id + self.user = user + self.body = body + self.created_at = created_at + self.updated_at = updated_at + self.html_url = html_url + self.pull_request_url = pull_request_url + self.author_association = author_association + self._links = _links + self.start_line = start_line + self.original_start_line = original_start_line + self.start_side = start_side + self.line = line + self.original_line = original_line + self.side = side + self.subject_type = subject_type + self.reactions = reactions + self.body_html = body_html + self.body_text = body_text + } + public enum CodingKeys: String, CodingKey { + case url + case pull_request_review_id + case id + case node_id + case diff_hunk + case path + case position + case original_position + case commit_id + case original_commit_id + case in_reply_to_id + case user + case body + case created_at + case updated_at + case html_url + case pull_request_url + case author_association + case _links + case start_line + case original_start_line + case start_side + case line + case original_line + case side + case subject_type + case reactions + case body_html + case body_text + } + } + /// Timeline Line Commented Event + /// + /// - Remark: Generated from `#/components/schemas/timeline-line-commented-event`. + public struct timeline_line_commented_event: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/timeline-line-commented-event/event`. + public var event: Swift.String? + /// - Remark: Generated from `#/components/schemas/timeline-line-commented-event/node_id`. + public var node_id: Swift.String? + /// - Remark: Generated from `#/components/schemas/timeline-line-commented-event/actor`. + public var actor: Components.Schemas.simple_user? + /// - Remark: Generated from `#/components/schemas/timeline-line-commented-event/comments`. + public var comments: [Components.Schemas.pull_request_review_comment]? + /// Creates a new `timeline_line_commented_event`. + /// + /// - Parameters: + /// - event: + /// - node_id: + /// - actor: + /// - comments: + public init( + event: Swift.String? = nil, + node_id: Swift.String? = nil, + actor: Components.Schemas.simple_user? = nil, + comments: [Components.Schemas.pull_request_review_comment]? = nil + ) { + self.event = event + self.node_id = node_id + self.actor = actor + self.comments = comments + } + public enum CodingKeys: String, CodingKey { + case event + case node_id + case actor + case comments + } + } + /// Timeline Commit Commented Event + /// + /// - Remark: Generated from `#/components/schemas/timeline-commit-commented-event`. + public struct timeline_commit_commented_event: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/timeline-commit-commented-event/event`. + public var event: Swift.String? + /// - Remark: Generated from `#/components/schemas/timeline-commit-commented-event/node_id`. + public var node_id: Swift.String? + /// - Remark: Generated from `#/components/schemas/timeline-commit-commented-event/commit_id`. + public var commit_id: Swift.String? + /// - Remark: Generated from `#/components/schemas/timeline-commit-commented-event/comments`. + public var comments: [Components.Schemas.commit_comment]? + /// Creates a new `timeline_commit_commented_event`. + /// + /// - Parameters: + /// - event: + /// - node_id: + /// - commit_id: + /// - comments: + public init( + event: Swift.String? = nil, + node_id: Swift.String? = nil, + commit_id: Swift.String? = nil, + comments: [Components.Schemas.commit_comment]? = nil + ) { + self.event = event + self.node_id = node_id + self.commit_id = commit_id + self.comments = comments + } + public enum CodingKeys: String, CodingKey { + case event + case node_id + case commit_id + case comments + } + } + /// Timeline Assigned Issue Event + /// + /// - Remark: Generated from `#/components/schemas/timeline-assigned-issue-event`. + public struct timeline_assigned_issue_event: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/timeline-assigned-issue-event/id`. + public var id: Swift.Int + /// - Remark: Generated from `#/components/schemas/timeline-assigned-issue-event/node_id`. + public var node_id: Swift.String + /// - Remark: Generated from `#/components/schemas/timeline-assigned-issue-event/url`. + public var url: Swift.String + /// - Remark: Generated from `#/components/schemas/timeline-assigned-issue-event/actor`. + public var actor: Components.Schemas.simple_user + /// - Remark: Generated from `#/components/schemas/timeline-assigned-issue-event/event`. + public var event: Swift.String + /// - Remark: Generated from `#/components/schemas/timeline-assigned-issue-event/commit_id`. + public var commit_id: Swift.String + /// - Remark: Generated from `#/components/schemas/timeline-assigned-issue-event/commit_url`. + public var commit_url: Swift.String + /// - Remark: Generated from `#/components/schemas/timeline-assigned-issue-event/created_at`. + public var created_at: Swift.String + /// - Remark: Generated from `#/components/schemas/timeline-assigned-issue-event/performed_via_github_app`. + public var performed_via_github_app: Components.Schemas.nullable_integration + /// - Remark: Generated from `#/components/schemas/timeline-assigned-issue-event/assignee`. + public var assignee: Components.Schemas.simple_user + /// Creates a new `timeline_assigned_issue_event`. + /// + /// - Parameters: + /// - id: + /// - node_id: + /// - url: + /// - actor: + /// - event: + /// - commit_id: + /// - commit_url: + /// - created_at: + /// - performed_via_github_app: + /// - assignee: + public init( + id: Swift.Int, + node_id: Swift.String, + url: Swift.String, + actor: Components.Schemas.simple_user, + event: Swift.String, + commit_id: Swift.String, + commit_url: Swift.String, + created_at: Swift.String, + performed_via_github_app: Components.Schemas.nullable_integration, + assignee: Components.Schemas.simple_user + ) { + self.id = id + self.node_id = node_id + self.url = url + self.actor = actor + self.event = event + self.commit_id = commit_id + self.commit_url = commit_url + self.created_at = created_at + self.performed_via_github_app = performed_via_github_app + self.assignee = assignee + } + public enum CodingKeys: String, CodingKey { + case id + case node_id + case url + case actor + case event + case commit_id + case commit_url + case created_at + case performed_via_github_app + case assignee + } + } + /// Timeline Unassigned Issue Event + /// + /// - Remark: Generated from `#/components/schemas/timeline-unassigned-issue-event`. + public struct timeline_unassigned_issue_event: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/timeline-unassigned-issue-event/id`. + public var id: Swift.Int + /// - Remark: Generated from `#/components/schemas/timeline-unassigned-issue-event/node_id`. + public var node_id: Swift.String + /// - Remark: Generated from `#/components/schemas/timeline-unassigned-issue-event/url`. + public var url: Swift.String + /// - Remark: Generated from `#/components/schemas/timeline-unassigned-issue-event/actor`. + public var actor: Components.Schemas.simple_user + /// - Remark: Generated from `#/components/schemas/timeline-unassigned-issue-event/event`. + public var event: Swift.String + /// - Remark: Generated from `#/components/schemas/timeline-unassigned-issue-event/commit_id`. + public var commit_id: Swift.String + /// - Remark: Generated from `#/components/schemas/timeline-unassigned-issue-event/commit_url`. + public var commit_url: Swift.String + /// - Remark: Generated from `#/components/schemas/timeline-unassigned-issue-event/created_at`. + public var created_at: Swift.String + /// - Remark: Generated from `#/components/schemas/timeline-unassigned-issue-event/performed_via_github_app`. + public var performed_via_github_app: Components.Schemas.nullable_integration + /// - Remark: Generated from `#/components/schemas/timeline-unassigned-issue-event/assignee`. + public var assignee: Components.Schemas.simple_user + /// Creates a new `timeline_unassigned_issue_event`. + /// + /// - Parameters: + /// - id: + /// - node_id: + /// - url: + /// - actor: + /// - event: + /// - commit_id: + /// - commit_url: + /// - created_at: + /// - performed_via_github_app: + /// - assignee: + public init( + id: Swift.Int, + node_id: Swift.String, + url: Swift.String, + actor: Components.Schemas.simple_user, + event: Swift.String, + commit_id: Swift.String, + commit_url: Swift.String, + created_at: Swift.String, + performed_via_github_app: Components.Schemas.nullable_integration, + assignee: Components.Schemas.simple_user + ) { + self.id = id + self.node_id = node_id + self.url = url + self.actor = actor + self.event = event + self.commit_id = commit_id + self.commit_url = commit_url + self.created_at = created_at + self.performed_via_github_app = performed_via_github_app + self.assignee = assignee + } + public enum CodingKeys: String, CodingKey { + case id + case node_id + case url + case actor + case event + case commit_id + case commit_url + case created_at + case performed_via_github_app + case assignee + } + } + /// State Change Issue Event + /// + /// - Remark: Generated from `#/components/schemas/state-change-issue-event`. + public struct state_change_issue_event: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/state-change-issue-event/id`. + public var id: Swift.Int + /// - Remark: Generated from `#/components/schemas/state-change-issue-event/node_id`. + public var node_id: Swift.String + /// - Remark: Generated from `#/components/schemas/state-change-issue-event/url`. + public var url: Swift.String + /// - Remark: Generated from `#/components/schemas/state-change-issue-event/actor`. + public var actor: Components.Schemas.simple_user + /// - Remark: Generated from `#/components/schemas/state-change-issue-event/event`. + public var event: Swift.String + /// - Remark: Generated from `#/components/schemas/state-change-issue-event/commit_id`. + public var commit_id: Swift.String + /// - Remark: Generated from `#/components/schemas/state-change-issue-event/commit_url`. + public var commit_url: Swift.String + /// - Remark: Generated from `#/components/schemas/state-change-issue-event/created_at`. + public var created_at: Swift.String + /// - Remark: Generated from `#/components/schemas/state-change-issue-event/performed_via_github_app`. + public var performed_via_github_app: Components.Schemas.nullable_integration + /// - Remark: Generated from `#/components/schemas/state-change-issue-event/state_reason`. + public var state_reason: Swift.String? + /// Creates a new `state_change_issue_event`. + /// + /// - Parameters: + /// - id: + /// - node_id: + /// - url: + /// - actor: + /// - event: + /// - commit_id: + /// - commit_url: + /// - created_at: + /// - performed_via_github_app: + /// - state_reason: + public init( id: Swift.Int, node_id: Swift.String, - diff_hunk: Swift.String, - path: Swift.String, - position: Swift.Int? = nil, - original_position: Swift.Int? = nil, + url: Swift.String, + actor: Components.Schemas.simple_user, + event: Swift.String, commit_id: Swift.String, - original_commit_id: Swift.String, - in_reply_to_id: Swift.Int? = nil, - user: Components.Schemas.simple_user, - body: Swift.String, - created_at: Foundation.Date, - updated_at: Foundation.Date, - html_url: Swift.String, - pull_request_url: Swift.String, - author_association: Components.Schemas.author_association, - _links: Components.Schemas.pull_request_review_comment._linksPayload, - start_line: Swift.Int? = nil, - original_start_line: Swift.Int? = nil, - start_side: Components.Schemas.pull_request_review_comment.start_sidePayload? = nil, - line: Swift.Int? = nil, - original_line: Swift.Int? = nil, - side: Components.Schemas.pull_request_review_comment.sidePayload? = nil, - subject_type: Components.Schemas.pull_request_review_comment.subject_typePayload? = nil, - reactions: Components.Schemas.reaction_rollup? = nil, - body_html: Swift.String? = nil, - body_text: Swift.String? = nil + commit_url: Swift.String, + created_at: Swift.String, + performed_via_github_app: Components.Schemas.nullable_integration, + state_reason: Swift.String? = nil ) { - self.url = url - self.pull_request_review_id = pull_request_review_id self.id = id self.node_id = node_id - self.diff_hunk = diff_hunk - self.path = path - self.position = position - self.original_position = original_position + self.url = url + self.actor = actor + self.event = event self.commit_id = commit_id - self.original_commit_id = original_commit_id - self.in_reply_to_id = in_reply_to_id - self.user = user - self.body = body + self.commit_url = commit_url self.created_at = created_at - self.updated_at = updated_at - self.html_url = html_url - self.pull_request_url = pull_request_url - self.author_association = author_association - self._links = _links - self.start_line = start_line - self.original_start_line = original_start_line - self.start_side = start_side - self.line = line - self.original_line = original_line - self.side = side - self.subject_type = subject_type - self.reactions = reactions - self.body_html = body_html - self.body_text = body_text + self.performed_via_github_app = performed_via_github_app + self.state_reason = state_reason } public enum CodingKeys: String, CodingKey { - case url - case pull_request_review_id case id case node_id - case diff_hunk - case path - case position - case original_position + case url + case actor + case event case commit_id - case original_commit_id - case in_reply_to_id - case user - case body + case commit_url case created_at - case updated_at - case html_url - case pull_request_url - case author_association - case _links - case start_line - case original_start_line - case start_side - case line - case original_line - case side - case subject_type - case reactions - case body_html - case body_text + case performed_via_github_app + case state_reason + } + } + /// Timeline Event + /// + /// - Remark: Generated from `#/components/schemas/timeline-issue-events`. + public struct timeline_issue_events: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/timeline-issue-events/value1`. + public var value1: Components.Schemas.labeled_issue_event? + /// - Remark: Generated from `#/components/schemas/timeline-issue-events/value2`. + public var value2: Components.Schemas.unlabeled_issue_event? + /// - Remark: Generated from `#/components/schemas/timeline-issue-events/value3`. + public var value3: Components.Schemas.milestoned_issue_event? + /// - Remark: Generated from `#/components/schemas/timeline-issue-events/value4`. + public var value4: Components.Schemas.demilestoned_issue_event? + /// - Remark: Generated from `#/components/schemas/timeline-issue-events/value5`. + public var value5: Components.Schemas.renamed_issue_event? + /// - Remark: Generated from `#/components/schemas/timeline-issue-events/value6`. + public var value6: Components.Schemas.review_requested_issue_event? + /// - Remark: Generated from `#/components/schemas/timeline-issue-events/value7`. + public var value7: Components.Schemas.review_request_removed_issue_event? + /// - Remark: Generated from `#/components/schemas/timeline-issue-events/value8`. + public var value8: Components.Schemas.review_dismissed_issue_event? + /// - Remark: Generated from `#/components/schemas/timeline-issue-events/value9`. + public var value9: Components.Schemas.locked_issue_event? + /// - Remark: Generated from `#/components/schemas/timeline-issue-events/value10`. + public var value10: Components.Schemas.added_to_project_issue_event? + /// - Remark: Generated from `#/components/schemas/timeline-issue-events/value11`. + public var value11: Components.Schemas.moved_column_in_project_issue_event? + /// - Remark: Generated from `#/components/schemas/timeline-issue-events/value12`. + public var value12: Components.Schemas.removed_from_project_issue_event? + /// - Remark: Generated from `#/components/schemas/timeline-issue-events/value13`. + public var value13: Components.Schemas.converted_note_to_issue_issue_event? + /// - Remark: Generated from `#/components/schemas/timeline-issue-events/value14`. + public var value14: Components.Schemas.timeline_comment_event? + /// - Remark: Generated from `#/components/schemas/timeline-issue-events/value15`. + public var value15: Components.Schemas.timeline_cross_referenced_event? + /// - Remark: Generated from `#/components/schemas/timeline-issue-events/value16`. + public var value16: Components.Schemas.timeline_committed_event? + /// - Remark: Generated from `#/components/schemas/timeline-issue-events/value17`. + public var value17: Components.Schemas.timeline_reviewed_event? + /// - Remark: Generated from `#/components/schemas/timeline-issue-events/value18`. + public var value18: Components.Schemas.timeline_line_commented_event? + /// - Remark: Generated from `#/components/schemas/timeline-issue-events/value19`. + public var value19: Components.Schemas.timeline_commit_commented_event? + /// - Remark: Generated from `#/components/schemas/timeline-issue-events/value20`. + public var value20: Components.Schemas.timeline_assigned_issue_event? + /// - Remark: Generated from `#/components/schemas/timeline-issue-events/value21`. + public var value21: Components.Schemas.timeline_unassigned_issue_event? + /// - Remark: Generated from `#/components/schemas/timeline-issue-events/value22`. + public var value22: Components.Schemas.state_change_issue_event? + /// Creates a new `timeline_issue_events`. + /// + /// - Parameters: + /// - value1: + /// - value2: + /// - value3: + /// - value4: + /// - value5: + /// - value6: + /// - value7: + /// - value8: + /// - value9: + /// - value10: + /// - value11: + /// - value12: + /// - value13: + /// - value14: + /// - value15: + /// - value16: + /// - value17: + /// - value18: + /// - value19: + /// - value20: + /// - value21: + /// - value22: + public init( + value1: Components.Schemas.labeled_issue_event? = nil, + value2: Components.Schemas.unlabeled_issue_event? = nil, + value3: Components.Schemas.milestoned_issue_event? = nil, + value4: Components.Schemas.demilestoned_issue_event? = nil, + value5: Components.Schemas.renamed_issue_event? = nil, + value6: Components.Schemas.review_requested_issue_event? = nil, + value7: Components.Schemas.review_request_removed_issue_event? = nil, + value8: Components.Schemas.review_dismissed_issue_event? = nil, + value9: Components.Schemas.locked_issue_event? = nil, + value10: Components.Schemas.added_to_project_issue_event? = nil, + value11: Components.Schemas.moved_column_in_project_issue_event? = nil, + value12: Components.Schemas.removed_from_project_issue_event? = nil, + value13: Components.Schemas.converted_note_to_issue_issue_event? = nil, + value14: Components.Schemas.timeline_comment_event? = nil, + value15: Components.Schemas.timeline_cross_referenced_event? = nil, + value16: Components.Schemas.timeline_committed_event? = nil, + value17: Components.Schemas.timeline_reviewed_event? = nil, + value18: Components.Schemas.timeline_line_commented_event? = nil, + value19: Components.Schemas.timeline_commit_commented_event? = nil, + value20: Components.Schemas.timeline_assigned_issue_event? = nil, + value21: Components.Schemas.timeline_unassigned_issue_event? = nil, + value22: Components.Schemas.state_change_issue_event? = nil + ) { + self.value1 = value1 + self.value2 = value2 + self.value3 = value3 + self.value4 = value4 + self.value5 = value5 + self.value6 = value6 + self.value7 = value7 + self.value8 = value8 + self.value9 = value9 + self.value10 = value10 + self.value11 = value11 + self.value12 = value12 + self.value13 = value13 + self.value14 = value14 + self.value15 = value15 + self.value16 = value16 + self.value17 = value17 + self.value18 = value18 + self.value19 = value19 + self.value20 = value20 + self.value21 = value21 + self.value22 = value22 + } + public init(from decoder: any Decoder) throws { + value1 = try? .init(from: decoder) + value2 = try? .init(from: decoder) + value3 = try? .init(from: decoder) + value4 = try? .init(from: decoder) + value5 = try? .init(from: decoder) + value6 = try? .init(from: decoder) + value7 = try? .init(from: decoder) + value8 = try? .init(from: decoder) + value9 = try? .init(from: decoder) + value10 = try? .init(from: decoder) + value11 = try? .init(from: decoder) + value12 = try? .init(from: decoder) + value13 = try? .init(from: decoder) + value14 = try? .init(from: decoder) + value15 = try? .init(from: decoder) + value16 = try? .init(from: decoder) + value17 = try? .init(from: decoder) + value18 = try? .init(from: decoder) + value19 = try? .init(from: decoder) + value20 = try? .init(from: decoder) + value21 = try? .init(from: decoder) + value22 = try? .init(from: decoder) + try DecodingError.verifyAtLeastOneSchemaIsNotNil( + [ + value1, value2, value3, value4, value5, value6, value7, value8, value9, value10, value11, + value12, value13, value14, value15, value16, value17, value18, value19, value20, value21, + value22, + ], + type: Self.self, + codingPath: decoder.codingPath + ) + } + public func encode(to encoder: any Encoder) throws { + try value1?.encode(to: encoder) + try value2?.encode(to: encoder) + try value3?.encode(to: encoder) + try value4?.encode(to: encoder) + try value5?.encode(to: encoder) + try value6?.encode(to: encoder) + try value7?.encode(to: encoder) + try value8?.encode(to: encoder) + try value9?.encode(to: encoder) + try value10?.encode(to: encoder) + try value11?.encode(to: encoder) + try value12?.encode(to: encoder) + try value13?.encode(to: encoder) + try value14?.encode(to: encoder) + try value15?.encode(to: encoder) + try value16?.encode(to: encoder) + try value17?.encode(to: encoder) + try value18?.encode(to: encoder) + try value19?.encode(to: encoder) + try value20?.encode(to: encoder) + try value21?.encode(to: encoder) + try value22?.encode(to: encoder) } } /// Pull requests let you tell others about changes you've pushed to a repository on GitHub. Once a pull request is sent, interested parties can review the set of changes, discuss potential modifications, and even push follow-up commits if necessary. @@ -24203,6 +27099,190 @@ public enum Operations { public static var allCases: [Self] { [.json] } } } + /// List timeline events for an issue + /// + /// List all timeline events for an issue. + /// + /// - Remark: HTTP `GET /repos/{owner}/{repo}/issues/{issue_number}/timeline`. + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/timeline/get(issues/list-events-for-timeline)`. + public enum issues_list_events_for_timeline { + public static let id: String = "issues/list-events-for-timeline" + public struct Input: Sendable, Hashable { + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/timeline/GET/path`. + public struct Path: Sendable, Hashable { + /// The account owner of the repository. The name is not case sensitive. + /// + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/timeline/GET/path/owner`. + public var owner: Components.Parameters.owner + /// The name of the repository without the `.git` extension. The name is not case sensitive. + /// + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/timeline/GET/path/repo`. + public var repo: Components.Parameters.repo + /// The number that identifies the issue. + /// + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/timeline/GET/path/issue_number`. + public var issue_number: Components.Parameters.issue_number + /// Creates a new `Path`. + /// + /// - Parameters: + /// - owner: The account owner of the repository. The name is not case sensitive. + /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. + /// - issue_number: The number that identifies the issue. + public init( + owner: Components.Parameters.owner, + repo: Components.Parameters.repo, + issue_number: Components.Parameters.issue_number + ) { + self.owner = owner + self.repo = repo + self.issue_number = issue_number + } + } + public var path: Operations.issues_list_events_for_timeline.Input.Path + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/timeline/GET/query`. + public struct Query: Sendable, Hashable { + /// The number of results per page (max 100). + /// + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/timeline/GET/query/per_page`. + public var per_page: Components.Parameters.per_page? + /// Page number of the results to fetch. + /// + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/timeline/GET/query/page`. + public var page: Components.Parameters.page? + /// Creates a new `Query`. + /// + /// - Parameters: + /// - per_page: The number of results per page (max 100). + /// - page: Page number of the results to fetch. + public init(per_page: Components.Parameters.per_page? = nil, page: Components.Parameters.page? = nil) { + self.per_page = per_page + self.page = page + } + } + public var query: Operations.issues_list_events_for_timeline.Input.Query + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/timeline/GET/header`. + public struct Headers: Sendable, Hashable { + public var accept: + [OpenAPIRuntime.AcceptHeaderContentType< + Operations.issues_list_events_for_timeline.AcceptableContentType + >] + /// Creates a new `Headers`. + /// + /// - Parameters: + /// - accept: + public init( + accept: [OpenAPIRuntime.AcceptHeaderContentType< + Operations.issues_list_events_for_timeline.AcceptableContentType + >] = .defaultValues() + ) { self.accept = accept } + } + public var headers: Operations.issues_list_events_for_timeline.Input.Headers + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/timeline/GET/cookie`. + public struct Cookies: Sendable, Hashable { + /// Creates a new `Cookies`. + public init() {} + } + public var cookies: Operations.issues_list_events_for_timeline.Input.Cookies + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/timeline/GET/requestBody`. + @frozen public enum Body: Sendable, Hashable {} + public var body: Operations.issues_list_events_for_timeline.Input.Body? + /// Creates a new `Input`. + /// + /// - Parameters: + /// - path: + /// - query: + /// - headers: + /// - cookies: + /// - body: + public init( + path: Operations.issues_list_events_for_timeline.Input.Path, + query: Operations.issues_list_events_for_timeline.Input.Query = .init(), + headers: Operations.issues_list_events_for_timeline.Input.Headers = .init(), + cookies: Operations.issues_list_events_for_timeline.Input.Cookies = .init(), + body: Operations.issues_list_events_for_timeline.Input.Body? = nil + ) { + self.path = path + self.query = query + self.headers = headers + self.cookies = cookies + self.body = body + } + } + @frozen public enum Output: Sendable, Hashable { + public struct Ok: Sendable, Hashable { + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/timeline/GET/responses/200/headers`. + public struct Headers: Sendable, Hashable { + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/timeline/GET/responses/200/headers/Link`. + public var Link: Components.Headers.link? + /// Creates a new `Headers`. + /// + /// - Parameters: + /// - Link: + public init(Link: Components.Headers.link? = nil) { self.Link = Link } + } + /// Received HTTP response headers + public var headers: Operations.issues_list_events_for_timeline.Output.Ok.Headers + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/timeline/GET/responses/200/content`. + @frozen public enum Body: Sendable, Hashable { + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/timeline/GET/responses/200/content/application\/json`. + case json([Components.Schemas.timeline_issue_events]) + } + /// Received HTTP response body + public var body: Operations.issues_list_events_for_timeline.Output.Ok.Body + /// Creates a new `Ok`. + /// + /// - Parameters: + /// - headers: Received HTTP response headers + /// - body: Received HTTP response body + public init( + headers: Operations.issues_list_events_for_timeline.Output.Ok.Headers = .init(), + body: Operations.issues_list_events_for_timeline.Output.Ok.Body + ) { + self.headers = headers + self.body = body + } + } + /// Response + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/timeline/get(issues/list-events-for-timeline)/responses/200`. + /// + /// HTTP response code: `200 ok`. + case ok(Operations.issues_list_events_for_timeline.Output.Ok) + /// Resource not found + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/timeline/get(issues/list-events-for-timeline)/responses/404`. + /// + /// HTTP response code: `404 notFound`. + case notFound(Components.Responses.not_found) + /// Gone + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/timeline/get(issues/list-events-for-timeline)/responses/410`. + /// + /// HTTP response code: `410 gone`. + case gone(Components.Responses.gone) + /// Undocumented response. + /// + /// A response with a code that is not documented in the OpenAPI document. + case undocumented(statusCode: Int, OpenAPIRuntime.UndocumentedPayload) + } + @frozen public enum AcceptableContentType: AcceptableProtocol { + case json + case other(String) + public init?(rawValue: String) { + switch rawValue.lowercased() { + case "application/json": self = .json + default: self = .other(rawValue) + } + } + public var rawValue: String { + switch self { + case let .other(string): return string + case .json: return "application/json" + } + } + public static var allCases: [Self] { [.json] } + } + } /// List pull requests /// /// Draft pull requests are available in public repositories with GitHub Free and GitHub Free for organizations, GitHub Pro, and legacy per-repository billing plans, and in public and private repositories with GitHub Team and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. diff --git a/Lambdas/GitHubAPI/openapi.yaml b/Lambdas/GitHubAPI/openapi.yaml index 0433c9a8..4c505a44 100644 --- a/Lambdas/GitHubAPI/openapi.yaml +++ b/Lambdas/GitHubAPI/openapi.yaml @@ -28032,46 +28032,46 @@ paths: # enabledForGitHubApps: true # category: reactions # subcategory: reactions -# "/repos/{owner}/{repo}/issues/{issue_number}/timeline": -# get: -# summary: List timeline events for an issue -# description: List all timeline events for an issue. -# tags: -# - issues -# operationId: issues/list-events-for-timeline -# externalDocs: -# description: API method documentation -# url: https://docs.github.com/rest/reference/issues#list-timeline-events-for-an-issue -# parameters: -# - "$ref": "#/components/parameters/owner" -# - "$ref": "#/components/parameters/repo" -# - "$ref": "#/components/parameters/issue-number" -# - "$ref": "#/components/parameters/per-page" -# - "$ref": "#/components/parameters/page" -# responses: -# '200': -# description: Response -# content: -# application/json: -# schema: -# type: array -# items: -# "$ref": "#/components/schemas/timeline-issue-events" -# examples: -# default: -# "$ref": "#/components/examples/timeline-issue-events" -# headers: -# Link: -# "$ref": "#/components/headers/link" -# '404': -# "$ref": "#/components/responses/not_found" -# '410': -# "$ref": "#/components/responses/gone" -# x-github: -# githubCloudOnly: false -# enabledForGitHubApps: true -# category: issues -# subcategory: timeline + "/repos/{owner}/{repo}/issues/{issue_number}/timeline": + get: + summary: List timeline events for an issue + description: List all timeline events for an issue. + tags: + - issues + operationId: issues/list-events-for-timeline + externalDocs: + description: API method documentation + url: https://docs.github.com/rest/reference/issues#list-timeline-events-for-an-issue + parameters: + - "$ref": "#/components/parameters/owner" + - "$ref": "#/components/parameters/repo" + - "$ref": "#/components/parameters/issue-number" + - "$ref": "#/components/parameters/per-page" + - "$ref": "#/components/parameters/page" + responses: + '200': + description: Response + content: + application/json: + schema: + type: array + items: + "$ref": "#/components/schemas/timeline-issue-events" + examples: + default: + "$ref": "#/components/examples/timeline-issue-events" + headers: + Link: + "$ref": "#/components/headers/link" + '404': + "$ref": "#/components/responses/not_found" + '410': + "$ref": "#/components/responses/gone" + x-github: + githubCloudOnly: false + enabledForGitHubApps: true + category: issues + subcategory: timeline # "/repos/{owner}/{repo}/keys": # get: # summary: List deploy keys @@ -58429,108 +58429,108 @@ components: - type - url nullable: true -# integration: -# title: GitHub app -# description: GitHub apps are a new way to extend GitHub. They can be installed -# directly on organizations and user accounts and granted access to specific -# repositories. They come with granular permissions and built-in webhooks. GitHub -# apps are first class actors within GitHub. -# type: object -# properties: -# id: -# description: Unique identifier of the GitHub app -# example: 37 -# type: integer -# slug: -# description: The slug name of the GitHub app -# example: probot-owners -# type: string -# node_id: -# type: string -# example: MDExOkludGVncmF0aW9uMQ== -# owner: -# "$ref": "#/components/schemas/nullable-simple-user" -# name: -# description: The name of the GitHub app -# example: Probot Owners -# type: string -# description: -# type: string -# example: The description of the app. -# nullable: true -# external_url: -# type: string -# format: uri -# example: https://example.com -# html_url: -# type: string -# format: uri -# example: https://github.com/apps/super-ci -# created_at: -# type: string -# format: date-time -# example: '2017-07-08T16:18:44-04:00' -# updated_at: -# type: string -# format: date-time -# example: '2017-07-08T16:18:44-04:00' -# permissions: -# description: The set of permissions for the GitHub app -# type: object -# properties: -# issues: -# type: string -# checks: -# type: string -# metadata: -# type: string -# contents: -# type: string -# deployments: -# type: string -# additionalProperties: -# type: string -# example: -# issues: read -# deployments: write -# events: -# description: The list of events for the GitHub app -# example: -# - label -# - deployment -# type: array -# items: -# type: string -# installations_count: -# description: The number of installations associated with the GitHub app -# example: 5 -# type: integer -# client_id: -# type: string -# example: '"Iv1.25b5d1e65ffc4022"' -# client_secret: -# type: string -# example: '"1d4b2097ac622ba702d19de498f005747a8b21d3"' -# webhook_secret: -# type: string -# example: '"6fba8f2fc8a7e8f2cca5577eddd82ca7586b3b6b"' -# nullable: true -# pem: -# type: string -# example: '"-----BEGIN RSA PRIVATE KEY-----\nMIIEogIBAAKCAQEArYxrNYD/iT5CZVpRJu4rBKmmze3PVmT/gCo2ATUvDvZTPTey\nxcGJ3vvrJXazKk06pN05TN29o98jrYz4cengG3YGsXPNEpKsIrEl8NhbnxapEnM9\nJCMRe0P5JcPsfZlX6hmiT7136GRWiGOUba2X9+HKh8QJVLG5rM007TBER9/z9mWm\nrJuNh+m5l320oBQY/Qq3A7wzdEfZw8qm/mIN0FCeoXH1L6B8xXWaAYBwhTEh6SSn\nZHlO1Xu1JWDmAvBCi0RO5aRSKM8q9QEkvvHP4yweAtK3N8+aAbZ7ovaDhyGz8r6r\nzhU1b8Uo0Z2ysf503WqzQgIajr7Fry7/kUwpgQIDAQABAoIBADwJp80Ko1xHPZDy\nfcCKBDfIuPvkmSW6KumbsLMaQv1aGdHDwwTGv3t0ixSay8CGlxMRtRDyZPib6SvQ\n6OH/lpfpbMdW2ErkksgtoIKBVrDilfrcAvrNZu7NxRNbhCSvN8q0s4ICecjbbVQh\nnueSdlA6vGXbW58BHMq68uRbHkP+k+mM9U0mDJ1HMch67wlg5GbayVRt63H7R2+r\nVxcna7B80J/lCEjIYZznawgiTvp3MSanTglqAYi+m1EcSsP14bJIB9vgaxS79kTu\noiSo93leJbBvuGo8QEiUqTwMw4tDksmkLsoqNKQ1q9P7LZ9DGcujtPy4EZsamSJT\ny8OJt0ECgYEA2lxOxJsQk2kI325JgKFjo92mQeUObIvPfSNWUIZQDTjniOI6Gv63\nGLWVFrZcvQBWjMEQraJA9xjPbblV8PtfO87MiJGLWCHFxmPz2dzoedN+2Coxom8m\nV95CLz8QUShuao6u/RYcvUaZEoYs5bHcTmy5sBK80JyEmafJPtCQVxMCgYEAy3ar\nZr3yv4xRPEPMat4rseswmuMooSaK3SKub19WFI5IAtB/e7qR1Rj9JhOGcZz+OQrl\nT78O2OFYlgOIkJPvRMrPpK5V9lslc7tz1FSh3BZMRGq5jSyD7ETSOQ0c8T2O/s7v\nbeEPbVbDe4mwvM24XByH0GnWveVxaDl51ABD65sCgYB3ZAspUkOA5egVCh8kNpnd\nSd6SnuQBE3ySRlT2WEnCwP9Ph6oPgn+oAfiPX4xbRqkL8q/k0BdHQ4h+zNwhk7+h\nWtPYRAP1Xxnc/F+jGjb+DVaIaKGU18MWPg7f+FI6nampl3Q0KvfxwX0GdNhtio8T\nTj1E+SnFwh56SRQuxSh2gwKBgHKjlIO5NtNSflsUYFM+hyQiPiqnHzddfhSG+/3o\nm5nNaSmczJesUYreH5San7/YEy2UxAugvP7aSY2MxB+iGsiJ9WD2kZzTUlDZJ7RV\nUzWsoqBR+eZfVJ2FUWWvy8TpSG6trh4dFxImNtKejCR1TREpSiTV3Zb1dmahK9GV\nrK9NAoGAbBxRLoC01xfxCTgt5BDiBcFVh4fp5yYKwavJPLzHSpuDOrrI9jDn1oKN\nonq5sDU1i391zfQvdrbX4Ova48BN+B7p63FocP/MK5tyyBoT8zQEk2+vWDOw7H/Z\nu5dTCPxTIsoIwUw1I+7yIxqJzLPFgR2gVBwY1ra/8iAqCj+zeBw=\n-----END -# RSA PRIVATE KEY-----\n"' -# required: -# - id -# - node_id -# - owner -# - name -# - description -# - external_url -# - html_url -# - created_at -# - updated_at -# - permissions -# - events + integration: + title: GitHub app + description: GitHub apps are a new way to extend GitHub. They can be installed + directly on organizations and user accounts and granted access to specific + repositories. They come with granular permissions and built-in webhooks. GitHub + apps are first class actors within GitHub. + type: object + properties: + id: + description: Unique identifier of the GitHub app + example: 37 + type: integer + slug: + description: The slug name of the GitHub app + example: probot-owners + type: string + node_id: + type: string + example: MDExOkludGVncmF0aW9uMQ== + owner: + "$ref": "#/components/schemas/nullable-simple-user" + name: + description: The name of the GitHub app + example: Probot Owners + type: string + description: + type: string + example: The description of the app. + nullable: true + external_url: + type: string + format: uri + example: https://example.com + html_url: + type: string + format: uri + example: https://github.com/apps/super-ci + created_at: + type: string + format: date-time + example: '2017-07-08T16:18:44-04:00' + updated_at: + type: string + format: date-time + example: '2017-07-08T16:18:44-04:00' + permissions: + description: The set of permissions for the GitHub app + type: object + properties: + issues: + type: string + checks: + type: string + metadata: + type: string + contents: + type: string + deployments: + type: string + additionalProperties: + type: string + example: + issues: read + deployments: write + events: + description: The list of events for the GitHub app + example: + - label + - deployment + type: array + items: + type: string + installations_count: + description: The number of installations associated with the GitHub app + example: 5 + type: integer + client_id: + type: string + example: '"Iv1.25b5d1e65ffc4022"' + client_secret: + type: string + example: '"1d4b2097ac622ba702d19de498f005747a8b21d3"' + webhook_secret: + type: string + example: '"6fba8f2fc8a7e8f2cca5577eddd82ca7586b3b6b"' + nullable: true + pem: + type: string + example: '"-----BEGIN RSA PRIVATE KEY-----\nMIIEogIBAAKCAQEArYxrNYD/iT5CZVpRJu4rBKmmze3PVmT/gCo2ATUvDvZTPTey\nxcGJ3vvrJXazKk06pN05TN29o98jrYz4cengG3YGsXPNEpKsIrEl8NhbnxapEnM9\nJCMRe0P5JcPsfZlX6hmiT7136GRWiGOUba2X9+HKh8QJVLG5rM007TBER9/z9mWm\nrJuNh+m5l320oBQY/Qq3A7wzdEfZw8qm/mIN0FCeoXH1L6B8xXWaAYBwhTEh6SSn\nZHlO1Xu1JWDmAvBCi0RO5aRSKM8q9QEkvvHP4yweAtK3N8+aAbZ7ovaDhyGz8r6r\nzhU1b8Uo0Z2ysf503WqzQgIajr7Fry7/kUwpgQIDAQABAoIBADwJp80Ko1xHPZDy\nfcCKBDfIuPvkmSW6KumbsLMaQv1aGdHDwwTGv3t0ixSay8CGlxMRtRDyZPib6SvQ\n6OH/lpfpbMdW2ErkksgtoIKBVrDilfrcAvrNZu7NxRNbhCSvN8q0s4ICecjbbVQh\nnueSdlA6vGXbW58BHMq68uRbHkP+k+mM9U0mDJ1HMch67wlg5GbayVRt63H7R2+r\nVxcna7B80J/lCEjIYZznawgiTvp3MSanTglqAYi+m1EcSsP14bJIB9vgaxS79kTu\noiSo93leJbBvuGo8QEiUqTwMw4tDksmkLsoqNKQ1q9P7LZ9DGcujtPy4EZsamSJT\ny8OJt0ECgYEA2lxOxJsQk2kI325JgKFjo92mQeUObIvPfSNWUIZQDTjniOI6Gv63\nGLWVFrZcvQBWjMEQraJA9xjPbblV8PtfO87MiJGLWCHFxmPz2dzoedN+2Coxom8m\nV95CLz8QUShuao6u/RYcvUaZEoYs5bHcTmy5sBK80JyEmafJPtCQVxMCgYEAy3ar\nZr3yv4xRPEPMat4rseswmuMooSaK3SKub19WFI5IAtB/e7qR1Rj9JhOGcZz+OQrl\nT78O2OFYlgOIkJPvRMrPpK5V9lslc7tz1FSh3BZMRGq5jSyD7ETSOQ0c8T2O/s7v\nbeEPbVbDe4mwvM24XByH0GnWveVxaDl51ABD65sCgYB3ZAspUkOA5egVCh8kNpnd\nSd6SnuQBE3ySRlT2WEnCwP9Ph6oPgn+oAfiPX4xbRqkL8q/k0BdHQ4h+zNwhk7+h\nWtPYRAP1Xxnc/F+jGjb+DVaIaKGU18MWPg7f+FI6nampl3Q0KvfxwX0GdNhtio8T\nTj1E+SnFwh56SRQuxSh2gwKBgHKjlIO5NtNSflsUYFM+hyQiPiqnHzddfhSG+/3o\nm5nNaSmczJesUYreH5San7/YEy2UxAugvP7aSY2MxB+iGsiJ9WD2kZzTUlDZJ7RV\nUzWsoqBR+eZfVJ2FUWWvy8TpSG6trh4dFxImNtKejCR1TREpSiTV3Zb1dmahK9GV\nrK9NAoGAbBxRLoC01xfxCTgt5BDiBcFVh4fp5yYKwavJPLzHSpuDOrrI9jDn1oKN\nonq5sDU1i391zfQvdrbX4Ova48BN+B7p63FocP/MK5tyyBoT8zQEk2+vWDOw7H/Z\nu5dTCPxTIsoIwUw1I+7yIxqJzLPFgR2gVBwY1ra/8iAqCj+zeBw=\n-----END + RSA PRIVATE KEY-----\n"' + required: + - id + - node_id + - owner + - name + - description + - external_url + - html_url + - created_at + - updated_at + - permissions + - events basic-error: title: Basic Error description: Basic Error @@ -72080,60 +72080,60 @@ components: # - permission # - role_name # - user -# commit-comment: -# title: Commit Comment -# description: Commit Comment -# type: object -# properties: -# html_url: -# type: string -# format: uri -# url: -# type: string -# format: uri -# id: -# type: integer -# node_id: -# type: string -# body: -# type: string -# path: -# type: string -# nullable: true -# position: -# type: integer -# nullable: true -# line: -# type: integer -# nullable: true -# commit_id: -# type: string -# user: -# "$ref": "#/components/schemas/nullable-simple-user" -# created_at: -# type: string -# format: date-time -# updated_at: -# type: string -# format: date-time -# author_association: -# "$ref": "#/components/schemas/author-association" -# reactions: -# "$ref": "#/components/schemas/reaction-rollup" -# required: -# - url -# - html_url -# - id -# - node_id -# - user -# - position -# - line -# - path -# - commit_id -# - body -# - author_association -# - created_at -# - updated_at + commit-comment: + title: Commit Comment + description: Commit Comment + type: object + properties: + html_url: + type: string + format: uri + url: + type: string + format: uri + id: + type: integer + node_id: + type: string + body: + type: string + path: + type: string + nullable: true + position: + type: integer + nullable: true + line: + type: integer + nullable: true + commit_id: + type: string + user: + "$ref": "#/components/schemas/nullable-simple-user" + created_at: + type: string + format: date-time + updated_at: + type: string + format: date-time + author_association: + "$ref": "#/components/schemas/author-association" + reactions: + "$ref": "#/components/schemas/reaction-rollup" + required: + - url + - html_url + - id + - node_id + - user + - position + - line + - path + - commit_id + - body + - author_association + - created_at + - updated_at # branch-short: # title: Branch Short # description: Branch Short @@ -74991,739 +74991,739 @@ components: # - commit_id # - commit_url # - created_at -# labeled-issue-event: -# title: Labeled Issue Event -# description: Labeled Issue Event -# type: object -# properties: -# id: -# type: integer -# node_id: -# type: string -# url: -# type: string -# actor: -# "$ref": "#/components/schemas/simple-user" -# event: -# type: string -# commit_id: -# type: string -# nullable: true -# commit_url: -# type: string -# nullable: true -# created_at: -# type: string -# performed_via_github_app: -# "$ref": "#/components/schemas/nullable-integration" -# label: -# type: object -# properties: -# name: -# type: string -# color: -# type: string -# required: -# - name -# - color -# required: -# - label -# - id -# - node_id -# - url -# - actor -# - event -# - commit_id -# - commit_url -# - created_at -# - performed_via_github_app -# unlabeled-issue-event: -# title: Unlabeled Issue Event -# description: Unlabeled Issue Event -# type: object -# properties: -# id: -# type: integer -# node_id: -# type: string -# url: -# type: string -# actor: -# "$ref": "#/components/schemas/simple-user" -# event: -# type: string -# commit_id: -# type: string -# nullable: true -# commit_url: -# type: string -# nullable: true -# created_at: -# type: string -# performed_via_github_app: -# "$ref": "#/components/schemas/nullable-integration" -# label: -# type: object -# properties: -# name: -# type: string -# color: -# type: string -# required: -# - name -# - color -# required: -# - label -# - id -# - node_id -# - url -# - actor -# - event -# - commit_id -# - commit_url -# - created_at -# - performed_via_github_app -# assigned-issue-event: -# title: Assigned Issue Event -# description: Assigned Issue Event -# type: object -# properties: -# id: -# type: integer -# node_id: -# type: string -# url: -# type: string -# actor: -# "$ref": "#/components/schemas/simple-user" -# event: -# type: string -# commit_id: -# type: string -# nullable: true -# commit_url: -# type: string -# nullable: true -# created_at: -# type: string -# performed_via_github_app: -# "$ref": "#/components/schemas/integration" -# assignee: -# "$ref": "#/components/schemas/simple-user" -# assigner: -# "$ref": "#/components/schemas/simple-user" -# required: -# - id -# - node_id -# - url -# - actor -# - event -# - commit_id -# - commit_url -# - created_at -# - performed_via_github_app -# - assignee -# - assigner -# unassigned-issue-event: -# title: Unassigned Issue Event -# description: Unassigned Issue Event -# type: object -# properties: -# id: -# type: integer -# node_id: -# type: string -# url: -# type: string -# actor: -# "$ref": "#/components/schemas/simple-user" -# event: -# type: string -# commit_id: -# type: string -# nullable: true -# commit_url: -# type: string -# nullable: true -# created_at: -# type: string -# performed_via_github_app: -# "$ref": "#/components/schemas/nullable-integration" -# assignee: -# "$ref": "#/components/schemas/simple-user" -# assigner: -# "$ref": "#/components/schemas/simple-user" -# required: -# - id -# - node_id -# - url -# - actor -# - event -# - commit_id -# - commit_url -# - created_at -# - performed_via_github_app -# - assignee -# - assigner -# milestoned-issue-event: -# title: Milestoned Issue Event -# description: Milestoned Issue Event -# type: object -# properties: -# id: -# type: integer -# node_id: -# type: string -# url: -# type: string -# actor: -# "$ref": "#/components/schemas/simple-user" -# event: -# type: string -# commit_id: -# type: string -# nullable: true -# commit_url: -# type: string -# nullable: true -# created_at: -# type: string -# performed_via_github_app: -# "$ref": "#/components/schemas/nullable-integration" -# milestone: -# type: object -# properties: -# title: -# type: string -# required: -# - title -# required: -# - milestone -# - id -# - node_id -# - url -# - actor -# - event -# - commit_id -# - commit_url -# - created_at -# - performed_via_github_app -# demilestoned-issue-event: -# title: Demilestoned Issue Event -# description: Demilestoned Issue Event -# type: object -# properties: -# id: -# type: integer -# node_id: -# type: string -# url: -# type: string -# actor: -# "$ref": "#/components/schemas/simple-user" -# event: -# type: string -# commit_id: -# type: string -# nullable: true -# commit_url: -# type: string -# nullable: true -# created_at: -# type: string -# performed_via_github_app: -# "$ref": "#/components/schemas/nullable-integration" -# milestone: -# type: object -# properties: -# title: -# type: string -# required: -# - title -# required: -# - milestone -# - id -# - node_id -# - url -# - actor -# - event -# - commit_id -# - commit_url -# - created_at -# - performed_via_github_app -# renamed-issue-event: -# title: Renamed Issue Event -# description: Renamed Issue Event -# type: object -# properties: -# id: -# type: integer -# node_id: -# type: string -# url: -# type: string -# actor: -# "$ref": "#/components/schemas/simple-user" -# event: -# type: string -# commit_id: -# type: string -# nullable: true -# commit_url: -# type: string -# nullable: true -# created_at: -# type: string -# performed_via_github_app: -# "$ref": "#/components/schemas/nullable-integration" -# rename: -# type: object -# properties: -# from: -# type: string -# to: -# type: string -# required: -# - from -# - to -# required: -# - rename -# - id -# - node_id -# - url -# - actor -# - event -# - commit_id -# - commit_url -# - created_at -# - performed_via_github_app -# review-requested-issue-event: -# title: Review Requested Issue Event -# description: Review Requested Issue Event -# type: object -# properties: -# id: -# type: integer -# node_id: -# type: string -# url: -# type: string -# actor: -# "$ref": "#/components/schemas/simple-user" -# event: -# type: string -# commit_id: -# type: string -# nullable: true -# commit_url: -# type: string -# nullable: true -# created_at: -# type: string -# performed_via_github_app: -# "$ref": "#/components/schemas/nullable-integration" -# review_requester: -# "$ref": "#/components/schemas/simple-user" -# requested_team: -# "$ref": "#/components/schemas/team" -# requested_reviewer: -# "$ref": "#/components/schemas/simple-user" -# required: -# - review_requester -# - id -# - node_id -# - url -# - actor -# - event -# - commit_id -# - commit_url -# - created_at -# - performed_via_github_app -# review-request-removed-issue-event: -# title: Review Request Removed Issue Event -# description: Review Request Removed Issue Event -# type: object -# properties: -# id: -# type: integer -# node_id: -# type: string -# url: -# type: string -# actor: -# "$ref": "#/components/schemas/simple-user" -# event: -# type: string -# commit_id: -# type: string -# nullable: true -# commit_url: -# type: string -# nullable: true -# created_at: -# type: string -# performed_via_github_app: -# "$ref": "#/components/schemas/nullable-integration" -# review_requester: -# "$ref": "#/components/schemas/simple-user" -# requested_team: -# "$ref": "#/components/schemas/team" -# requested_reviewer: -# "$ref": "#/components/schemas/simple-user" -# required: -# - review_requester -# - id -# - node_id -# - url -# - actor -# - event -# - commit_id -# - commit_url -# - created_at -# - performed_via_github_app -# review-dismissed-issue-event: -# title: Review Dismissed Issue Event -# description: Review Dismissed Issue Event -# type: object -# properties: -# id: -# type: integer -# node_id: -# type: string -# url: -# type: string -# actor: -# "$ref": "#/components/schemas/simple-user" -# event: -# type: string -# commit_id: -# type: string -# nullable: true -# commit_url: -# type: string -# nullable: true -# created_at: -# type: string -# performed_via_github_app: -# "$ref": "#/components/schemas/nullable-integration" -# dismissed_review: -# type: object -# properties: -# state: -# type: string -# review_id: -# type: integer -# dismissal_message: -# nullable: true -# type: string -# dismissal_commit_id: -# type: string -# required: -# - state -# - review_id -# - dismissal_message -# required: -# - dismissed_review -# - id -# - node_id -# - url -# - actor -# - event -# - commit_id -# - commit_url -# - created_at -# - performed_via_github_app -# locked-issue-event: -# title: Locked Issue Event -# description: Locked Issue Event -# type: object -# properties: -# id: -# type: integer -# node_id: -# type: string -# url: -# type: string -# actor: -# "$ref": "#/components/schemas/simple-user" -# event: -# type: string -# commit_id: -# type: string -# nullable: true -# commit_url: -# type: string -# nullable: true -# created_at: -# type: string -# performed_via_github_app: -# "$ref": "#/components/schemas/nullable-integration" -# lock_reason: -# type: string -# example: '"off-topic"' -# nullable: true -# required: -# - lock_reason -# - id -# - node_id -# - url -# - actor -# - event -# - commit_id -# - commit_url -# - created_at -# - performed_via_github_app -# added-to-project-issue-event: -# title: Added to Project Issue Event -# description: Added to Project Issue Event -# type: object -# properties: -# id: -# type: integer -# node_id: -# type: string -# url: -# type: string -# actor: -# "$ref": "#/components/schemas/simple-user" -# event: -# type: string -# commit_id: -# type: string -# nullable: true -# commit_url: -# type: string -# nullable: true -# created_at: -# type: string -# performed_via_github_app: -# "$ref": "#/components/schemas/nullable-integration" -# project_card: -# type: object -# properties: -# id: -# type: integer -# url: -# type: string -# format: uri -# project_id: -# type: integer -# project_url: -# type: string -# format: uri -# column_name: -# type: string -# previous_column_name: -# type: string -# required: -# - id -# - url -# - project_id -# - project_url -# - column_name -# required: -# - id -# - node_id -# - url -# - actor -# - event -# - commit_id -# - commit_url -# - created_at -# - performed_via_github_app -# moved-column-in-project-issue-event: -# title: Moved Column in Project Issue Event -# description: Moved Column in Project Issue Event -# type: object -# properties: -# id: -# type: integer -# node_id: -# type: string -# url: -# type: string -# actor: -# "$ref": "#/components/schemas/simple-user" -# event: -# type: string -# commit_id: -# type: string -# nullable: true -# commit_url: -# type: string -# nullable: true -# created_at: -# type: string -# performed_via_github_app: -# "$ref": "#/components/schemas/nullable-integration" -# project_card: -# type: object -# properties: -# id: -# type: integer -# url: -# type: string -# format: uri -# project_id: -# type: integer -# project_url: -# type: string -# format: uri -# column_name: -# type: string -# previous_column_name: -# type: string -# required: -# - id -# - url -# - project_id -# - project_url -# - column_name -# required: -# - id -# - node_id -# - url -# - actor -# - event -# - commit_id -# - commit_url -# - created_at -# - performed_via_github_app -# removed-from-project-issue-event: -# title: Removed from Project Issue Event -# description: Removed from Project Issue Event -# type: object -# properties: -# id: -# type: integer -# node_id: -# type: string -# url: -# type: string -# actor: -# "$ref": "#/components/schemas/simple-user" -# event: -# type: string -# commit_id: -# type: string -# nullable: true -# commit_url: -# type: string -# nullable: true -# created_at: -# type: string -# performed_via_github_app: -# "$ref": "#/components/schemas/nullable-integration" -# project_card: -# type: object -# properties: -# id: -# type: integer -# url: -# type: string -# format: uri -# project_id: -# type: integer -# project_url: -# type: string -# format: uri -# column_name: -# type: string -# previous_column_name: -# type: string -# required: -# - id -# - url -# - project_id -# - project_url -# - column_name -# required: -# - id -# - node_id -# - url -# - actor -# - event -# - commit_id -# - commit_url -# - created_at -# - performed_via_github_app -# converted-note-to-issue-issue-event: -# title: Converted Note to Issue Issue Event -# description: Converted Note to Issue Issue Event -# type: object -# properties: -# id: -# type: integer -# node_id: -# type: string -# url: -# type: string -# actor: -# "$ref": "#/components/schemas/simple-user" -# event: -# type: string -# commit_id: -# type: string -# nullable: true -# commit_url: -# type: string -# nullable: true -# created_at: -# type: string -# performed_via_github_app: -# "$ref": "#/components/schemas/integration" -# project_card: -# type: object -# properties: -# id: -# type: integer -# url: -# type: string -# format: uri -# project_id: -# type: integer -# project_url: -# type: string -# format: uri -# column_name: -# type: string -# previous_column_name: -# type: string -# required: -# - id -# - url -# - project_id -# - project_url -# - column_name -# required: -# - id -# - node_id -# - url -# - actor -# - event -# - commit_id -# - commit_url -# - created_at -# - performed_via_github_app -# issue-event-for-issue: -# title: Issue Event for Issue -# description: Issue Event for Issue -# anyOf: -# - "$ref": "#/components/schemas/labeled-issue-event" -# - "$ref": "#/components/schemas/unlabeled-issue-event" -# - "$ref": "#/components/schemas/assigned-issue-event" -# - "$ref": "#/components/schemas/unassigned-issue-event" -# - "$ref": "#/components/schemas/milestoned-issue-event" -# - "$ref": "#/components/schemas/demilestoned-issue-event" -# - "$ref": "#/components/schemas/renamed-issue-event" -# - "$ref": "#/components/schemas/review-requested-issue-event" -# - "$ref": "#/components/schemas/review-request-removed-issue-event" -# - "$ref": "#/components/schemas/review-dismissed-issue-event" -# - "$ref": "#/components/schemas/locked-issue-event" -# - "$ref": "#/components/schemas/added-to-project-issue-event" -# - "$ref": "#/components/schemas/moved-column-in-project-issue-event" -# - "$ref": "#/components/schemas/removed-from-project-issue-event" -# - "$ref": "#/components/schemas/converted-note-to-issue-issue-event" + labeled-issue-event: + title: Labeled Issue Event + description: Labeled Issue Event + type: object + properties: + id: + type: integer + node_id: + type: string + url: + type: string + actor: + "$ref": "#/components/schemas/simple-user" + event: + type: string + commit_id: + type: string + nullable: true + commit_url: + type: string + nullable: true + created_at: + type: string + performed_via_github_app: + "$ref": "#/components/schemas/nullable-integration" + label: + type: object + properties: + name: + type: string + color: + type: string + required: + - name + - color + required: + - label + - id + - node_id + - url + - actor + - event + - commit_id + - commit_url + - created_at + - performed_via_github_app + unlabeled-issue-event: + title: Unlabeled Issue Event + description: Unlabeled Issue Event + type: object + properties: + id: + type: integer + node_id: + type: string + url: + type: string + actor: + "$ref": "#/components/schemas/simple-user" + event: + type: string + commit_id: + type: string + nullable: true + commit_url: + type: string + nullable: true + created_at: + type: string + performed_via_github_app: + "$ref": "#/components/schemas/nullable-integration" + label: + type: object + properties: + name: + type: string + color: + type: string + required: + - name + - color + required: + - label + - id + - node_id + - url + - actor + - event + - commit_id + - commit_url + - created_at + - performed_via_github_app + assigned-issue-event: + title: Assigned Issue Event + description: Assigned Issue Event + type: object + properties: + id: + type: integer + node_id: + type: string + url: + type: string + actor: + "$ref": "#/components/schemas/simple-user" + event: + type: string + commit_id: + type: string + nullable: true + commit_url: + type: string + nullable: true + created_at: + type: string + performed_via_github_app: + "$ref": "#/components/schemas/integration" + assignee: + "$ref": "#/components/schemas/simple-user" + assigner: + "$ref": "#/components/schemas/simple-user" + required: + - id + - node_id + - url + - actor + - event + - commit_id + - commit_url + - created_at + - performed_via_github_app + - assignee + - assigner + unassigned-issue-event: + title: Unassigned Issue Event + description: Unassigned Issue Event + type: object + properties: + id: + type: integer + node_id: + type: string + url: + type: string + actor: + "$ref": "#/components/schemas/simple-user" + event: + type: string + commit_id: + type: string + nullable: true + commit_url: + type: string + nullable: true + created_at: + type: string + performed_via_github_app: + "$ref": "#/components/schemas/nullable-integration" + assignee: + "$ref": "#/components/schemas/simple-user" + assigner: + "$ref": "#/components/schemas/simple-user" + required: + - id + - node_id + - url + - actor + - event + - commit_id + - commit_url + - created_at + - performed_via_github_app + - assignee + - assigner + milestoned-issue-event: + title: Milestoned Issue Event + description: Milestoned Issue Event + type: object + properties: + id: + type: integer + node_id: + type: string + url: + type: string + actor: + "$ref": "#/components/schemas/simple-user" + event: + type: string + commit_id: + type: string + nullable: true + commit_url: + type: string + nullable: true + created_at: + type: string + performed_via_github_app: + "$ref": "#/components/schemas/nullable-integration" + milestone: + type: object + properties: + title: + type: string + required: + - title + required: + - milestone + - id + - node_id + - url + - actor + - event + - commit_id + - commit_url + - created_at + - performed_via_github_app + demilestoned-issue-event: + title: Demilestoned Issue Event + description: Demilestoned Issue Event + type: object + properties: + id: + type: integer + node_id: + type: string + url: + type: string + actor: + "$ref": "#/components/schemas/simple-user" + event: + type: string + commit_id: + type: string + nullable: true + commit_url: + type: string + nullable: true + created_at: + type: string + performed_via_github_app: + "$ref": "#/components/schemas/nullable-integration" + milestone: + type: object + properties: + title: + type: string + required: + - title + required: + - milestone + - id + - node_id + - url + - actor + - event + - commit_id + - commit_url + - created_at + - performed_via_github_app + renamed-issue-event: + title: Renamed Issue Event + description: Renamed Issue Event + type: object + properties: + id: + type: integer + node_id: + type: string + url: + type: string + actor: + "$ref": "#/components/schemas/simple-user" + event: + type: string + commit_id: + type: string + nullable: true + commit_url: + type: string + nullable: true + created_at: + type: string + performed_via_github_app: + "$ref": "#/components/schemas/nullable-integration" + rename: + type: object + properties: + from: + type: string + to: + type: string + required: + - from + - to + required: + - rename + - id + - node_id + - url + - actor + - event + - commit_id + - commit_url + - created_at + - performed_via_github_app + review-requested-issue-event: + title: Review Requested Issue Event + description: Review Requested Issue Event + type: object + properties: + id: + type: integer + node_id: + type: string + url: + type: string + actor: + "$ref": "#/components/schemas/simple-user" + event: + type: string + commit_id: + type: string + nullable: true + commit_url: + type: string + nullable: true + created_at: + type: string + performed_via_github_app: + "$ref": "#/components/schemas/nullable-integration" + review_requester: + "$ref": "#/components/schemas/simple-user" + requested_team: + "$ref": "#/components/schemas/team" + requested_reviewer: + "$ref": "#/components/schemas/simple-user" + required: + - review_requester + - id + - node_id + - url + - actor + - event + - commit_id + - commit_url + - created_at + - performed_via_github_app + review-request-removed-issue-event: + title: Review Request Removed Issue Event + description: Review Request Removed Issue Event + type: object + properties: + id: + type: integer + node_id: + type: string + url: + type: string + actor: + "$ref": "#/components/schemas/simple-user" + event: + type: string + commit_id: + type: string + nullable: true + commit_url: + type: string + nullable: true + created_at: + type: string + performed_via_github_app: + "$ref": "#/components/schemas/nullable-integration" + review_requester: + "$ref": "#/components/schemas/simple-user" + requested_team: + "$ref": "#/components/schemas/team" + requested_reviewer: + "$ref": "#/components/schemas/simple-user" + required: + - review_requester + - id + - node_id + - url + - actor + - event + - commit_id + - commit_url + - created_at + - performed_via_github_app + review-dismissed-issue-event: + title: Review Dismissed Issue Event + description: Review Dismissed Issue Event + type: object + properties: + id: + type: integer + node_id: + type: string + url: + type: string + actor: + "$ref": "#/components/schemas/simple-user" + event: + type: string + commit_id: + type: string + nullable: true + commit_url: + type: string + nullable: true + created_at: + type: string + performed_via_github_app: + "$ref": "#/components/schemas/nullable-integration" + dismissed_review: + type: object + properties: + state: + type: string + review_id: + type: integer + dismissal_message: + nullable: true + type: string + dismissal_commit_id: + type: string + required: + - state + - review_id + - dismissal_message + required: + - dismissed_review + - id + - node_id + - url + - actor + - event + - commit_id + - commit_url + - created_at + - performed_via_github_app + locked-issue-event: + title: Locked Issue Event + description: Locked Issue Event + type: object + properties: + id: + type: integer + node_id: + type: string + url: + type: string + actor: + "$ref": "#/components/schemas/simple-user" + event: + type: string + commit_id: + type: string + nullable: true + commit_url: + type: string + nullable: true + created_at: + type: string + performed_via_github_app: + "$ref": "#/components/schemas/nullable-integration" + lock_reason: + type: string + example: '"off-topic"' + nullable: true + required: + - lock_reason + - id + - node_id + - url + - actor + - event + - commit_id + - commit_url + - created_at + - performed_via_github_app + added-to-project-issue-event: + title: Added to Project Issue Event + description: Added to Project Issue Event + type: object + properties: + id: + type: integer + node_id: + type: string + url: + type: string + actor: + "$ref": "#/components/schemas/simple-user" + event: + type: string + commit_id: + type: string + nullable: true + commit_url: + type: string + nullable: true + created_at: + type: string + performed_via_github_app: + "$ref": "#/components/schemas/nullable-integration" + project_card: + type: object + properties: + id: + type: integer + url: + type: string + format: uri + project_id: + type: integer + project_url: + type: string + format: uri + column_name: + type: string + previous_column_name: + type: string + required: + - id + - url + - project_id + - project_url + - column_name + required: + - id + - node_id + - url + - actor + - event + - commit_id + - commit_url + - created_at + - performed_via_github_app + moved-column-in-project-issue-event: + title: Moved Column in Project Issue Event + description: Moved Column in Project Issue Event + type: object + properties: + id: + type: integer + node_id: + type: string + url: + type: string + actor: + "$ref": "#/components/schemas/simple-user" + event: + type: string + commit_id: + type: string + nullable: true + commit_url: + type: string + nullable: true + created_at: + type: string + performed_via_github_app: + "$ref": "#/components/schemas/nullable-integration" + project_card: + type: object + properties: + id: + type: integer + url: + type: string + format: uri + project_id: + type: integer + project_url: + type: string + format: uri + column_name: + type: string + previous_column_name: + type: string + required: + - id + - url + - project_id + - project_url + - column_name + required: + - id + - node_id + - url + - actor + - event + - commit_id + - commit_url + - created_at + - performed_via_github_app + removed-from-project-issue-event: + title: Removed from Project Issue Event + description: Removed from Project Issue Event + type: object + properties: + id: + type: integer + node_id: + type: string + url: + type: string + actor: + "$ref": "#/components/schemas/simple-user" + event: + type: string + commit_id: + type: string + nullable: true + commit_url: + type: string + nullable: true + created_at: + type: string + performed_via_github_app: + "$ref": "#/components/schemas/nullable-integration" + project_card: + type: object + properties: + id: + type: integer + url: + type: string + format: uri + project_id: + type: integer + project_url: + type: string + format: uri + column_name: + type: string + previous_column_name: + type: string + required: + - id + - url + - project_id + - project_url + - column_name + required: + - id + - node_id + - url + - actor + - event + - commit_id + - commit_url + - created_at + - performed_via_github_app + converted-note-to-issue-issue-event: + title: Converted Note to Issue Issue Event + description: Converted Note to Issue Issue Event + type: object + properties: + id: + type: integer + node_id: + type: string + url: + type: string + actor: + "$ref": "#/components/schemas/simple-user" + event: + type: string + commit_id: + type: string + nullable: true + commit_url: + type: string + nullable: true + created_at: + type: string + performed_via_github_app: + "$ref": "#/components/schemas/integration" + project_card: + type: object + properties: + id: + type: integer + url: + type: string + format: uri + project_id: + type: integer + project_url: + type: string + format: uri + column_name: + type: string + previous_column_name: + type: string + required: + - id + - url + - project_id + - project_url + - column_name + required: + - id + - node_id + - url + - actor + - event + - commit_id + - commit_url + - created_at + - performed_via_github_app + issue-event-for-issue: + title: Issue Event for Issue + description: Issue Event for Issue + anyOf: + - "$ref": "#/components/schemas/labeled-issue-event" + - "$ref": "#/components/schemas/unlabeled-issue-event" + - "$ref": "#/components/schemas/assigned-issue-event" + - "$ref": "#/components/schemas/unassigned-issue-event" + - "$ref": "#/components/schemas/milestoned-issue-event" + - "$ref": "#/components/schemas/demilestoned-issue-event" + - "$ref": "#/components/schemas/renamed-issue-event" + - "$ref": "#/components/schemas/review-requested-issue-event" + - "$ref": "#/components/schemas/review-request-removed-issue-event" + - "$ref": "#/components/schemas/review-dismissed-issue-event" + - "$ref": "#/components/schemas/locked-issue-event" + - "$ref": "#/components/schemas/added-to-project-issue-event" + - "$ref": "#/components/schemas/moved-column-in-project-issue-event" + - "$ref": "#/components/schemas/removed-from-project-issue-event" + - "$ref": "#/components/schemas/converted-note-to-issue-issue-event" label: title: Label description: Color-coded labels help you categorize and filter your issues (just @@ -75766,298 +75766,298 @@ components: # - description - color - default -# timeline-comment-event: -# title: Timeline Comment Event -# description: Timeline Comment Event -# type: object -# properties: -# event: -# type: string -# actor: -# "$ref": "#/components/schemas/simple-user" -# id: -# description: Unique identifier of the issue comment -# example: 42 -# type: integer -# node_id: -# type: string -# url: -# description: URL for the issue comment -# example: https://api.github.com/repositories/42/issues/comments/1 -# type: string -# format: uri -# body: -# description: Contents of the issue comment -# example: What version of Safari were you using when you observed this bug? -# type: string -# body_text: -# type: string -# body_html: -# type: string -# html_url: -# type: string -# format: uri -# user: -# "$ref": "#/components/schemas/simple-user" -# created_at: -# type: string -# format: date-time -# example: '2011-04-14T16:00:49Z' -# updated_at: -# type: string -# format: date-time -# example: '2011-04-14T16:00:49Z' -# issue_url: -# type: string -# format: uri -# author_association: -# "$ref": "#/components/schemas/author-association" -# performed_via_github_app: -# "$ref": "#/components/schemas/nullable-integration" -# reactions: -# "$ref": "#/components/schemas/reaction-rollup" -# required: -# - event -# - actor -# - id -# - node_id -# - html_url -# - issue_url -# - author_association -# - user -# - url -# - created_at -# - updated_at -# timeline-cross-referenced-event: -# title: Timeline Cross Referenced Event -# description: Timeline Cross Referenced Event -# type: object -# properties: -# event: -# type: string -# actor: -# "$ref": "#/components/schemas/simple-user" -# created_at: -# type: string -# format: date-time -# updated_at: -# type: string -# format: date-time -# source: -# type: object -# properties: -# type: -# type: string -# issue: -# "$ref": "#/components/schemas/issue" -# required: -# - event -# - created_at -# - updated_at -# - source -# timeline-committed-event: -# title: Timeline Committed Event -# description: Timeline Committed Event -# type: object -# properties: -# event: -# type: string -# sha: -# description: SHA for the commit -# example: 7638417db6d59f3c431d3e1f261cc637155684cd -# type: string -# node_id: -# type: string -# url: -# type: string -# format: uri -# author: -# description: Identifying information for the git-user -# type: object -# properties: -# date: -# description: Timestamp of the commit -# example: '2014-08-09T08:02:04+12:00' -# format: date-time -# type: string -# email: -# type: string -# description: Git email address of the user -# example: monalisa.octocat@example.com -# name: -# description: Name of the git user -# example: Monalisa Octocat -# type: string -# required: -# - email -# - name -# - date -# committer: -# description: Identifying information for the git-user -# type: object -# properties: -# date: -# description: Timestamp of the commit -# example: '2014-08-09T08:02:04+12:00' -# format: date-time -# type: string -# email: -# type: string -# description: Git email address of the user -# example: monalisa.octocat@example.com -# name: -# description: Name of the git user -# example: Monalisa Octocat -# type: string -# required: -# - email -# - name -# - date -# message: -# description: Message describing the purpose of the commit -# example: 'Fix #42' -# type: string -# tree: -# type: object -# properties: -# sha: -# description: SHA for the commit -# example: 7638417db6d59f3c431d3e1f261cc637155684cd -# type: string -# url: -# type: string -# format: uri -# required: -# - sha -# - url -# parents: -# type: array -# items: -# type: object -# properties: -# sha: -# description: SHA for the commit -# example: 7638417db6d59f3c431d3e1f261cc637155684cd -# type: string -# url: -# type: string -# format: uri -# html_url: -# type: string -# format: uri -# required: -# - sha -# - url -# - html_url -# verification: -# type: object -# properties: -# verified: -# type: boolean -# reason: -# type: string -# signature: -# type: string -# nullable: true -# payload: -# type: string -# nullable: true -# required: -# - verified -# - reason -# - signature -# - payload -# html_url: -# type: string -# format: uri -# required: -# - sha -# - node_id -# - url -# - html_url -# - author -# - committer -# - tree -# - message -# - parents -# - verification -# timeline-reviewed-event: -# title: Timeline Reviewed Event -# description: Timeline Reviewed Event -# type: object -# properties: -# event: -# type: string -# id: -# description: Unique identifier of the review -# example: 42 -# type: integer -# node_id: -# type: string -# example: MDE3OlB1bGxSZXF1ZXN0UmV2aWV3ODA= -# user: -# "$ref": "#/components/schemas/simple-user" -# body: -# nullable: true -# description: The text of the review. -# example: This looks great. -# type: string -# state: -# type: string -# example: CHANGES_REQUESTED -# html_url: -# type: string -# format: uri -# example: https://github.com/octocat/Hello-World/pull/12#pullrequestreview-80 -# pull_request_url: -# type: string -# format: uri -# example: https://api.github.com/repos/octocat/Hello-World/pulls/12 -# _links: -# type: object -# properties: -# html: -# type: object -# properties: -# href: -# type: string -# required: -# - href -# pull_request: -# type: object -# properties: -# href: -# type: string -# required: -# - href -# required: -# - html -# - pull_request -# submitted_at: -# type: string -# format: date-time -# commit_id: -# description: A commit SHA for the review. -# example: 54bb654c9e6025347f57900a4a5c2313a96b8035 -# type: string -# body_html: -# type: string -# body_text: -# type: string -# author_association: -# "$ref": "#/components/schemas/author-association" -# required: -# - event -# - id -# - node_id -# - user -# - body -# - state -# - commit_id -# - html_url -# - pull_request_url -# - _links -# - author_association + timeline-comment-event: + title: Timeline Comment Event + description: Timeline Comment Event + type: object + properties: + event: + type: string + actor: + "$ref": "#/components/schemas/simple-user" + id: + description: Unique identifier of the issue comment + example: 42 + type: integer + node_id: + type: string + url: + description: URL for the issue comment + example: https://api.github.com/repositories/42/issues/comments/1 + type: string + format: uri + body: + description: Contents of the issue comment + example: What version of Safari were you using when you observed this bug? + type: string + body_text: + type: string + body_html: + type: string + html_url: + type: string + format: uri + user: + "$ref": "#/components/schemas/simple-user" + created_at: + type: string + format: date-time + example: '2011-04-14T16:00:49Z' + updated_at: + type: string + format: date-time + example: '2011-04-14T16:00:49Z' + issue_url: + type: string + format: uri + author_association: + "$ref": "#/components/schemas/author-association" + performed_via_github_app: + "$ref": "#/components/schemas/nullable-integration" + reactions: + "$ref": "#/components/schemas/reaction-rollup" + required: + - event + - actor + - id + - node_id + - html_url + - issue_url + - author_association + - user + - url + - created_at + - updated_at + timeline-cross-referenced-event: + title: Timeline Cross Referenced Event + description: Timeline Cross Referenced Event + type: object + properties: + event: + type: string + actor: + "$ref": "#/components/schemas/simple-user" + created_at: + type: string + format: date-time + updated_at: + type: string + format: date-time + source: + type: object + properties: + type: + type: string + issue: + "$ref": "#/components/schemas/issue" + required: + - event + - created_at + - updated_at + - source + timeline-committed-event: + title: Timeline Committed Event + description: Timeline Committed Event + type: object + properties: + event: + type: string + sha: + description: SHA for the commit + example: 7638417db6d59f3c431d3e1f261cc637155684cd + type: string + node_id: + type: string + url: + type: string + format: uri + author: + description: Identifying information for the git-user + type: object + properties: + date: + description: Timestamp of the commit + example: '2014-08-09T08:02:04+12:00' + format: date-time + type: string + email: + type: string + description: Git email address of the user + example: monalisa.octocat@example.com + name: + description: Name of the git user + example: Monalisa Octocat + type: string + required: + - email + - name + - date + committer: + description: Identifying information for the git-user + type: object + properties: + date: + description: Timestamp of the commit + example: '2014-08-09T08:02:04+12:00' + format: date-time + type: string + email: + type: string + description: Git email address of the user + example: monalisa.octocat@example.com + name: + description: Name of the git user + example: Monalisa Octocat + type: string + required: + - email + - name + - date + message: + description: Message describing the purpose of the commit + example: 'Fix #42' + type: string + tree: + type: object + properties: + sha: + description: SHA for the commit + example: 7638417db6d59f3c431d3e1f261cc637155684cd + type: string + url: + type: string + format: uri + required: + - sha + - url + parents: + type: array + items: + type: object + properties: + sha: + description: SHA for the commit + example: 7638417db6d59f3c431d3e1f261cc637155684cd + type: string + url: + type: string + format: uri + html_url: + type: string + format: uri + required: + - sha + - url + - html_url + verification: + type: object + properties: + verified: + type: boolean + reason: + type: string + signature: + type: string + nullable: true + payload: + type: string + nullable: true + required: + - verified + - reason + - signature + - payload + html_url: + type: string + format: uri + required: + - sha + - node_id + - url + - html_url + - author + - committer + - tree + - message + - parents + - verification + timeline-reviewed-event: + title: Timeline Reviewed Event + description: Timeline Reviewed Event + type: object + properties: + event: + type: string + id: + description: Unique identifier of the review + example: 42 + type: integer + node_id: + type: string + example: MDE3OlB1bGxSZXF1ZXN0UmV2aWV3ODA= + user: + "$ref": "#/components/schemas/simple-user" + body: + nullable: true + description: The text of the review. + example: This looks great. + type: string + state: + type: string + example: CHANGES_REQUESTED + html_url: + type: string + format: uri + example: https://github.com/octocat/Hello-World/pull/12#pullrequestreview-80 + pull_request_url: + type: string + format: uri + example: https://api.github.com/repos/octocat/Hello-World/pulls/12 + _links: + type: object + properties: + html: + type: object + properties: + href: + type: string + required: + - href + pull_request: + type: object + properties: + href: + type: string + required: + - href + required: + - html + - pull_request + submitted_at: + type: string + format: date-time + commit_id: + description: A commit SHA for the review. + example: 54bb654c9e6025347f57900a4a5c2313a96b8035 + type: string + body_html: + type: string + body_text: + type: string + author_association: + "$ref": "#/components/schemas/author-association" + required: + - event + - id + - node_id + - user + - body + - state + - commit_id + - html_url + - pull_request_url + - _links + - author_association pull-request-review-comment: title: Pull Request Review Comment description: Pull Request Review Comments are comments on a portion of the Pull @@ -76239,175 +76239,177 @@ components: - pull_request_url - author_association - _links -# timeline-line-commented-event: -# title: Timeline Line Commented Event -# description: Timeline Line Commented Event -# type: object -# properties: -# event: -# type: string -# node_id: -# type: string -# comments: -# type: array -# items: -# "$ref": "#/components/schemas/pull-request-review-comment" -# timeline-commit-commented-event: -# title: Timeline Commit Commented Event -# description: Timeline Commit Commented Event -# type: object -# properties: -# event: -# type: string -# node_id: -# type: string -# commit_id: -# type: string -# comments: -# type: array -# items: -# "$ref": "#/components/schemas/commit-comment" -# timeline-assigned-issue-event: -# title: Timeline Assigned Issue Event -# description: Timeline Assigned Issue Event -# type: object -# properties: -# id: -# type: integer -# node_id: -# type: string -# url: -# type: string -# actor: -# "$ref": "#/components/schemas/simple-user" -# event: -# type: string -# commit_id: -# type: string -# nullable: true -# commit_url: -# type: string -# nullable: true -# created_at: -# type: string -# performed_via_github_app: -# "$ref": "#/components/schemas/nullable-integration" -# assignee: -# "$ref": "#/components/schemas/simple-user" -# required: -# - id -# - node_id -# - url -# - actor -# - event -# - commit_id -# - commit_url -# - created_at -# - performed_via_github_app -# - assignee -# timeline-unassigned-issue-event: -# title: Timeline Unassigned Issue Event -# description: Timeline Unassigned Issue Event -# type: object -# properties: -# id: -# type: integer -# node_id: -# type: string -# url: -# type: string -# actor: -# "$ref": "#/components/schemas/simple-user" -# event: -# type: string -# commit_id: -# type: string -# nullable: true -# commit_url: -# type: string -# nullable: true -# created_at: -# type: string -# performed_via_github_app: -# "$ref": "#/components/schemas/nullable-integration" -# assignee: -# "$ref": "#/components/schemas/simple-user" -# required: -# - id -# - node_id -# - url -# - actor -# - event -# - commit_id -# - commit_url -# - created_at -# - performed_via_github_app -# - assignee -# state-change-issue-event: -# title: State Change Issue Event -# description: State Change Issue Event -# type: object -# properties: -# id: -# type: integer -# node_id: -# type: string -# url: -# type: string -# actor: -# "$ref": "#/components/schemas/simple-user" -# event: -# type: string -# commit_id: -# type: string -# nullable: true -# commit_url: -# type: string -# nullable: true -# created_at: -# type: string -# performed_via_github_app: -# "$ref": "#/components/schemas/nullable-integration" -# state_reason: -# type: string -# nullable: true -# required: -# - id -# - node_id -# - url -# - actor -# - event -# - commit_id -# - commit_url -# - created_at -# - performed_via_github_app -# timeline-issue-events: -# title: Timeline Event -# description: Timeline Event -# type: object -# anyOf: -# - "$ref": "#/components/schemas/labeled-issue-event" -# - "$ref": "#/components/schemas/unlabeled-issue-event" -# - "$ref": "#/components/schemas/milestoned-issue-event" -# - "$ref": "#/components/schemas/demilestoned-issue-event" -# - "$ref": "#/components/schemas/renamed-issue-event" -# - "$ref": "#/components/schemas/review-requested-issue-event" -# - "$ref": "#/components/schemas/review-request-removed-issue-event" -# - "$ref": "#/components/schemas/review-dismissed-issue-event" -# - "$ref": "#/components/schemas/locked-issue-event" -# - "$ref": "#/components/schemas/added-to-project-issue-event" -# - "$ref": "#/components/schemas/moved-column-in-project-issue-event" -# - "$ref": "#/components/schemas/removed-from-project-issue-event" -# - "$ref": "#/components/schemas/converted-note-to-issue-issue-event" -# - "$ref": "#/components/schemas/timeline-comment-event" -# - "$ref": "#/components/schemas/timeline-cross-referenced-event" -# - "$ref": "#/components/schemas/timeline-committed-event" -# - "$ref": "#/components/schemas/timeline-reviewed-event" -# - "$ref": "#/components/schemas/timeline-line-commented-event" -# - "$ref": "#/components/schemas/timeline-commit-commented-event" -# - "$ref": "#/components/schemas/timeline-assigned-issue-event" -# - "$ref": "#/components/schemas/timeline-unassigned-issue-event" -# - "$ref": "#/components/schemas/state-change-issue-event" + timeline-line-commented-event: + title: Timeline Line Commented Event + description: Timeline Line Commented Event + type: object + properties: + event: + type: string + node_id: + type: string + actor: + "$ref": "#/components/schemas/simple-user" + comments: + type: array + items: + "$ref": "#/components/schemas/pull-request-review-comment" + timeline-commit-commented-event: + title: Timeline Commit Commented Event + description: Timeline Commit Commented Event + type: object + properties: + event: + type: string + node_id: + type: string + commit_id: + type: string + comments: + type: array + items: + "$ref": "#/components/schemas/commit-comment" + timeline-assigned-issue-event: + title: Timeline Assigned Issue Event + description: Timeline Assigned Issue Event + type: object + properties: + id: + type: integer + node_id: + type: string + url: + type: string + actor: + "$ref": "#/components/schemas/simple-user" + event: + type: string + commit_id: + type: string + nullable: true + commit_url: + type: string + nullable: true + created_at: + type: string + performed_via_github_app: + "$ref": "#/components/schemas/nullable-integration" + assignee: + "$ref": "#/components/schemas/simple-user" + required: + - id + - node_id + - url + - actor + - event + - commit_id + - commit_url + - created_at + - performed_via_github_app + - assignee + timeline-unassigned-issue-event: + title: Timeline Unassigned Issue Event + description: Timeline Unassigned Issue Event + type: object + properties: + id: + type: integer + node_id: + type: string + url: + type: string + actor: + "$ref": "#/components/schemas/simple-user" + event: + type: string + commit_id: + type: string + nullable: true + commit_url: + type: string + nullable: true + created_at: + type: string + performed_via_github_app: + "$ref": "#/components/schemas/nullable-integration" + assignee: + "$ref": "#/components/schemas/simple-user" + required: + - id + - node_id + - url + - actor + - event + - commit_id + - commit_url + - created_at + - performed_via_github_app + - assignee + state-change-issue-event: + title: State Change Issue Event + description: State Change Issue Event + type: object + properties: + id: + type: integer + node_id: + type: string + url: + type: string + actor: + "$ref": "#/components/schemas/simple-user" + event: + type: string + commit_id: + type: string + nullable: true + commit_url: + type: string + nullable: true + created_at: + type: string + performed_via_github_app: + "$ref": "#/components/schemas/nullable-integration" + state_reason: + type: string + nullable: true + required: + - id + - node_id + - url + - actor + - event + - commit_id + - commit_url + - created_at + - performed_via_github_app + timeline-issue-events: + title: Timeline Event + description: Timeline Event + type: object + anyOf: + - "$ref": "#/components/schemas/labeled-issue-event" + - "$ref": "#/components/schemas/unlabeled-issue-event" + - "$ref": "#/components/schemas/milestoned-issue-event" + - "$ref": "#/components/schemas/demilestoned-issue-event" + - "$ref": "#/components/schemas/renamed-issue-event" + - "$ref": "#/components/schemas/review-requested-issue-event" + - "$ref": "#/components/schemas/review-request-removed-issue-event" + - "$ref": "#/components/schemas/review-dismissed-issue-event" + - "$ref": "#/components/schemas/locked-issue-event" + - "$ref": "#/components/schemas/added-to-project-issue-event" + - "$ref": "#/components/schemas/moved-column-in-project-issue-event" + - "$ref": "#/components/schemas/removed-from-project-issue-event" + - "$ref": "#/components/schemas/converted-note-to-issue-issue-event" + - "$ref": "#/components/schemas/timeline-comment-event" + - "$ref": "#/components/schemas/timeline-cross-referenced-event" + - "$ref": "#/components/schemas/timeline-committed-event" + - "$ref": "#/components/schemas/timeline-reviewed-event" + - "$ref": "#/components/schemas/timeline-line-commented-event" + - "$ref": "#/components/schemas/timeline-commit-commented-event" + - "$ref": "#/components/schemas/timeline-assigned-issue-event" + - "$ref": "#/components/schemas/timeline-unassigned-issue-event" + - "$ref": "#/components/schemas/state-change-issue-event" # deploy-key: # title: Deploy Key # description: An SSH key granting access to a single repository. @@ -209639,72 +209641,72 @@ components: # created_at: '2011-04-14T16:00:49Z' # updated_at: '2011-04-14T16:00:49Z' # author_association: COLLABORATOR -# commit-comment: -# value: -# html_url: https://github.com/octocat/Hello-World/commit/6dcb09b5b57875f334f61aebed695e2e4193db5e#commitcomment-1 -# url: https://api.github.com/repos/octocat/Hello-World/comments/1 -# id: 1 -# node_id: MDEzOkNvbW1pdENvbW1lbnQx -# body: Great stuff -# path: file1.txt -# position: 4 -# line: 14 -# commit_id: 6dcb09b5b57875f334f61aebed695e2e4193db5e -# author_association: COLLABORATOR -# user: -# login: octocat -# id: 1 -# node_id: MDQ6VXNlcjE= -# avatar_url: https://github.com/images/error/octocat_happy.gif -# gravatar_id: '' -# url: https://api.github.com/users/octocat -# html_url: https://github.com/octocat -# followers_url: https://api.github.com/users/octocat/followers -# following_url: https://api.github.com/users/octocat/following{/other_user} -# gists_url: https://api.github.com/users/octocat/gists{/gist_id} -# starred_url: https://api.github.com/users/octocat/starred{/owner}{/repo} -# subscriptions_url: https://api.github.com/users/octocat/subscriptions -# organizations_url: https://api.github.com/users/octocat/orgs -# repos_url: https://api.github.com/users/octocat/repos -# events_url: https://api.github.com/users/octocat/events{/privacy} -# received_events_url: https://api.github.com/users/octocat/received_events -# type: User -# site_admin: false -# created_at: '2011-04-14T16:00:49Z' -# updated_at: '2011-04-14T16:00:49Z' -# commit-comment-2: -# value: -# html_url: https://github.com/octocat/Hello-World/commit/6dcb09b5b57875f334f61aebed695e2e4193db5e#commitcomment-1 -# url: https://api.github.com/repos/octocat/Hello-World/comments/1 -# id: 1 -# node_id: MDEzOkNvbW1pdENvbW1lbnQx -# body: Nice change -# path: file1.txt -# position: 4 -# line: 14 -# commit_id: 6dcb09b5b57875f334f61aebed695e2e4193db5e -# author_association: COLLABORATOR -# user: -# login: octocat -# id: 1 -# node_id: MDQ6VXNlcjE= -# avatar_url: https://github.com/images/error/octocat_happy.gif -# gravatar_id: '' -# url: https://api.github.com/users/octocat -# html_url: https://github.com/octocat -# followers_url: https://api.github.com/users/octocat/followers -# following_url: https://api.github.com/users/octocat/following{/other_user} -# gists_url: https://api.github.com/users/octocat/gists{/gist_id} -# starred_url: https://api.github.com/users/octocat/starred{/owner}{/repo} -# subscriptions_url: https://api.github.com/users/octocat/subscriptions -# organizations_url: https://api.github.com/users/octocat/orgs -# repos_url: https://api.github.com/users/octocat/repos -# events_url: https://api.github.com/users/octocat/events{/privacy} -# received_events_url: https://api.github.com/users/octocat/received_events -# type: User -# site_admin: false -# created_at: '2011-04-14T16:00:49Z' -# updated_at: '2011-04-14T16:00:49Z' + commit-comment: + value: + html_url: https://github.com/octocat/Hello-World/commit/6dcb09b5b57875f334f61aebed695e2e4193db5e#commitcomment-1 + url: https://api.github.com/repos/octocat/Hello-World/comments/1 + id: 1 + node_id: MDEzOkNvbW1pdENvbW1lbnQx + body: Great stuff + path: file1.txt + position: 4 + line: 14 + commit_id: 6dcb09b5b57875f334f61aebed695e2e4193db5e + author_association: COLLABORATOR + user: + login: octocat + id: 1 + node_id: MDQ6VXNlcjE= + avatar_url: https://github.com/images/error/octocat_happy.gif + gravatar_id: '' + url: https://api.github.com/users/octocat + html_url: https://github.com/octocat + followers_url: https://api.github.com/users/octocat/followers + following_url: https://api.github.com/users/octocat/following{/other_user} + gists_url: https://api.github.com/users/octocat/gists{/gist_id} + starred_url: https://api.github.com/users/octocat/starred{/owner}{/repo} + subscriptions_url: https://api.github.com/users/octocat/subscriptions + organizations_url: https://api.github.com/users/octocat/orgs + repos_url: https://api.github.com/users/octocat/repos + events_url: https://api.github.com/users/octocat/events{/privacy} + received_events_url: https://api.github.com/users/octocat/received_events + type: User + site_admin: false + created_at: '2011-04-14T16:00:49Z' + updated_at: '2011-04-14T16:00:49Z' + commit-comment-2: + value: + html_url: https://github.com/octocat/Hello-World/commit/6dcb09b5b57875f334f61aebed695e2e4193db5e#commitcomment-1 + url: https://api.github.com/repos/octocat/Hello-World/comments/1 + id: 1 + node_id: MDEzOkNvbW1pdENvbW1lbnQx + body: Nice change + path: file1.txt + position: 4 + line: 14 + commit_id: 6dcb09b5b57875f334f61aebed695e2e4193db5e + author_association: COLLABORATOR + user: + login: octocat + id: 1 + node_id: MDQ6VXNlcjE= + avatar_url: https://github.com/images/error/octocat_happy.gif + gravatar_id: '' + url: https://api.github.com/users/octocat + html_url: https://github.com/octocat + followers_url: https://api.github.com/users/octocat/followers + following_url: https://api.github.com/users/octocat/following{/other_user} + gists_url: https://api.github.com/users/octocat/gists{/gist_id} + starred_url: https://api.github.com/users/octocat/starred{/owner}{/repo} + subscriptions_url: https://api.github.com/users/octocat/subscriptions + organizations_url: https://api.github.com/users/octocat/orgs + repos_url: https://api.github.com/users/octocat/repos + events_url: https://api.github.com/users/octocat/events{/privacy} + received_events_url: https://api.github.com/users/octocat/received_events + type: User + site_admin: false + created_at: '2011-04-14T16:00:49Z' + updated_at: '2011-04-14T16:00:49Z' commit-items: value: - url: https://api.github.com/repos/octocat/Hello-World/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e @@ -213378,156 +213380,156 @@ components: # description: Something isn't working # color: f29513 # default: true -# timeline-issue-events: -# value: -# - id: 6430295168 -# node_id: LOE_lADODwFebM5HwC0kzwAAAAF_RoSA -# url: https://api.github.com/repos/github/roadmap/issues/events/6430295168 -# actor: -# login: github -# id: 9919 -# node_id: MDEyOk9yZ2FuaXphdGlvbjk5MTk= -# avatar_url: https://avatars.githubusercontent.com/u/9919?v=4 -# gravatar_id: '' -# url: https://api.github.com/users/github -# html_url: https://github.com/github -# followers_url: https://api.github.com/users/github/followers -# following_url: https://api.github.com/users/github/following{/other_user} -# gists_url: https://api.github.com/users/github/gists{/gist_id} -# starred_url: https://api.github.com/users/github/starred{/owner}{/repo} -# subscriptions_url: https://api.github.com/users/github/subscriptions -# organizations_url: https://api.github.com/users/github/orgs -# repos_url: https://api.github.com/users/github/repos -# events_url: https://api.github.com/users/github/events{/privacy} -# received_events_url: https://api.github.com/users/github/received_events -# type: Organization -# site_admin: false -# event: locked -# commit_id: -# commit_url: -# created_at: '2022-04-13T20:49:13Z' -# lock_reason: -# performed_via_github_app: -# - id: 6430296748 -# node_id: LE_lADODwFebM5HwC0kzwAAAAF_Roqs -# url: https://api.github.com/repos/github/roadmap/issues/events/6430296748 -# actor: -# login: github-product-roadmap -# id: 67656570 -# node_id: MDQ6VXNlcjY3NjU2NTcw -# avatar_url: https://avatars.githubusercontent.com/u/67656570?v=4 -# gravatar_id: '' -# url: https://api.github.com/users/github-product-roadmap -# html_url: https://github.com/github-product-roadmap -# followers_url: https://api.github.com/users/github-product-roadmap/followers -# following_url: https://api.github.com/users/github-product-roadmap/following{/other_user} -# gists_url: https://api.github.com/users/github-product-roadmap/gists{/gist_id} -# starred_url: https://api.github.com/users/github-product-roadmap/starred{/owner}{/repo} -# subscriptions_url: https://api.github.com/users/github-product-roadmap/subscriptions -# organizations_url: https://api.github.com/users/github-product-roadmap/orgs -# repos_url: https://api.github.com/users/github-product-roadmap/repos -# events_url: https://api.github.com/users/github-product-roadmap/events{/privacy} -# received_events_url: https://api.github.com/users/github-product-roadmap/received_events -# type: User -# site_admin: false -# event: labeled -# commit_id: -# commit_url: -# created_at: '2022-04-13T20:49:34Z' -# label: -# name: beta -# color: 99dd88 -# performed_via_github_app: -# - id: 6635165802 -# node_id: RTE_lADODwFebM5HwC0kzwAAAAGLfJhq -# url: https://api.github.com/repos/github/roadmap/issues/events/6635165802 -# actor: -# login: github-product-roadmap -# id: 67656570 -# node_id: MDQ6VXNlcjY3NjU2NTcw -# avatar_url: https://avatars.githubusercontent.com/u/67656570?v=4 -# gravatar_id: '' -# url: https://api.github.com/users/github-product-roadmap -# html_url: https://github.com/github-product-roadmap -# followers_url: https://api.github.com/users/github-product-roadmap/followers -# following_url: https://api.github.com/users/github-product-roadmap/following{/other_user} -# gists_url: https://api.github.com/users/github-product-roadmap/gists{/gist_id} -# starred_url: https://api.github.com/users/github-product-roadmap/starred{/owner}{/repo} -# subscriptions_url: https://api.github.com/users/github-product-roadmap/subscriptions -# organizations_url: https://api.github.com/users/github-product-roadmap/orgs -# repos_url: https://api.github.com/users/github-product-roadmap/repos -# events_url: https://api.github.com/users/github-product-roadmap/events{/privacy} -# received_events_url: https://api.github.com/users/github-product-roadmap/received_events -# type: User -# site_admin: false -# event: renamed -# commit_id: -# commit_url: -# created_at: '2022-05-18T19:29:01Z' -# rename: -# from: 'Secret scanning: dry-runs for enterprise-level custom patterns (cloud)' -# to: 'Secret scanning: dry-runs for enterprise-level custom patterns' -# performed_via_github_app: -# - url: https://api.github.com/repos/github/roadmap/issues/comments/1130876857 -# html_url: https://github.com/github/roadmap/issues/493#issuecomment-1130876857 -# issue_url: https://api.github.com/repos/github/roadmap/issues/493 -# id: 1130876857 -# node_id: IC_kwDODwFebM5DZ8-5 -# user: -# login: octocat -# id: 94867353 -# node_id: U_kgDOBaePmQ -# avatar_url: https://avatars.githubusercontent.com/u/94867353?v=4 -# gravatar_id: '' -# url: https://api.github.com/users/octocat -# html_url: https://github.com/octocat -# followers_url: https://api.github.com/users/octocat/followers -# following_url: https://api.github.com/users/octocat/following{/other_user} -# gists_url: https://api.github.com/users/octocat/gists{/gist_id} -# starred_url: https://api.github.com/users/octocat/starred{/owner}{/repo} -# subscriptions_url: https://api.github.com/users/octocat/subscriptions -# organizations_url: https://api.github.com/users/octocat/orgs -# repos_url: https://api.github.com/users/octocat/repos -# events_url: https://api.github.com/users/octocat/events{/privacy} -# received_events_url: https://api.github.com/users/octocat/received_events -# type: User -# site_admin: true -# created_at: '2022-05-19T00:52:15Z' -# updated_at: '2022-05-19T00:52:15Z' -# author_association: COLLABORATOR -# body: "\U0001F6A2 Shipped to the cloud: https://github.blog/changelog/2022-05-12-secret-scanning-dry-runs-for-enterprise-level-custom-patterns/" -# reactions: -# url: https://api.github.com/repos/github/roadmap/issues/comments/1130876857/reactions -# total_count: 0 -# "+1": 0 -# "-1": 0 -# laugh: 0 -# hooray: 0 -# confused: 0 -# heart: 0 -# rocket: 0 -# eyes: 0 -# performed_via_github_app: -# event: commented -# actor: -# login: octocat -# id: 94867353 -# node_id: U_kgDOBaePmQ -# avatar_url: https://avatars.githubusercontent.com/u/94867353?v=4 -# gravatar_id: '' -# url: https://api.github.com/users/octocat -# html_url: https://github.com/octocat -# followers_url: https://api.github.com/users/octocat/followers -# following_url: https://api.github.com/users/octocat/following{/other_user} -# gists_url: https://api.github.com/users/octocat/gists{/gist_id} -# starred_url: https://api.github.com/users/octocat/starred{/owner}{/repo} -# subscriptions_url: https://api.github.com/users/octocat/subscriptions -# organizations_url: https://api.github.com/users/octocat/orgs -# repos_url: https://api.github.com/users/octocat/repos -# events_url: https://api.github.com/users/octocat/events{/privacy} -# received_events_url: https://api.github.com/users/octocat/received_events -# type: User -# site_admin: true + timeline-issue-events: + value: + - id: 6430295168 + node_id: LOE_lADODwFebM5HwC0kzwAAAAF_RoSA + url: https://api.github.com/repos/github/roadmap/issues/events/6430295168 + actor: + login: github + id: 9919 + node_id: MDEyOk9yZ2FuaXphdGlvbjk5MTk= + avatar_url: https://avatars.githubusercontent.com/u/9919?v=4 + gravatar_id: '' + url: https://api.github.com/users/github + html_url: https://github.com/github + followers_url: https://api.github.com/users/github/followers + following_url: https://api.github.com/users/github/following{/other_user} + gists_url: https://api.github.com/users/github/gists{/gist_id} + starred_url: https://api.github.com/users/github/starred{/owner}{/repo} + subscriptions_url: https://api.github.com/users/github/subscriptions + organizations_url: https://api.github.com/users/github/orgs + repos_url: https://api.github.com/users/github/repos + events_url: https://api.github.com/users/github/events{/privacy} + received_events_url: https://api.github.com/users/github/received_events + type: Organization + site_admin: false + event: locked + commit_id: + commit_url: + created_at: '2022-04-13T20:49:13Z' + lock_reason: + performed_via_github_app: + - id: 6430296748 + node_id: LE_lADODwFebM5HwC0kzwAAAAF_Roqs + url: https://api.github.com/repos/github/roadmap/issues/events/6430296748 + actor: + login: github-product-roadmap + id: 67656570 + node_id: MDQ6VXNlcjY3NjU2NTcw + avatar_url: https://avatars.githubusercontent.com/u/67656570?v=4 + gravatar_id: '' + url: https://api.github.com/users/github-product-roadmap + html_url: https://github.com/github-product-roadmap + followers_url: https://api.github.com/users/github-product-roadmap/followers + following_url: https://api.github.com/users/github-product-roadmap/following{/other_user} + gists_url: https://api.github.com/users/github-product-roadmap/gists{/gist_id} + starred_url: https://api.github.com/users/github-product-roadmap/starred{/owner}{/repo} + subscriptions_url: https://api.github.com/users/github-product-roadmap/subscriptions + organizations_url: https://api.github.com/users/github-product-roadmap/orgs + repos_url: https://api.github.com/users/github-product-roadmap/repos + events_url: https://api.github.com/users/github-product-roadmap/events{/privacy} + received_events_url: https://api.github.com/users/github-product-roadmap/received_events + type: User + site_admin: false + event: labeled + commit_id: + commit_url: + created_at: '2022-04-13T20:49:34Z' + label: + name: beta + color: 99dd88 + performed_via_github_app: + - id: 6635165802 + node_id: RTE_lADODwFebM5HwC0kzwAAAAGLfJhq + url: https://api.github.com/repos/github/roadmap/issues/events/6635165802 + actor: + login: github-product-roadmap + id: 67656570 + node_id: MDQ6VXNlcjY3NjU2NTcw + avatar_url: https://avatars.githubusercontent.com/u/67656570?v=4 + gravatar_id: '' + url: https://api.github.com/users/github-product-roadmap + html_url: https://github.com/github-product-roadmap + followers_url: https://api.github.com/users/github-product-roadmap/followers + following_url: https://api.github.com/users/github-product-roadmap/following{/other_user} + gists_url: https://api.github.com/users/github-product-roadmap/gists{/gist_id} + starred_url: https://api.github.com/users/github-product-roadmap/starred{/owner}{/repo} + subscriptions_url: https://api.github.com/users/github-product-roadmap/subscriptions + organizations_url: https://api.github.com/users/github-product-roadmap/orgs + repos_url: https://api.github.com/users/github-product-roadmap/repos + events_url: https://api.github.com/users/github-product-roadmap/events{/privacy} + received_events_url: https://api.github.com/users/github-product-roadmap/received_events + type: User + site_admin: false + event: renamed + commit_id: + commit_url: + created_at: '2022-05-18T19:29:01Z' + rename: + from: 'Secret scanning: dry-runs for enterprise-level custom patterns (cloud)' + to: 'Secret scanning: dry-runs for enterprise-level custom patterns' + performed_via_github_app: + - url: https://api.github.com/repos/github/roadmap/issues/comments/1130876857 + html_url: https://github.com/github/roadmap/issues/493#issuecomment-1130876857 + issue_url: https://api.github.com/repos/github/roadmap/issues/493 + id: 1130876857 + node_id: IC_kwDODwFebM5DZ8-5 + user: + login: octocat + id: 94867353 + node_id: U_kgDOBaePmQ + avatar_url: https://avatars.githubusercontent.com/u/94867353?v=4 + gravatar_id: '' + url: https://api.github.com/users/octocat + html_url: https://github.com/octocat + followers_url: https://api.github.com/users/octocat/followers + following_url: https://api.github.com/users/octocat/following{/other_user} + gists_url: https://api.github.com/users/octocat/gists{/gist_id} + starred_url: https://api.github.com/users/octocat/starred{/owner}{/repo} + subscriptions_url: https://api.github.com/users/octocat/subscriptions + organizations_url: https://api.github.com/users/octocat/orgs + repos_url: https://api.github.com/users/octocat/repos + events_url: https://api.github.com/users/octocat/events{/privacy} + received_events_url: https://api.github.com/users/octocat/received_events + type: User + site_admin: true + created_at: '2022-05-19T00:52:15Z' + updated_at: '2022-05-19T00:52:15Z' + author_association: COLLABORATOR + body: "\U0001F6A2 Shipped to the cloud: https://github.blog/changelog/2022-05-12-secret-scanning-dry-runs-for-enterprise-level-custom-patterns/" + reactions: + url: https://api.github.com/repos/github/roadmap/issues/comments/1130876857/reactions + total_count: 0 + "+1": 0 + "-1": 0 + laugh: 0 + hooray: 0 + confused: 0 + heart: 0 + rocket: 0 + eyes: 0 + performed_via_github_app: + event: commented + actor: + login: octocat + id: 94867353 + node_id: U_kgDOBaePmQ + avatar_url: https://avatars.githubusercontent.com/u/94867353?v=4 + gravatar_id: '' + url: https://api.github.com/users/octocat + html_url: https://github.com/octocat + followers_url: https://api.github.com/users/octocat/followers + following_url: https://api.github.com/users/octocat/following{/other_user} + gists_url: https://api.github.com/users/octocat/gists{/gist_id} + starred_url: https://api.github.com/users/octocat/starred{/owner}{/repo} + subscriptions_url: https://api.github.com/users/octocat/subscriptions + organizations_url: https://api.github.com/users/octocat/orgs + repos_url: https://api.github.com/users/octocat/repos + events_url: https://api.github.com/users/octocat/events{/privacy} + received_events_url: https://api.github.com/users/octocat/received_events + type: User + site_admin: true # deploy-key-items: # value: # - id: 1 diff --git a/Tests/PennyTests/GHHooksTests.swift b/Tests/PennyTests/GHHooksTests.swift index 4b89cdce..d45a297e 100644 --- a/Tests/PennyTests/GHHooksTests.swift +++ b/Tests/PennyTests/GHHooksTests.swift @@ -592,6 +592,13 @@ class GHHooksTests: XCTestCase { /// Unlabeled with "help wanted" try await handleEvent(key: "issue7", eventName: .issues, expect: .noResponse) + /// Issue-closed that has "timeline" info too, in case sometime in the future + /// we want to be more accurate about reporting who closed the issue. + /// See https://discord.com/channels/431917998102675485/441327731486097429/1155443078778323036. + /// The message isn't public (doesn't contain anything too special tbh), + /// only Penny maintainers can see it. + try await handleEvent(key: "issue8", eventName: .issues, expect: .noResponse) + try await handleEvent(key: "pr1", eventName: .pull_request, expect: .noResponse) try await handleEvent(key: "pr2", eventName: .pull_request, expect: .noResponse) try await handleEvent(key: "pr3", eventName: .pull_request, expect: .noResponse) diff --git a/Tests/Resources/ghHooksEvents.json b/Tests/Resources/ghHooksEvents.json index 778ca52c..1d610fc7 100644 --- a/Tests/Resources/ghHooksEvents.json +++ b/Tests/Resources/ghHooksEvents.json @@ -1870,6 +1870,232 @@ "node_id": "MDIzOkludGVncmF0aW9uSW5zdGFsbGF0aW9uMzk2OTgwNDc=" } }, + "issue8": { + "action": "closed", + "issue": { + "url": "https://api.github.com/repos/vapor/vapor/issues/2568", + "repository_url": "https://api.github.com/repos/vapor/vapor", + "labels_url": "https://api.github.com/repos/vapor/vapor/issues/2568/labels{/name}", + "comments_url": "https://api.github.com/repos/vapor/vapor/issues/2568/comments", + "events_url": "https://api.github.com/repos/vapor/vapor/issues/2568/events", + "html_url": "https://github.com/vapor/vapor/issues/2568", + "id": 811876087, + "node_id": "MDU6SXNzdWU4MTE4NzYwODc=", + "number": 2568, + "title": "running Vapor tests in parallel fails", + "user": { + "login": "weissi", + "id": 624238, + "node_id": "MDQ6VXNlcjYyNDIzOA==", + "avatar_url": "https://avatars.githubusercontent.com/u/624238?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/weissi", + "html_url": "https://github.com/weissi", + "followers_url": "https://api.github.com/users/weissi/followers", + "following_url": "https://api.github.com/users/weissi/following{/other_user}", + "gists_url": "https://api.github.com/users/weissi/gists{/gist_id}", + "starred_url": "https://api.github.com/users/weissi/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/weissi/subscriptions", + "organizations_url": "https://api.github.com/users/weissi/orgs", + "repos_url": "https://api.github.com/users/weissi/repos", + "events_url": "https://api.github.com/users/weissi/events{/privacy}", + "received_events_url": "https://api.github.com/users/weissi/received_events", + "type": "User", + "site_admin": false + }, + "labels": [ + { + "id": 313173958, + "node_id": "MDU6TGFiZWwzMTMxNzM5NTg=", + "url": "https://api.github.com/repos/vapor/vapor/labels/bug", + "name": "bug", + "color": "d73a4a", + "default": true, + "description": "Something isn't working" + } + ], + "state": "closed", + "locked": false, + "assignee": null, + "assignees": [], + "milestone": null, + "comments": 3, + "created_at": "2021-02-19T09:54:50Z", + "updated_at": "2023-09-22T01:56:18Z", + "closed_at": "2023-09-22T01:56:18Z", + "author_association": "CONTRIBUTOR", + "active_lock_reason": null, + "body": "If you run\r\n\r\n```\r\ndocker run -it --rm -w \"$PWD\" -v \"$PWD:$PWD\" swift:5.3 swift test --enable-test-discovery --parallel --num-workers 1\r\n```\r\n\r\nin a vapor checkout, your tests won't succeed. You'll see many failures such as\r\n\r\n```\r\nTest Suite 'Selected tests' started at 2021-02-19 09:52:59.423\r\nTest Suite 'ApplicationTests' started at 2021-02-19 09:52:59.424\r\nTest Case 'ApplicationTests.testBoilerplate' started at 2021-02-19 09:52:59.424\r\n:0: error: ApplicationTests.testBoilerplate : threw error \"Error: Unknown command `VaporTests.ApplicationTests/testBoilerplate`\"\r\nTest Case 'ApplicationTests.testBoilerplate' failed (0.006 seconds)\r\nTest Suite 'ApplicationTests' failed at 2021-02-19 09:52:59.431\r\n\t Executed 1 test, with 1 failure (1 unexpected) in 0.006 (0.006) seconds\r\nTest Suite 'Selected tests' failed at 2021-02-19 09:52:59.431\r\n\t Executed 1 test, with 1 failure (1 unexpected) in 0.006 (0.006) seconds\r\n```", + "reactions": { + "url": "https://api.github.com/repos/vapor/vapor/issues/2568/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "timeline_url": "https://api.github.com/repos/vapor/vapor/issues/2568/timeline", + "performed_via_github_app": null, + "state_reason": "completed" + }, + "repository": { + "id": 49910095, + "node_id": "MDEwOlJlcG9zaXRvcnk0OTkxMDA5NQ==", + "name": "vapor", + "full_name": "vapor/vapor", + "private": false, + "owner": { + "login": "vapor", + "id": 17364220, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjE3MzY0MjIw", + "avatar_url": "https://avatars.githubusercontent.com/u/17364220?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/vapor", + "html_url": "https://github.com/vapor", + "followers_url": "https://api.github.com/users/vapor/followers", + "following_url": "https://api.github.com/users/vapor/following{/other_user}", + "gists_url": "https://api.github.com/users/vapor/gists{/gist_id}", + "starred_url": "https://api.github.com/users/vapor/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/vapor/subscriptions", + "organizations_url": "https://api.github.com/users/vapor/orgs", + "repos_url": "https://api.github.com/users/vapor/repos", + "events_url": "https://api.github.com/users/vapor/events{/privacy}", + "received_events_url": "https://api.github.com/users/vapor/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/vapor/vapor", + "description": "💧 A server-side Swift HTTP web framework.", + "fork": false, + "url": "https://api.github.com/repos/vapor/vapor", + "forks_url": "https://api.github.com/repos/vapor/vapor/forks", + "keys_url": "https://api.github.com/repos/vapor/vapor/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/vapor/vapor/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/vapor/vapor/teams", + "hooks_url": "https://api.github.com/repos/vapor/vapor/hooks", + "issue_events_url": "https://api.github.com/repos/vapor/vapor/issues/events{/number}", + "events_url": "https://api.github.com/repos/vapor/vapor/events", + "assignees_url": "https://api.github.com/repos/vapor/vapor/assignees{/user}", + "branches_url": "https://api.github.com/repos/vapor/vapor/branches{/branch}", + "tags_url": "https://api.github.com/repos/vapor/vapor/tags", + "blobs_url": "https://api.github.com/repos/vapor/vapor/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/vapor/vapor/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/vapor/vapor/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/vapor/vapor/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/vapor/vapor/statuses/{sha}", + "languages_url": "https://api.github.com/repos/vapor/vapor/languages", + "stargazers_url": "https://api.github.com/repos/vapor/vapor/stargazers", + "contributors_url": "https://api.github.com/repos/vapor/vapor/contributors", + "subscribers_url": "https://api.github.com/repos/vapor/vapor/subscribers", + "subscription_url": "https://api.github.com/repos/vapor/vapor/subscription", + "commits_url": "https://api.github.com/repos/vapor/vapor/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/vapor/vapor/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/vapor/vapor/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/vapor/vapor/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/vapor/vapor/contents/{+path}", + "compare_url": "https://api.github.com/repos/vapor/vapor/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/vapor/vapor/merges", + "archive_url": "https://api.github.com/repos/vapor/vapor/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/vapor/vapor/downloads", + "issues_url": "https://api.github.com/repos/vapor/vapor/issues{/number}", + "pulls_url": "https://api.github.com/repos/vapor/vapor/pulls{/number}", + "milestones_url": "https://api.github.com/repos/vapor/vapor/milestones{/number}", + "notifications_url": "https://api.github.com/repos/vapor/vapor/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/vapor/vapor/labels{/name}", + "releases_url": "https://api.github.com/repos/vapor/vapor/releases{/id}", + "deployments_url": "https://api.github.com/repos/vapor/vapor/deployments", + "created_at": "2016-01-18T22:37:52Z", + "updated_at": "2023-09-21T19:08:43Z", + "pushed_at": "2023-09-22T01:56:17Z", + "git_url": "git://github.com/vapor/vapor.git", + "ssh_url": "git@github.com:vapor/vapor.git", + "clone_url": "https://github.com/vapor/vapor.git", + "svn_url": "https://github.com/vapor/vapor", + "homepage": "https://vapor.codes", + "size": 16767, + "stargazers_count": 23187, + "watchers_count": 23187, + "language": "Swift", + "has_issues": true, + "has_projects": false, + "has_downloads": true, + "has_wiki": false, + "has_pages": false, + "has_discussions": false, + "forks_count": 1423, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 120, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "allow_forking": true, + "is_template": false, + "web_commit_signoff_required": false, + "topics": [ + "framework", + "http", + "http2", + "server", + "server-side-swift", + "swift", + "vapor", + "web-framework" + ], + "visibility": "public", + "forks": 1423, + "open_issues": 120, + "watchers": 23187, + "default_branch": "main" + }, + "organization": { + "login": "vapor", + "id": 17364220, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjE3MzY0MjIw", + "url": "https://api.github.com/orgs/vapor", + "repos_url": "https://api.github.com/orgs/vapor/repos", + "events_url": "https://api.github.com/orgs/vapor/events", + "hooks_url": "https://api.github.com/orgs/vapor/hooks", + "issues_url": "https://api.github.com/orgs/vapor/issues", + "members_url": "https://api.github.com/orgs/vapor/members{/member}", + "public_members_url": "https://api.github.com/orgs/vapor/public_members{/member}", + "avatar_url": "https://avatars.githubusercontent.com/u/17364220?v=4", + "description": "Creating modular server side software with Swift." + }, + "sender": { + "login": "gwynne", + "id": 1130717, + "node_id": "MDQ6VXNlcjExMzA3MTc=", + "avatar_url": "https://avatars.githubusercontent.com/u/1130717?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gwynne", + "html_url": "https://github.com/gwynne", + "followers_url": "https://api.github.com/users/gwynne/followers", + "following_url": "https://api.github.com/users/gwynne/following{/other_user}", + "gists_url": "https://api.github.com/users/gwynne/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gwynne/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gwynne/subscriptions", + "organizations_url": "https://api.github.com/users/gwynne/orgs", + "repos_url": "https://api.github.com/users/gwynne/repos", + "events_url": "https://api.github.com/users/gwynne/events{/privacy}", + "received_events_url": "https://api.github.com/users/gwynne/received_events", + "type": "User", + "site_admin": false + }, + "installation": { + "id": 39698047, + "node_id": "MDIzOkludGVncmF0aW9uSW5zdGFsbGF0aW9uMzk2OTgwNDc=" + } + }, "pr1": { "action": "synchronize", "number": 53, diff --git a/Tests/Resources/ghRestOperations.json b/Tests/Resources/ghRestOperations.json index 2825ffcc..f3799869 100644 --- a/Tests/Resources/ghRestOperations.json +++ b/Tests/Resources/ghRestOperations.json @@ -4270,5 +4270,534 @@ "column_url": "https://api.github.com/projects/columns/367", "content_url": "https://api.github.com/repos/api-playground/projects-test/issues/3", "project_url": "https://api.github.com/projects/120" - } + }, + "GET-https://api.github.com/repos/vapor/vapor/issues/2568/timeline": [ + { + "id": 4351284298, + "node_id": "MDEyOkxhYmVsZWRFdmVudDQzNTEyODQyOTg=", + "url": "https://api.github.com/repos/vapor/vapor/issues/events/4351284298", + "actor": { + "login": "weissi", + "id": 624238, + "node_id": "MDQ6VXNlcjYyNDIzOA==", + "avatar_url": "https://avatars.githubusercontent.com/u/624238?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/weissi", + "html_url": "https://github.com/weissi", + "followers_url": "https://api.github.com/users/weissi/followers", + "following_url": "https://api.github.com/users/weissi/following{/other_user}", + "gists_url": "https://api.github.com/users/weissi/gists{/gist_id}", + "starred_url": "https://api.github.com/users/weissi/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/weissi/subscriptions", + "organizations_url": "https://api.github.com/users/weissi/orgs", + "repos_url": "https://api.github.com/users/weissi/repos", + "events_url": "https://api.github.com/users/weissi/events{/privacy}", + "received_events_url": "https://api.github.com/users/weissi/received_events", + "type": "User", + "site_admin": false + }, + "event": "labeled", + "commit_id": null, + "commit_url": null, + "created_at": "2021-02-19T09:54:50Z", + "label": { + "name": "bug", + "color": "d73a4a" + }, + "performed_via_github_app": null + }, + { + "actor": { + "login": "0xTim", + "id": 9938337, + "node_id": "MDQ6VXNlcjk5MzgzMzc=", + "avatar_url": "https://avatars.githubusercontent.com/u/9938337?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/0xTim", + "html_url": "https://github.com/0xTim", + "followers_url": "https://api.github.com/users/0xTim/followers", + "following_url": "https://api.github.com/users/0xTim/following{/other_user}", + "gists_url": "https://api.github.com/users/0xTim/gists{/gist_id}", + "starred_url": "https://api.github.com/users/0xTim/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/0xTim/subscriptions", + "organizations_url": "https://api.github.com/users/0xTim/orgs", + "repos_url": "https://api.github.com/users/0xTim/repos", + "events_url": "https://api.github.com/users/0xTim/events{/privacy}", + "received_events_url": "https://api.github.com/users/0xTim/received_events", + "type": "User", + "site_admin": false + }, + "created_at": "2021-02-19T16:07:56Z", + "updated_at": "2021-02-19T16:07:56Z", + "source": { + "type": "issue", + "issue": { + "url": "https://api.github.com/repos/vapor/vapor/issues/2569", + "repository_url": "https://api.github.com/repos/vapor/vapor", + "labels_url": "https://api.github.com/repos/vapor/vapor/issues/2569/labels{/name}", + "comments_url": "https://api.github.com/repos/vapor/vapor/issues/2569/comments", + "events_url": "https://api.github.com/repos/vapor/vapor/issues/2569/events", + "html_url": "https://github.com/vapor/vapor/pull/2569", + "id": 812145760, + "node_id": "MDExOlB1bGxSZXF1ZXN0NTc2NTU5NzQy", + "number": 2569, + "title": "Fix tests when running in parallel", + "user": { + "login": "0xTim", + "id": 9938337, + "node_id": "MDQ6VXNlcjk5MzgzMzc=", + "avatar_url": "https://avatars.githubusercontent.com/u/9938337?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/0xTim", + "html_url": "https://github.com/0xTim", + "followers_url": "https://api.github.com/users/0xTim/followers", + "following_url": "https://api.github.com/users/0xTim/following{/other_user}", + "gists_url": "https://api.github.com/users/0xTim/gists{/gist_id}", + "starred_url": "https://api.github.com/users/0xTim/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/0xTim/subscriptions", + "organizations_url": "https://api.github.com/users/0xTim/orgs", + "repos_url": "https://api.github.com/users/0xTim/repos", + "events_url": "https://api.github.com/users/0xTim/events{/privacy}", + "received_events_url": "https://api.github.com/users/0xTim/received_events", + "type": "User", + "site_admin": false + }, + "labels": [], + "state": "closed", + "locked": false, + "assignee": null, + "assignees": [], + "milestone": null, + "comments": 1, + "created_at": "2021-02-19T16:07:55Z", + "updated_at": "2021-02-19T16:25:42Z", + "closed_at": "2021-02-19T16:25:41Z", + "author_association": "MEMBER", + "active_lock_reason": null, + "draft": false, + "repository": { + "id": 49910095, + "node_id": "MDEwOlJlcG9zaXRvcnk0OTkxMDA5NQ==", + "name": "vapor", + "full_name": "vapor/vapor", + "private": false, + "owner": { + "login": "vapor", + "id": 17364220, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjE3MzY0MjIw", + "avatar_url": "https://avatars.githubusercontent.com/u/17364220?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/vapor", + "html_url": "https://github.com/vapor", + "followers_url": "https://api.github.com/users/vapor/followers", + "following_url": "https://api.github.com/users/vapor/following{/other_user}", + "gists_url": "https://api.github.com/users/vapor/gists{/gist_id}", + "starred_url": "https://api.github.com/users/vapor/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/vapor/subscriptions", + "organizations_url": "https://api.github.com/users/vapor/orgs", + "repos_url": "https://api.github.com/users/vapor/repos", + "events_url": "https://api.github.com/users/vapor/events{/privacy}", + "received_events_url": "https://api.github.com/users/vapor/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/vapor/vapor", + "description": "💧 A server-side Swift HTTP web framework.", + "fork": false, + "url": "https://api.github.com/repos/vapor/vapor", + "forks_url": "https://api.github.com/repos/vapor/vapor/forks", + "keys_url": "https://api.github.com/repos/vapor/vapor/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/vapor/vapor/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/vapor/vapor/teams", + "hooks_url": "https://api.github.com/repos/vapor/vapor/hooks", + "issue_events_url": "https://api.github.com/repos/vapor/vapor/issues/events{/number}", + "events_url": "https://api.github.com/repos/vapor/vapor/events", + "assignees_url": "https://api.github.com/repos/vapor/vapor/assignees{/user}", + "branches_url": "https://api.github.com/repos/vapor/vapor/branches{/branch}", + "tags_url": "https://api.github.com/repos/vapor/vapor/tags", + "blobs_url": "https://api.github.com/repos/vapor/vapor/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/vapor/vapor/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/vapor/vapor/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/vapor/vapor/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/vapor/vapor/statuses/{sha}", + "languages_url": "https://api.github.com/repos/vapor/vapor/languages", + "stargazers_url": "https://api.github.com/repos/vapor/vapor/stargazers", + "contributors_url": "https://api.github.com/repos/vapor/vapor/contributors", + "subscribers_url": "https://api.github.com/repos/vapor/vapor/subscribers", + "subscription_url": "https://api.github.com/repos/vapor/vapor/subscription", + "commits_url": "https://api.github.com/repos/vapor/vapor/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/vapor/vapor/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/vapor/vapor/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/vapor/vapor/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/vapor/vapor/contents/{+path}", + "compare_url": "https://api.github.com/repos/vapor/vapor/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/vapor/vapor/merges", + "archive_url": "https://api.github.com/repos/vapor/vapor/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/vapor/vapor/downloads", + "issues_url": "https://api.github.com/repos/vapor/vapor/issues{/number}", + "pulls_url": "https://api.github.com/repos/vapor/vapor/pulls{/number}", + "milestones_url": "https://api.github.com/repos/vapor/vapor/milestones{/number}", + "notifications_url": "https://api.github.com/repos/vapor/vapor/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/vapor/vapor/labels{/name}", + "releases_url": "https://api.github.com/repos/vapor/vapor/releases{/id}", + "deployments_url": "https://api.github.com/repos/vapor/vapor/deployments", + "created_at": "2016-01-18T22:37:52Z", + "updated_at": "2023-09-24T08:27:27Z", + "pushed_at": "2023-09-22T16:02:15Z", + "git_url": "git://github.com/vapor/vapor.git", + "ssh_url": "git@github.com:vapor/vapor.git", + "clone_url": "https://github.com/vapor/vapor.git", + "svn_url": "https://github.com/vapor/vapor", + "homepage": "https://vapor.codes", + "size": 16808, + "stargazers_count": 23195, + "watchers_count": 23195, + "language": "Swift", + "has_issues": true, + "has_projects": false, + "has_downloads": true, + "has_wiki": false, + "has_pages": false, + "has_discussions": false, + "forks_count": 1423, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 104, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "allow_forking": true, + "is_template": false, + "web_commit_signoff_required": false, + "topics": [ + "framework", + "http", + "http2", + "server", + "server-side-swift", + "swift", + "vapor", + "web-framework" + ], + "visibility": "public", + "forks": 1423, + "open_issues": 104, + "watchers": 23195, + "default_branch": "main" + }, + "pull_request": { + "url": "https://api.github.com/repos/vapor/vapor/pulls/2569", + "html_url": "https://github.com/vapor/vapor/pull/2569", + "diff_url": "https://github.com/vapor/vapor/pull/2569.diff", + "patch_url": "https://github.com/vapor/vapor/pull/2569.patch", + "merged_at": "2021-02-19T16:25:41Z" + }, + "body": "Override the argument when actually running the server to stop it picking up swift test commands. Resolves #2568\n", + "reactions": { + "url": "https://api.github.com/repos/vapor/vapor/issues/2569/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "timeline_url": "https://api.github.com/repos/vapor/vapor/issues/2569/timeline", + "performed_via_github_app": null, + "state_reason": null + } + }, + "event": "cross-referenced" + }, + { + "actor": { + "login": "0xTim", + "id": 9938337, + "node_id": "MDQ6VXNlcjk5MzgzMzc=", + "avatar_url": "https://avatars.githubusercontent.com/u/9938337?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/0xTim", + "html_url": "https://github.com/0xTim", + "followers_url": "https://api.github.com/users/0xTim/followers", + "following_url": "https://api.github.com/users/0xTim/following{/other_user}", + "gists_url": "https://api.github.com/users/0xTim/gists{/gist_id}", + "starred_url": "https://api.github.com/users/0xTim/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/0xTim/subscriptions", + "organizations_url": "https://api.github.com/users/0xTim/orgs", + "repos_url": "https://api.github.com/users/0xTim/repos", + "events_url": "https://api.github.com/users/0xTim/events{/privacy}", + "received_events_url": "https://api.github.com/users/0xTim/received_events", + "type": "User", + "site_admin": false + }, + "created_at": "2023-09-21T13:04:57Z", + "updated_at": "2023-09-21T13:04:57Z", + "source": { + "type": "issue", + "issue": { + "url": "https://api.github.com/repos/vapor/vapor/issues/3071", + "repository_url": "https://api.github.com/repos/vapor/vapor", + "labels_url": "https://api.github.com/repos/vapor/vapor/issues/3071/labels{/name}", + "comments_url": "https://api.github.com/repos/vapor/vapor/issues/3071/comments", + "events_url": "https://api.github.com/repos/vapor/vapor/issues/3071/events", + "html_url": "https://github.com/vapor/vapor/pull/3071", + "id": 1906930578, + "node_id": "PR_kwDOAvmRT85a4x4G", + "number": 3071, + "title": "Remove hardcoded ports in tests", + "user": { + "login": "0xTim", + "id": 9938337, + "node_id": "MDQ6VXNlcjk5MzgzMzc=", + "avatar_url": "https://avatars.githubusercontent.com/u/9938337?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/0xTim", + "html_url": "https://github.com/0xTim", + "followers_url": "https://api.github.com/users/0xTim/followers", + "following_url": "https://api.github.com/users/0xTim/following{/other_user}", + "gists_url": "https://api.github.com/users/0xTim/gists{/gist_id}", + "starred_url": "https://api.github.com/users/0xTim/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/0xTim/subscriptions", + "organizations_url": "https://api.github.com/users/0xTim/orgs", + "repos_url": "https://api.github.com/users/0xTim/repos", + "events_url": "https://api.github.com/users/0xTim/events{/privacy}", + "received_events_url": "https://api.github.com/users/0xTim/received_events", + "type": "User", + "site_admin": false + }, + "labels": [ + { + "id": 3427934459, + "node_id": "LA_kwDOAvmRT87MUiD7", + "url": "https://api.github.com/repos/vapor/vapor/labels/no-release-needed", + "name": "no-release-needed", + "color": "4239B7", + "default": false, + "description": "Doesn't require a release" + } + ], + "state": "closed", + "locked": false, + "assignee": null, + "assignees": [], + "milestone": null, + "comments": 0, + "created_at": "2023-09-21T13:04:57Z", + "updated_at": "2023-09-22T01:56:17Z", + "closed_at": "2023-09-22T01:56:16Z", + "author_association": "MEMBER", + "active_lock_reason": null, + "draft": false, + "repository": { + "id": 49910095, + "node_id": "MDEwOlJlcG9zaXRvcnk0OTkxMDA5NQ==", + "name": "vapor", + "full_name": "vapor/vapor", + "private": false, + "owner": { + "login": "vapor", + "id": 17364220, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjE3MzY0MjIw", + "avatar_url": "https://avatars.githubusercontent.com/u/17364220?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/vapor", + "html_url": "https://github.com/vapor", + "followers_url": "https://api.github.com/users/vapor/followers", + "following_url": "https://api.github.com/users/vapor/following{/other_user}", + "gists_url": "https://api.github.com/users/vapor/gists{/gist_id}", + "starred_url": "https://api.github.com/users/vapor/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/vapor/subscriptions", + "organizations_url": "https://api.github.com/users/vapor/orgs", + "repos_url": "https://api.github.com/users/vapor/repos", + "events_url": "https://api.github.com/users/vapor/events{/privacy}", + "received_events_url": "https://api.github.com/users/vapor/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/vapor/vapor", + "description": "💧 A server-side Swift HTTP web framework.", + "fork": false, + "url": "https://api.github.com/repos/vapor/vapor", + "forks_url": "https://api.github.com/repos/vapor/vapor/forks", + "keys_url": "https://api.github.com/repos/vapor/vapor/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/vapor/vapor/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/vapor/vapor/teams", + "hooks_url": "https://api.github.com/repos/vapor/vapor/hooks", + "issue_events_url": "https://api.github.com/repos/vapor/vapor/issues/events{/number}", + "events_url": "https://api.github.com/repos/vapor/vapor/events", + "assignees_url": "https://api.github.com/repos/vapor/vapor/assignees{/user}", + "branches_url": "https://api.github.com/repos/vapor/vapor/branches{/branch}", + "tags_url": "https://api.github.com/repos/vapor/vapor/tags", + "blobs_url": "https://api.github.com/repos/vapor/vapor/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/vapor/vapor/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/vapor/vapor/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/vapor/vapor/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/vapor/vapor/statuses/{sha}", + "languages_url": "https://api.github.com/repos/vapor/vapor/languages", + "stargazers_url": "https://api.github.com/repos/vapor/vapor/stargazers", + "contributors_url": "https://api.github.com/repos/vapor/vapor/contributors", + "subscribers_url": "https://api.github.com/repos/vapor/vapor/subscribers", + "subscription_url": "https://api.github.com/repos/vapor/vapor/subscription", + "commits_url": "https://api.github.com/repos/vapor/vapor/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/vapor/vapor/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/vapor/vapor/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/vapor/vapor/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/vapor/vapor/contents/{+path}", + "compare_url": "https://api.github.com/repos/vapor/vapor/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/vapor/vapor/merges", + "archive_url": "https://api.github.com/repos/vapor/vapor/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/vapor/vapor/downloads", + "issues_url": "https://api.github.com/repos/vapor/vapor/issues{/number}", + "pulls_url": "https://api.github.com/repos/vapor/vapor/pulls{/number}", + "milestones_url": "https://api.github.com/repos/vapor/vapor/milestones{/number}", + "notifications_url": "https://api.github.com/repos/vapor/vapor/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/vapor/vapor/labels{/name}", + "releases_url": "https://api.github.com/repos/vapor/vapor/releases{/id}", + "deployments_url": "https://api.github.com/repos/vapor/vapor/deployments", + "created_at": "2016-01-18T22:37:52Z", + "updated_at": "2023-09-24T08:27:27Z", + "pushed_at": "2023-09-22T16:02:15Z", + "git_url": "git://github.com/vapor/vapor.git", + "ssh_url": "git@github.com:vapor/vapor.git", + "clone_url": "https://github.com/vapor/vapor.git", + "svn_url": "https://github.com/vapor/vapor", + "homepage": "https://vapor.codes", + "size": 16808, + "stargazers_count": 23195, + "watchers_count": 23195, + "language": "Swift", + "has_issues": true, + "has_projects": false, + "has_downloads": true, + "has_wiki": false, + "has_pages": false, + "has_discussions": false, + "forks_count": 1423, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 104, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "allow_forking": true, + "is_template": false, + "web_commit_signoff_required": false, + "topics": [ + "framework", + "http", + "http2", + "server", + "server-side-swift", + "swift", + "vapor", + "web-framework" + ], + "visibility": "public", + "forks": 1423, + "open_issues": 104, + "watchers": 23195, + "default_branch": "main" + }, + "pull_request": { + "url": "https://api.github.com/repos/vapor/vapor/pulls/3071", + "html_url": "https://github.com/vapor/vapor/pull/3071", + "diff_url": "https://github.com/vapor/vapor/pull/3071.diff", + "patch_url": "https://github.com/vapor/vapor/pull/3071.patch", + "merged_at": "2023-09-22T01:56:16Z" + }, + "body": "Resolves #3052 and #2568 \r\n\r\nTests can now be run in parallel and pass", + "reactions": { + "url": "https://api.github.com/repos/vapor/vapor/issues/3071/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "timeline_url": "https://api.github.com/repos/vapor/vapor/issues/3071/timeline", + "performed_via_github_app": null, + "state_reason": null + } + }, + "event": "cross-referenced" + }, + { + "id": 10435198873, + "node_id": "COE_lADOAvmRT84wZD73zwAAAAJt_H-Z", + "url": "https://api.github.com/repos/vapor/vapor/issues/events/10435198873", + "actor": { + "login": "0xTim", + "id": 9938337, + "node_id": "MDQ6VXNlcjk5MzgzMzc=", + "avatar_url": "https://avatars.githubusercontent.com/u/9938337?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/0xTim", + "html_url": "https://github.com/0xTim", + "followers_url": "https://api.github.com/users/0xTim/followers", + "following_url": "https://api.github.com/users/0xTim/following{/other_user}", + "gists_url": "https://api.github.com/users/0xTim/gists{/gist_id}", + "starred_url": "https://api.github.com/users/0xTim/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/0xTim/subscriptions", + "organizations_url": "https://api.github.com/users/0xTim/orgs", + "repos_url": "https://api.github.com/users/0xTim/repos", + "events_url": "https://api.github.com/users/0xTim/events{/privacy}", + "received_events_url": "https://api.github.com/users/0xTim/received_events", + "type": "User", + "site_admin": false + }, + "event": "connected", + "commit_id": null, + "commit_url": null, + "created_at": "2023-09-21T13:05:46Z", + "performed_via_github_app": null + }, + { + "id": 10442262914, + "node_id": "CE_lADOAvmRT84wZD73zwAAAAJuaEmC", + "url": "https://api.github.com/repos/vapor/vapor/issues/events/10442262914", + "actor": { + "login": "gwynne", + "id": 1130717, + "node_id": "MDQ6VXNlcjExMzA3MTc=", + "avatar_url": "https://avatars.githubusercontent.com/u/1130717?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gwynne", + "html_url": "https://github.com/gwynne", + "followers_url": "https://api.github.com/users/gwynne/followers", + "following_url": "https://api.github.com/users/gwynne/following{/other_user}", + "gists_url": "https://api.github.com/users/gwynne/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gwynne/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gwynne/subscriptions", + "organizations_url": "https://api.github.com/users/gwynne/orgs", + "repos_url": "https://api.github.com/users/gwynne/repos", + "events_url": "https://api.github.com/users/gwynne/events{/privacy}", + "received_events_url": "https://api.github.com/users/gwynne/received_events", + "type": "User", + "site_admin": false + }, + "event": "closed", + "commit_id": null, + "commit_url": null, + "created_at": "2023-09-22T01:56:18Z", + "state_reason": null, + "performed_via_github_app": null + } + ] }