mirror of
https://github.com/interviewstreet/go-jira.git
synced 2025-04-27 12:22:19 +02:00
Merge pull request #363 from asuffield/context
pass context parameters through
This commit is contained in:
commit
1abf9e57d2
6
issue.go
6
issue.go
@ -857,7 +857,7 @@ func (s *IssueService) UpdateWithOptions(issue *Issue, opts *UpdateQueryOptions)
|
|||||||
//
|
//
|
||||||
// Jira API docs: https://docs.atlassian.com/jira/REST/cloud/#api/2/issue-editIssue
|
// Jira API docs: https://docs.atlassian.com/jira/REST/cloud/#api/2/issue-editIssue
|
||||||
func (s *IssueService) UpdateWithContext(ctx context.Context, issue *Issue) (*Issue, *Response, error) {
|
func (s *IssueService) UpdateWithContext(ctx context.Context, issue *Issue) (*Issue, *Response, error) {
|
||||||
return s.UpdateWithOptions(issue, nil)
|
return s.UpdateWithOptionsWithContext(ctx, issue, nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update wraps UpdateWithContext using the background context.
|
// Update wraps UpdateWithContext using the background context.
|
||||||
@ -1119,7 +1119,7 @@ func (s *IssueService) SearchPagesWithContext(ctx context.Context, jql string, o
|
|||||||
options.MaxResults = 50
|
options.MaxResults = 50
|
||||||
}
|
}
|
||||||
|
|
||||||
issues, resp, err := s.Search(jql, options)
|
issues, resp, err := s.SearchWithContext(ctx, jql, options)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
@ -1141,7 +1141,7 @@ func (s *IssueService) SearchPagesWithContext(ctx context.Context, jql string, o
|
|||||||
}
|
}
|
||||||
|
|
||||||
options.StartAt += resp.MaxResults
|
options.StartAt += resp.MaxResults
|
||||||
issues, resp, err = s.Search(jql, options)
|
issues, resp, err = s.SearchWithContext(ctx, jql, options)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user