Skip to content

Commit ab0cc87

Browse files
Update github/agent_tasks.go
Co-authored-by: Oleksandr Redko <oleksandr.red+github@gmail.com>
1 parent 5160bbf commit ab0cc87

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

github/agent_tasks.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ func (s *AgentTasksService) Create(ctx context.Context, owner, repo string, opts
165165
// 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}
168-
func (s *AgentTasksService) GetByRepoAndID(ctx context.Context, owner, repo, taskID string) (*AgentTask, *Response, error) {
168+
func (s *AgentTasksService) GetByRepo(ctx context.Context, owner, repo, taskID string) (*AgentTask, *Response, error) {
169169
u := fmt.Sprintf("agents/repos/%v/%v/tasks/%v", owner, repo, taskID)
170170

171171
req, err := s.client.NewRequest(ctx, "GET", u, nil, WithVersion(agentTasksAPIVersion))

0 commit comments

Comments
 (0)