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
[Bitbucket Cloud] Add support for query parameters in pullrequest.comments endpoint (#1101)
* [Bitbucket Cloud] Add support for query parameters in pullrequests/comments endpoint
Updated pull_requests.comments to accept a query string, which is passed to params if present and used with _get_paged
* [Bitbucket Cloud] Add sorting to comments endpoint
Updated to include the sort parameter
Reorganized docstring
Copy file name to clipboardExpand all lines: atlassian/bitbucket/cloud/repositories/pullRequests.py
+12-2
Original file line number
Diff line number
Diff line change
@@ -275,13 +275,23 @@ def builds(self):
275
275
276
276
return
277
277
278
-
defcomments(self):
278
+
defcomments(self, q=None, sort=None):
279
279
"""
280
280
Returns generator object of the comments endpoint
281
281
282
+
:param q: string: Query string to narrow down the response.
283
+
:param sort: string: Name of a response property to sort results.
284
+
See https://developer.atlassian.com/bitbucket/api/2/reference/meta/filtering
285
+
for details on filtering and sorting.
286
+
282
287
API docs: https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/pullrequests/%7Bpull_request_id%7D/comments#get
0 commit comments