aboutsummaryrefslogtreecommitdiffstats
path: root/pygithub3/services/pull_requests/comments.py
diff options
context:
space:
mode:
authorDavid Medina <davidmedina9@gmail.com>2012-05-17 22:59:33 +0200
committerDavid Medina <davidmedina9@gmail.com>2012-05-17 22:59:33 +0200
commit8c64210622d2d3aeabb3c23522e27dcebe2fe706 (patch)
tree7e4a9f1ce26a7f373dd7034f1657d8438b5fc00c /pygithub3/services/pull_requests/comments.py
parentReadme and authors updated (diff)
downloadpython-github3-8c64210622d2d3aeabb3c23522e27dcebe2fe706.tar.xz
python-github3-8c64210622d2d3aeabb3c23522e27dcebe2fe706.zip
refs #10
Diffstat (limited to 'pygithub3/services/pull_requests/comments.py')
-rw-r--r--pygithub3/services/pull_requests/comments.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pygithub3/services/pull_requests/comments.py b/pygithub3/services/pull_requests/comments.py
index 2edbfdf..ebc4e4b 100644
--- a/pygithub3/services/pull_requests/comments.py
+++ b/pygithub3/services/pull_requests/comments.py
@@ -54,9 +54,9 @@ class Comments(Service, MimeTypeMixin):
)
def update(self, number, message, user=None, repo=None):
- """Edit a comment
+ """Update a comment
- :param str number: The id of the comment to edit
+ :param str number: The id of the comment to update
:param str message: Comment message
:param str user: Username
:param str repo: Repository
@@ -64,7 +64,7 @@ class Comments(Service, MimeTypeMixin):
.. note::
Remember :ref:`config precedence`
"""
- request = self.make_request('pull_requests.comments.edit',
+ request = self.make_request('pull_requests.comments.update',
number=number, body={'body': message}, user=user, repo=repo)
return self._patch(request)