updateComment method

Future<IssueComment> updateComment(
  1. RepositorySlug slug,
  2. int id,
  3. String body
)

Implementation

Future<IssueComment> updateComment(RepositorySlug slug, int id, String body) {
  final it = GitHubJson.encode({'body': body});
  return github.postJSON(
    '/repos/${slug.fullName}/issues/comments/$id',
    body: it,
    convert: (dynamic i) => IssueComment.fromJson(i),
    statusCode: StatusCodes.OK,
  );
}