Skip to content

Commit 8c64210

Browse files
committed
1 parent dd29354 commit 8c64210

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

pygithub3/requests/pull_requests/comments.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def clean_body(self):
3232
return self.body
3333

3434

35-
class Edit(Request):
35+
class Update(Request):
3636
uri = 'repos/{user}/{repo}/pulls/comments/{number}'
3737
resource = Comment
3838
body_schema = {

pygithub3/services/pull_requests/comments.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,17 +54,17 @@ def create(self, number, data, user=None, repo=None):
5454
)
5555

5656
def update(self, number, message, user=None, repo=None):
57-
"""Edit a comment
57+
"""Update a comment
5858
59-
:param str number: The id of the comment to edit
59+
:param str number: The id of the comment to update
6060
:param str message: Comment message
6161
:param str user: Username
6262
:param str repo: Repository
6363
6464
.. note::
6565
Remember :ref:`config precedence`
6666
"""
67-
request = self.make_request('pull_requests.comments.edit',
67+
request = self.make_request('pull_requests.comments.update',
6868
number=number, body={'body': message}, user=user, repo=repo)
6969
return self._patch(request)
7070

pygithub3/tests/services/test_pull_requests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,12 +170,12 @@ def test_CREATE_in_reply_to(self, reqm):
170170
('post', _('repos/user/repo/pulls/1/comments'))
171171
)
172172

173-
def test_EDIT(self, reqm):
173+
def test_UPDATE(self, reqm):
174174
reqm.return_value = mock_response(200)
175175
data = {
176176
'body': 'something completely different',
177177
}
178-
self.service.edit(1, data)
178+
self.service.update(1, data)
179179
self.assertEqual(
180180
reqm.call_args[0],
181181
('patch', _('repos/user/repo/pulls/comments/1'))

0 commit comments

Comments
 (0)