diff options
author | 2012-04-28 23:43:28 +0200 | |
---|---|---|
committer | 2012-04-28 23:43:28 +0200 | |
commit | c24e6efbb59065dcb6655d47bb7b0254f2753bff (patch) | |
tree | 32290846e640555ec4804c53c4aab62cbbe7bd13 /pygithub3/resources/pull_requests.py | |
parent | :sparkles: Release 0.3 :sparkles: (diff) | |
parent | docstring link typo (diff) | |
download | python-github3-c24e6efbb59065dcb6655d47bb7b0254f2753bff.tar.xz python-github3-c24e6efbb59065dcb6655d47bb7b0254f2753bff.zip |
Merged pull request #4 from natw:services/pull_requests
Diffstat (limited to 'pygithub3/resources/pull_requests.py')
-rw-r--r-- | pygithub3/resources/pull_requests.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/pygithub3/resources/pull_requests.py b/pygithub3/resources/pull_requests.py new file mode 100644 index 0000000..1fe2623 --- /dev/null +++ b/pygithub3/resources/pull_requests.py @@ -0,0 +1,20 @@ +from .base import Resource + + +class PullRequest(Resource): + _dates = ('created_at', 'updated_at', 'closed_at', 'merged_at') + + def __str__(self): + return '<PullRequest (%s)>' % getattr(self, 'title', '') + + +class File(Resource): + def __str__(self): + return '<File (%s)>' % getattr(self, 'filename', '') + + +class Comment(Resource): + _dates = ('created_at', 'updated_at') + + def __str__(self): + return '<Comment (#%s)>' % getattr(self, 'id', '') |