getCommitComment method

Future<CommitComment> getCommitComment(
  1. RepositorySlug slug, {
  2. required int id,
})

Implementation

Future<CommitComment> getCommitComment(RepositorySlug slug,
    {required int id}) async {
  ArgumentError.checkNotNull(slug);
  ArgumentError.checkNotNull(id);
  return github.getJSON<Map<String, dynamic>, CommitComment>(
    '/repos/${slug.fullName}/comments/$id',
    statusCode: StatusCodes.OK,
    convert: (i) => CommitComment.fromJson(i),
  );
}