createReview method
Create a review for a pull request https://docs.github.com/en/rest/pulls/reviews#create-a-review-for-a-pull-request
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),
);
}