8000 Caught up with API changes. · alexcouper/github3.py@c7ee56f · GitHub
[go: up one dir, main page]

Skip to content

Commit c7ee56f

Browse files
committed
Caught up with API changes.
Time for 0.7
1 parent 5567fb1 commit c7ee56f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

github3/repos/repo.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,11 +338,12 @@ def create_comment(self, body, sha, path=None, position=None, line=1):
338338
:param int line: (optional), line number of the file to comment on,
339339
default: 1
340340
:returns: :class:`RepoComment <RepoComment>` if successful else None
341+
341342
"""
342343
json = None
343344
if body and sha and (line and int(line) > 0):
344-
data = {'body': body, 'commit_id': sha, 'line': line,
345-
'path': path, 'position': position}
345+
data = {'body': body, 'line': line, 'path': path,
346+
'position': position}
346347
self._remove_none(data)
347348
url = self._build_url('commits', sha, 'comments',
348349
base_url=self._api)

tests/test_repos.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def test_create_comment(self):
177177
'one `BaseAccount` class to make things simpler. ')
178178
sha = 'd41566090114a752eb3a87dbcf2473eb427ef0f3'
179179
self.post(self.api + 'commits/{0}/comments'.format(sha))
180-
self.conf = {'data': {'body': body, 'commit_id': sha, 'line': 1}}
180+
self.conf = {'data': {'body': body, 'line': 1}}
181181

182182
with expect.githuberror():
183183
self.repo.create_comment(body, sha)

0 commit comments

Comments
 (0)
0