Skip to content

Commit 87fe51e

Browse files
Merge pull request #186 from wei18/dependabot/submodules/Submodule/github/rest-api-description-ad5a9d5
Bump Submodule/github/rest-api-description from `f5d3342` to `ad5a9d5`
2 parents 39ec94c + ba3ddf5 commit 87fe51e

6 files changed

Lines changed: 1513 additions & 13 deletions

File tree

Sources/agent-tasks/Types.swift

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -430,10 +430,10 @@ public enum Operations {
430430
///
431431
/// - Remark: Generated from `#/paths/agents/repos/{owner}/{repo}/tasks/GET/query/since`.
432432
public var since: Foundation.Date?
433-
/// Filter tasks by creator user ID
433+
/// Filter tasks by creator user ID. Accepts one or more user IDs.
434434
///
435435
/// - Remark: Generated from `#/paths/agents/repos/{owner}/{repo}/tasks/GET/query/creator_id`.
436-
public var creatorId: Swift.Int?
436+
public var creatorId: [Swift.Int]?
437437
/// Creates a new `Query`.
438438
///
439439
/// - Parameters:
@@ -444,7 +444,7 @@ public enum Operations {
444444
/// - state: Comma-separated list of task states to filter by. Can be any combination of: `queued`, `in_progress`, `completed`, `failed`, `idle`, `waiting_for_user`, `timed_out`, `cancelled`.
445445
/// - isArchived: Filter by archived status. When `true`, returns only archived tasks. When `false` or omitted, returns only non-archived tasks. Defaults to `false`.
446446
/// - since: Only show tasks updated at or after this time (ISO 8601 timestamp)
447-
/// - creatorId: Filter tasks by creator user ID
447+
/// - creatorId: Filter tasks by creator user ID. Accepts one or more user IDs.
448448
public init(
449449
perPage: Swift.Int? = nil,
450450
page: Swift.Int? = nil,
@@ -453,7 +453,7 @@ public enum Operations {
453453
state: Swift.String? = nil,
454454
isArchived: Swift.Bool? = nil,
455455
since: Foundation.Date? = nil,
456-
creatorId: Swift.Int? = nil
456+
creatorId: [Swift.Int]? = nil
457457
) {
458458
self.perPage = perPage
459459
self.page = page
@@ -1815,29 +1815,37 @@ public enum Operations {
18151815
///
18161816
/// - Remark: Generated from `#/paths/agents/repos/{owner}/{repo}/tasks/POST/requestBody/json/base_ref`.
18171817
public var baseRef: Swift.String?
1818+
/// Head ref for existing branch/PR. If provided with `base_ref`, the agent looks up open PR context for `head_ref` targeting `base_ref` and commits to `head_ref` instead of creating a new branch.
1819+
///
1820+
/// - Remark: Generated from `#/paths/agents/repos/{owner}/{repo}/tasks/POST/requestBody/json/head_ref`.
1821+
public var headRef: Swift.String?
18181822
/// Creates a new `JsonPayload`.
18191823
///
18201824
/// - Parameters:
18211825
/// - prompt: The user's prompt for the agent
18221826
/// - model: The model to use for this task. The allowed models may change over time and depend on the user's GitHub Copilot plan and organization policies. Currently supported values: `claude-sonnet-4.6`, `claude-opus-4.6`, `gpt-5.2-codex`, `gpt-5.3-codex`, `gpt-5.4`, `claude-sonnet-4.5`, `claude-opus-4.5`
18231827
/// - createPullRequest: Whether to create a PR.
18241828
/// - baseRef: Base ref for new branch/PR
1829+
/// - headRef: Head ref for existing branch/PR. If provided with `base_ref`, the agent looks up open PR context for `head_ref` targeting `base_ref` and commits to `head_ref` instead of creating a new branch.
18251830
public init(
18261831
prompt: Swift.String,
18271832
model: Swift.String? = nil,
18281833
createPullRequest: Swift.Bool? = nil,
1829-
baseRef: Swift.String? = nil
1834+
baseRef: Swift.String? = nil,
1835+
headRef: Swift.String? = nil
18301836
) {
18311837
self.prompt = prompt
18321838
self.model = model
18331839
self.createPullRequest = createPullRequest
18341840
self.baseRef = baseRef
1841+
self.headRef = headRef
18351842
}
18361843
public enum CodingKeys: String, CodingKey {
18371844
case prompt
18381845
case model
18391846
case createPullRequest = "create_pull_request"
18401847
case baseRef = "base_ref"
1848+
case headRef = "head_ref"
18411849
}
18421850
}
18431851
/// - Remark: Generated from `#/paths/agents/repos/{owner}/{repo}/tasks/POST/requestBody/content/application\/json`.

Sources/apps/Types.swift

Lines changed: 95 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2613,6 +2613,7 @@ public enum Components {
26132613
///
26142614
/// - Remark: Generated from `#/components/schemas/app-permissions/organization_copilot_seat_management`.
26152615
@frozen public enum OrganizationCopilotSeatManagementPayload: String, Codable, Hashable, Sendable, CaseIterable {
2616+
case read = "read"
26162617
case write = "write"
26172618
}
26182619
/// The level of permission to grant the access token for managing access to GitHub Copilot for members of an organization with a Copilot Business subscription. This property is in public preview and is subject to change.
@@ -8943,18 +8944,64 @@ public enum Operations {
89438944
public struct RepositoriesPayloadPayload: Codable, Hashable, Sendable {
89448945
/// - Remark: Generated from `#/paths/installation/repositories/GET/responses/200/content/json/RepositoriesPayload/value1`.
89458946
public var value1: Components.Schemas.Repository
8947+
/// - Remark: Generated from `#/paths/installation/repositories/GET/responses/200/content/json/RepositoriesPayload/value2`.
8948+
public struct Value2Payload: Codable, Hashable, Sendable {
8949+
/// The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values. Present for org repos only.
8950+
///
8951+
/// - Remark: Generated from `#/paths/installation/repositories/GET/responses/200/content/json/RepositoriesPayload/value2/custom_properties`.
8952+
public struct CustomPropertiesPayload: Codable, Hashable, Sendable {
8953+
/// A container of undocumented properties.
8954+
public var additionalProperties: OpenAPIRuntime.OpenAPIObjectContainer
8955+
/// Creates a new `CustomPropertiesPayload`.
8956+
///
8957+
/// - Parameters:
8958+
/// - additionalProperties: A container of undocumented properties.
8959+
public init(additionalProperties: OpenAPIRuntime.OpenAPIObjectContainer = .init()) {
8960+
self.additionalProperties = additionalProperties
8961+
}
8962+
public init(from decoder: any Swift.Decoder) throws {
8963+
additionalProperties = try decoder.decodeAdditionalProperties(knownKeys: [])
8964+
}
8965+
public func encode(to encoder: any Swift.Encoder) throws {
8966+
try encoder.encodeAdditionalProperties(additionalProperties)
8967+
}
8968+
}
8969+
/// The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values. Present for org repos only.
8970+
///
8971+
/// - Remark: Generated from `#/paths/installation/repositories/GET/responses/200/content/json/RepositoriesPayload/value2/custom_properties`.
8972+
public var customProperties: Operations.AppsListReposAccessibleToInstallation.Output.Ok.Body.JsonPayload.RepositoriesPayloadPayload.Value2Payload.CustomPropertiesPayload?
8973+
/// Creates a new `Value2Payload`.
8974+
///
8975+
/// - Parameters:
8976+
/// - customProperties: The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values. Present for org repos only.
8977+
public init(customProperties: Operations.AppsListReposAccessibleToInstallation.Output.Ok.Body.JsonPayload.RepositoriesPayloadPayload.Value2Payload.CustomPropertiesPayload? = nil) {
8978+
self.customProperties = customProperties
8979+
}
8980+
public enum CodingKeys: String, CodingKey {
8981+
case customProperties = "custom_properties"
8982+
}
8983+
}
8984+
/// - Remark: Generated from `#/paths/installation/repositories/GET/responses/200/content/json/RepositoriesPayload/value2`.
8985+
public var value2: Operations.AppsListReposAccessibleToInstallation.Output.Ok.Body.JsonPayload.RepositoriesPayloadPayload.Value2Payload
89468986
/// Creates a new `RepositoriesPayloadPayload`.
89478987
///
89488988
/// - Parameters:
89498989
/// - value1:
8950-
public init(value1: Components.Schemas.Repository) {
8990+
/// - value2:
8991+
public init(
8992+
value1: Components.Schemas.Repository,
8993+
value2: Operations.AppsListReposAccessibleToInstallation.Output.Ok.Body.JsonPayload.RepositoriesPayloadPayload.Value2Payload
8994+
) {
89518995
self.value1 = value1
8996+
self.value2 = value2
89528997
}
89538998
public init(from decoder: any Swift.Decoder) throws {
89548999
self.value1 = try .init(from: decoder)
9000+
self.value2 = try .init(from: decoder)
89559001
}
89569002
public func encode(to encoder: any Swift.Encoder) throws {
89579003
try self.value1.encode(to: encoder)
9004+
try self.value2.encode(to: encoder)
89589005
}
89599006
}
89609007
/// - Remark: Generated from `#/paths/installation/repositories/GET/responses/200/content/json/repositories`.
@@ -11189,18 +11236,64 @@ public enum Operations {
1118911236
public struct RepositoriesPayloadPayload: Codable, Hashable, Sendable {
1119011237
/// - Remark: Generated from `#/paths/user/installations/{installation_id}/repositories/GET/responses/200/content/json/RepositoriesPayload/value1`.
1119111238
public var value1: Components.Schemas.Repository
11239+
/// - Remark: Generated from `#/paths/user/installations/{installation_id}/repositories/GET/responses/200/content/json/RepositoriesPayload/value2`.
11240+
public struct Value2Payload: Codable, Hashable, Sendable {
11241+
/// The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values. Present for org repos only.
11242+
///
11243+
/// - Remark: Generated from `#/paths/user/installations/{installation_id}/repositories/GET/responses/200/content/json/RepositoriesPayload/value2/custom_properties`.
11244+
public struct CustomPropertiesPayload: Codable, Hashable, Sendable {
11245+
/// A container of undocumented properties.
11246+
public var additionalProperties: OpenAPIRuntime.OpenAPIObjectContainer
11247+
/// Creates a new `CustomPropertiesPayload`.
11248+
///
11249+
/// - Parameters:
11250+
/// - additionalProperties: A container of undocumented properties.
11251+
public init(additionalProperties: OpenAPIRuntime.OpenAPIObjectContainer = .init()) {
11252+
self.additionalProperties = additionalProperties
11253+
}
11254+
public init(from decoder: any Swift.Decoder) throws {
11255+
additionalProperties = try decoder.decodeAdditionalProperties(knownKeys: [])
11256+
}
11257+
public func encode(to encoder: any Swift.Encoder) throws {
11258+
try encoder.encodeAdditionalProperties(additionalProperties)
11259+
}
11260+
}
11261+
/// The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values. Present for org repos only.
11262+
///
11263+
/// - Remark: Generated from `#/paths/user/installations/{installation_id}/repositories/GET/responses/200/content/json/RepositoriesPayload/value2/custom_properties`.
11264+
public var customProperties: Operations.AppsListInstallationReposForAuthenticatedUser.Output.Ok.Body.JsonPayload.RepositoriesPayloadPayload.Value2Payload.CustomPropertiesPayload?
11265+
/// Creates a new `Value2Payload`.
11266+
///
11267+
/// - Parameters:
11268+
/// - customProperties: The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values. Present for org repos only.
11269+
public init(customProperties: Operations.AppsListInstallationReposForAuthenticatedUser.Output.Ok.Body.JsonPayload.RepositoriesPayloadPayload.Value2Payload.CustomPropertiesPayload? = nil) {
11270+
self.customProperties = customProperties
11271+
}
11272+
public enum CodingKeys: String, CodingKey {
11273+
case customProperties = "custom_properties"
11274+
}
11275+
}
11276+
/// - Remark: Generated from `#/paths/user/installations/{installation_id}/repositories/GET/responses/200/content/json/RepositoriesPayload/value2`.
11277+
public var value2: Operations.AppsListInstallationReposForAuthenticatedUser.Output.Ok.Body.JsonPayload.RepositoriesPayloadPayload.Value2Payload
1119211278
/// Creates a new `RepositoriesPayloadPayload`.
1119311279
///
1119411280
/// - Parameters:
1119511281
/// - value1:
11196-
public init(value1: Components.Schemas.Repository) {
11282+
/// - value2:
11283+
public init(
11284+
value1: Components.Schemas.Repository,
11285+
value2: Operations.AppsListInstallationReposForAuthenticatedUser.Output.Ok.Body.JsonPayload.RepositoriesPayloadPayload.Value2Payload
11286+
) {
1119711287
self.value1 = value1
11288+
self.value2 = value2
1119811289
}
1119911290
public init(from decoder: any Swift.Decoder) throws {
1120011291
self.value1 = try .init(from: decoder)
11292+
self.value2 = try .init(from: decoder)
1120111293
}
1120211294
public func encode(to encoder: any Swift.Encoder) throws {
1120311295
try self.value1.encode(to: encoder)
11296+
try self.value2.encode(to: encoder)
1120411297
}
1120511298
}
1120611299
/// - Remark: Generated from `#/paths/user/installations/{installation_id}/repositories/GET/responses/200/content/json/repositories`.

0 commit comments

Comments
 (0)