mirror of
https://github.com/kennethreitz-archive/github2.git
synced 2026-06-05 15:40:19 +00:00
Add the ability to comment on issues.
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user