diff options
| author | 2012-05-12 23:08:55 +0200 | |
|---|---|---|
| committer | 2012-05-12 23:08:55 +0200 | |
| commit | 748b320dd244341694c0d247d04c7f57ad4c052e (patch) | |
| tree | 37b7ffad24d21f398dbb0592395b65599594c40b /pygithub3/resources/pull_requests.py | |
| parent | New install environment to prod and dev (diff) | |
| parent | Some fixes/typos and 'validate_body' related (diff) | |
| download | python-github3-748b320dd244341694c0d247d04c7f57ad4c052e.tar.xz python-github3-748b320dd244341694c0d247d04c7f57ad4c052e.zip | |
Merge 'services/pull_requests'
Diffstat (limited to '')
| -rw-r--r-- | pygithub3/resources/pull_requests.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/pygithub3/resources/pull_requests.py b/pygithub3/resources/pull_requests.py new file mode 100644 index 0000000..a28e0fe --- /dev/null +++ b/pygithub3/resources/pull_requests.py @@ -0,0 +1,22 @@ +# -*- encoding: utf-8 -*- + +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', '') |
