Skip to content

Commit ba3ddf5

Browse files
Commit via running: make Sources/agent-tasks
1 parent 739c10e commit ba3ddf5

1 file changed

Lines changed: 13 additions & 5 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`.

0 commit comments

Comments
 (0)