@@ -114,7 +114,7 @@ type CreateAgentTaskOptions struct {
114114
115115// ListByRepo lists tasks for a repository.
116116//
117- // GitHub API docs: https://docs.github.com/rest/agent-tasks/agent-tasks?apiVersion=2022-11-28 #list-tasks-for-repository
117+ // GitHub API docs: https://docs.github.com/rest/agent-tasks/agent-tasks?apiVersion=2026-03-10 #list-tasks-for-repository
118118//
119119//meta:operation GET /agents/repos/{owner}/{repo}/tasks
120120func (s * AgentTasksService ) ListByRepo (ctx context.Context , owner , repo string , opts * AgentTaskListByRepoOptions ) (* AgentTaskList , * Response , error ) {
@@ -140,7 +140,7 @@ func (s *AgentTasksService) ListByRepo(ctx context.Context, owner, repo string,
140140
141141// Create starts a new Copilot cloud agent task for a repository.
142142//
143- // GitHub API docs: https://docs.github.com/rest/agent-tasks/agent-tasks?apiVersion=2022-11-28 #start-a-task
143+ // GitHub API docs: https://docs.github.com/rest/agent-tasks/agent-tasks?apiVersion=2026-03-10 #start-a-task
144144//
145145//meta:operation POST /agents/repos/{owner}/{repo}/tasks
146146func (s * AgentTasksService ) Create (ctx context.Context , owner , repo string , opts * CreateAgentTaskOptions ) (* AgentTask , * Response , error ) {
@@ -162,7 +162,7 @@ func (s *AgentTasksService) Create(ctx context.Context, owner, repo string, opts
162162
163163// GetByRepoAndID gets a repository task by ID.
164164//
165- // GitHub API docs: https://docs.github.com/rest/agent-tasks/agent-tasks?apiVersion=2022-11-28 #get-a-task-by-repo
165+ // GitHub API docs: https://docs.github.com/rest/agent-tasks/agent-tasks?apiVersion=2026-03-10 #get-a-task-by-repo
166166//
167167//meta:operation GET /agents/repos/{owner}/{repo}/tasks/{task_id}
168168func (s * AgentTasksService ) GetByRepoAndID (ctx context.Context , owner , repo , taskID string ) (* AgentTask , * Response , error ) {
@@ -184,7 +184,7 @@ func (s *AgentTasksService) GetByRepoAndID(ctx context.Context, owner, repo, tas
184184
185185// List lists tasks for the authenticated user.
186186//
187- // GitHub API docs: https://docs.github.com/rest/agent-tasks/agent-tasks?apiVersion=2022-11-28 #list-tasks
187+ // GitHub API docs: https://docs.github.com/rest/agent-tasks/agent-tasks?apiVersion=2026-03-10 #list-tasks
188188//
189189//meta:operation GET /agents/tasks
190190func (s * AgentTasksService ) List (ctx context.Context , opts * AgentTaskListOptions ) (* AgentTaskList , * Response , error ) {
@@ -210,7 +210,7 @@ func (s *AgentTasksService) List(ctx context.Context, opts *AgentTaskListOptions
210210
211211// Get gets a task by ID for the authenticated user.
212212//
213- // GitHub API docs: https://docs.github.com/rest/agent-tasks/agent-tasks?apiVersion=2022-11-28 #get-a-task-by-id
213+ // GitHub API docs: https://docs.github.com/rest/agent-tasks/agent-tasks?apiVersion=2026-03-10 #get-a-task-by-id
214214//
215215//meta:operation GET /agents/tasks/{task_id}
216216func (s * AgentTasksService ) Get (ctx context.Context , taskID string ) (* AgentTask , * Response , error ) {
0 commit comments