listReviewComments method
List review comments on a pull request https://docs.github.com/en/rest/pulls/comments#list-review-comments-on-a-pull-request
Implementation
Future<List<ReviewComment>> listReviewComments({
required String repo,
required int num,
}) async {
final result = await _client.getRequest(
path: 'repos/$repo/pulls/$num/comments',
);
final json = jsonDecode(result) as Iterable;
return List<ReviewComment>.from(
json.map((e) => ReviewComment.fromJson(e as Map<String, dynamic>)),
);
}