aboutsummaryrefslogtreecommitdiffstats
path: root/pygithub3/resources/pull_requests.py
blob: 1fe2623ba47f310c5179e247f1e6a1c2341fc15c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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', '')