edit method
Edit an issue.
API docs: https://developer.github.com/v3/issues/#edit-an-issue
Implementation
Future<Issue> edit(
RepositorySlug slug, int issueNumber, IssueRequest issue) async {
return github
.request('PATCH', '/repos/${slug.fullName}/issues/$issueNumber',
body: GitHubJson.encode(issue))
.then<Issue>((response) {
return Issue.fromJson(jsonDecode(response.body) as Map<String, dynamic>);
});
}