editLabel method

Future<IssueLabel> editLabel(
  1. RepositorySlug slug,
  2. String name,
  3. String color
)

Implementation

Future<IssueLabel> editLabel(RepositorySlug slug, String name, String color) {
  return github.postJSON('/repos/${slug.fullName}/labels/$name',
      body: GitHubJson.encode({'name': name, 'color': color}),
      convert: (dynamic i) => IssueLabel.fromJson(i));
}