You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/agent-tasks/Types.swift
+13-5Lines changed: 13 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -430,10 +430,10 @@ public enum Operations {
430
430
///
431
431
/// - Remark: Generated from `#/paths/agents/repos/{owner}/{repo}/tasks/GET/query/since`.
432
432
publicvarsince:Foundation.Date?
433
-
/// Filter tasks by creator user ID
433
+
/// Filter tasks by creator user ID. Accepts one or more user IDs.
434
434
///
435
435
/// - Remark: Generated from `#/paths/agents/repos/{owner}/{repo}/tasks/GET/query/creator_id`.
436
-
publicvarcreatorId:Swift.Int?
436
+
publicvarcreatorId:[Swift.Int]?
437
437
/// Creates a new `Query`.
438
438
///
439
439
/// - Parameters:
@@ -444,7 +444,7 @@ public enum Operations {
444
444
/// - 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`.
445
445
/// - isArchived: Filter by archived status. When `true`, returns only archived tasks. When `false` or omitted, returns only non-archived tasks. Defaults to `false`.
446
446
/// - 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.
448
448
publicinit(
449
449
perPage:Swift.Int?=nil,
450
450
page:Swift.Int?=nil,
@@ -453,7 +453,7 @@ public enum Operations {
453
453
state:Swift.String?=nil,
454
454
isArchived:Swift.Bool?=nil,
455
455
since:Foundation.Date?=nil,
456
-
creatorId:Swift.Int?=nil
456
+
creatorId:[Swift.Int]?=nil
457
457
){
458
458
self.perPage = perPage
459
459
self.page = page
@@ -1815,29 +1815,37 @@ public enum Operations {
1815
1815
///
1816
1816
/// - Remark: Generated from `#/paths/agents/repos/{owner}/{repo}/tasks/POST/requestBody/json/base_ref`.
1817
1817
publicvarbaseRef: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
+
publicvarheadRef:Swift.String?
1818
1822
/// Creates a new `JsonPayload`.
1819
1823
///
1820
1824
/// - Parameters:
1821
1825
/// - prompt: The user's prompt for the agent
1822
1826
/// - 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`
1823
1827
/// - createPullRequest: Whether to create a PR.
1824
1828
/// - 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.
1825
1830
publicinit(
1826
1831
prompt:Swift.String,
1827
1832
model:Swift.String?=nil,
1828
1833
createPullRequest:Swift.Bool?=nil,
1829
-
baseRef:Swift.String?=nil
1834
+
baseRef:Swift.String?=nil,
1835
+
headRef:Swift.String?=nil
1830
1836
){
1831
1837
self.prompt = prompt
1832
1838
self.model = model
1833
1839
self.createPullRequest = createPullRequest
1834
1840
self.baseRef = baseRef
1841
+
self.headRef = headRef
1835
1842
}
1836
1843
publicenumCodingKeys:String,CodingKey{
1837
1844
case prompt
1838
1845
case model
1839
1846
case createPullRequest ="create_pull_request"
1840
1847
case baseRef ="base_ref"
1848
+
case headRef ="head_ref"
1841
1849
}
1842
1850
}
1843
1851
/// - Remark: Generated from `#/paths/agents/repos/{owner}/{repo}/tasks/POST/requestBody/content/application\/json`.
0 commit comments