Skip to content

Commit

Permalink
Add support for editing issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
JNRowe committed Nov 2, 2010
1 parent cfc4c9e commit f99a3db
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions github2/issues.py
Expand Up @@ -71,6 +71,12 @@ def reopen(self, project, number):
return self.get_value("reopen", project, str(number), filter="issue",
datatype=Issue)

def edit(self, project, number, title, body):
issue_data = {"title": title, "body": body}
return self.get_value("edit", project, str(number),
post_data=issue_data, filter="issue",
datatype=Issue)

def add_label(self, project, number, label):
return self.make_request("label/add", project, label, str(number),
filter="labels")
Expand Down

0 comments on commit f99a3db

Please sign in to comment.