8000 Possible fix for an issue found by @zyga · davidmoss/github3.py@e3f3b53 · GitHub
[go: up one dir, main page]

Skip to content

Commit e3f3b53

Browse files
committed
Possible fix for an issue found by @zyga
1 parent 44e0373 commit e3f3b53

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

docs/api.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ Or you can simply use the following functions
8989

9090
------
9191

92-
.. autofunction:: github3.iter_repos
92+
.. autofunction:: github3.iter_user_repos
9393

9494
------
9595

github3/repos/repo.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ def create_blob(self, content, encoding):
287287
return sha
288288

289289
@requires_auth
290-
def create_comment(self, body, sha, path='', position=1, line=1):
290+
def create_comment(self, body, sha, path=None, position=None, line=1):
291291
"""Create a comment on a commit.
292292
293293
:param str body: (required), body of the message
@@ -305,6 +305,7 @@ def create_comment(self, body, sha, path='', position=1, line=1):
305305
if body and sha and line > 0:
306306
data = {'body': body, 'commit_id': sha, 'line': line,
307307
'path': path, 'position': position}
308+
self._remove_none(data)
308309
url = self._build_url('commits', sha, 'comments',
309310
base_url=self._api)
310311
json = self._json(self._post(url, data=data), 201)

0 commit comments

Comments
 (0)
0