mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-02 03:41:08 +00:00
Generate some repetitive doc files
This commit is contained in:
@@ -20,38 +20,63 @@ import github.GitTree
|
||||
|
||||
|
||||
class GitCommit(github.GithubObject.GithubObject):
|
||||
"""
|
||||
This class represents GitCommits as returned for example by http://developer.github.com/v3/todo
|
||||
"""
|
||||
|
||||
@property
|
||||
def author(self):
|
||||
"""
|
||||
:type: :class:`github.GitAuthor.GitAuthor`
|
||||
"""
|
||||
self._completeIfNotSet(self._author)
|
||||
return self._NoneIfNotSet(self._author)
|
||||
|
||||
@property
|
||||
def committer(self):
|
||||
"""
|
||||
:type: :class:`github.GitAuthor.GitAuthor`
|
||||
"""
|
||||
self._completeIfNotSet(self._committer)
|
||||
return self._NoneIfNotSet(self._committer)
|
||||
|
||||
@property
|
||||
def message(self):
|
||||
"""
|
||||
:type: string
|
||||
"""
|
||||
self._completeIfNotSet(self._message)
|
||||
return self._NoneIfNotSet(self._message)
|
||||
|
||||
@property
|
||||
def parents(self):
|
||||
"""
|
||||
:type: list of :class:`github.GitCommit.GitCommit`
|
||||
"""
|
||||
self._completeIfNotSet(self._parents)
|
||||
return self._NoneIfNotSet(self._parents)
|
||||
|
||||
@property
|
||||
def sha(self):
|
||||
"""
|
||||
:type: string
|
||||
"""
|
||||
self._completeIfNotSet(self._sha)
|
||||
return self._NoneIfNotSet(self._sha)
|
||||
|
||||
@property
|
||||
def tree(self):
|
||||
"""
|
||||
:type: :class:`github.GitTree.GitTree`
|
||||
"""
|
||||
self._completeIfNotSet(self._tree)
|
||||
return self._NoneIfNotSet(self._tree)
|
||||
|
||||
@property
|
||||
def url(self):
|
||||
"""
|
||||
:type: string
|
||||
"""
|
||||
self._completeIfNotSet(self._url)
|
||||
return self._NoneIfNotSet(self._url)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user