Closed p-kostic closed 5 years ago
The unit tests of the PullRequestResource
seems to demonstrate that indeed, you can retrieve the comments and updates on a pullrequest through the GetPullRequestActivity()
method, but there is nothing about approvals.
And the BitBucket documentation is pretty short when it comes to detail the entity returned by the activity endpoint...
So I've start to write new unit test and I've been able to catch some json responses that include approvals. I will complete our Activity
entity so that you can access to that data in C#.
Thank you so much for the quick reply and integrating it that quick too!
It's now available in V0.12.0
The following endpoints currently have activity information, containing updates (and comments?). However, I am missing a separate data type for the approval of a pullrequest (and by whom).
/repositories/{username}/{repo_slug}/pullrequests/activity
GET
PullRequestsResource.GetPullRequestLog()
/repositories/{username}/{repo_slug}/pullrequests/{pull_request_id}/activity
GET
PullRequestResource.GetPullRequestActivity()
This functionality is listed in the BB documentation, and I have indeed seen it using curl, but I cannot retrieve it within C#.
(https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Busername%7D/%7Brepo_slug%7D/pullrequests/activity)
Am I missing something or could this be added?