createReview method

Future<String> createReview({
  1. required String repo,
  2. required int num,
  3. required List<Comment> comments,
})

Implementation

Future<String> createReview({
  required String repo,
  required int num,
  required List<Comment> comments,
}) async {
  final data = _Data(
    body: '',
    event: 'COMMENT',
    comments: comments,
  );
  return _client.postRequest(
    path: 'repos/$repo/pulls/$num/reviews',
    data: jsonEncode(data),
  );
}