listReviewComments method

Future<List<ReviewComment>> listReviewComments({
  1. required String repo,
  2. required int num,
})

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>)),
  );
}