getCommitComment method

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

Retrieve a commit comment by its id.

https://developer.github.com/v3/repos/comments/#get-a-single-commit-comment

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: CommitComment.fromJson,
  );
}