Add the ability to comment on issues.

This commit is contained in:
Fernando Perez
2010-05-07 01:29:12 -07:00
parent 03afc58f59
commit d08e1bc2da
+7
View File
@@ -52,3 +52,10 @@ class Issues(GithubCommand):
def remove_label(self, project, number, label):
return self.make_request("label/remove", project, label, str(number),
filter="labels")
def comment(self, project, number, comment):
"""Comment on an issue."""
comment_data = {'comment': comment}
return self.make_request("comment", project, str(number),
post_data=comment_data,
filter='comment')