how do I retrieve all the reviewers in a pull request from Probot
? I am using typescript
. I am also listening on pull_request
event type in Probot. I think I need to call context.github.pullRequests.getReview
to get the list of reviewers, but since I am new to NodeJs
and typescript
, I am not sure how to invoke the below function. Any inputs?
Also, getReview
accepts the parameter {owner:,repo:,number:, review_id:}
, in my case I just have the pr_number
.
getReview(
params: Github.PullRequestsGetReviewParams,
callback?: Github.Callback<
Github.Response<Github.PullRequestsGetReviewResponse>
>
): Promise<Github.Response<Github.PullRequestsGetReviewResponse>>;