aboutsummaryrefslogtreecommitdiffstats
path: root/pygithub3/services/git_data/commits.py
diff options
context:
space:
mode:
authorDavid Medina <davidmedina9@gmail.com>2012-04-28 00:19:49 +0200
committerDavid Medina <davidmedina9@gmail.com>2012-04-28 22:35:30 +0200
commit1b1ccd6b86740157b2529614945a218d73049f4a (patch)
tree970b2dc73302268a8c0964e34d9b38aa1643d0d6 /pygithub3/services/git_data/commits.py
parentMerged pull request #3 from natw/git_data (diff)
downloadpython-github3-1b1ccd6b86740157b2529614945a218d73049f4a.tar.xz
python-github3-1b1ccd6b86740157b2529614945a218d73049f4a.zip
Litle fixs
Diffstat (limited to 'pygithub3/services/git_data/commits.py')
-rw-r--r--pygithub3/services/git_data/commits.py19
1 files changed, 11 insertions, 8 deletions
diff --git a/pygithub3/services/git_data/commits.py b/pygithub3/services/git_data/commits.py
index 25e8775..ddeed98 100644
--- a/pygithub3/services/git_data/commits.py
+++ b/pygithub3/services/git_data/commits.py
@@ -10,24 +10,27 @@ class Commits(Service):
def get(self, sha, user=None, repo=None):
"""get a commit from the current repo
- :param str sha: SHA of the Commit that you want.
+ :param str sha: SHA of the Commit that you want
:param str user: Username
:param str repo: Repository
+ .. note::
+ Remember :ref:`config precedence`
"""
request = self.make_request('git_data.commits.get', sha=sha,
- user=user, repo=repo)
+ user=user, repo=repo)
return self._get(request)
def create(self, data, user=None, repo=None):
"""create a commit on a repo
:param dict data: Input. See `github commits doc`_
- :param str user: username
- :param str repo: repository name
+ :param str user: Username
+ :param str repo: Repository
+ .. note::
+ Remember :ref:`config precedence`
"""
- return self._post(
- self.make_request('git_data.commits.create', user=user, repo=repo,
- body=data)
- )
+ request = self.make_request('git_data.commits.create', user=user,
+ repo=repo, body=data)
+ return self._post(request)