Mercurial > repos > bcclaywell > argo_navis
comparison venv/lib/python2.7/site-packages/github/PullRequestMergeStatus.py @ 0:d67268158946 draft
planemo upload commit a3f181f5f126803c654b3a66dd4e83a48f7e203b
author | bcclaywell |
---|---|
date | Mon, 12 Oct 2015 17:43:33 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:d67268158946 |
---|---|
1 # -*- coding: utf-8 -*- | |
2 | |
3 # ########################## Copyrights and license ############################ | |
4 # # | |
5 # Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> # | |
6 # Copyright 2012 Zearin <zearin@gonk.net> # | |
7 # Copyright 2013 AKFish <akfish@gmail.com> # | |
8 # Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> # | |
9 # Copyright 2013 martinqt <m.ki2@laposte.net> # | |
10 # # | |
11 # This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ # | |
12 # # | |
13 # PyGithub is free software: you can redistribute it and/or modify it under # | |
14 # the terms of the GNU Lesser General Public License as published by the Free # | |
15 # Software Foundation, either version 3 of the License, or (at your option) # | |
16 # any later version. # | |
17 # # | |
18 # PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY # | |
19 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS # | |
20 # FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more # | |
21 # details. # | |
22 # # | |
23 # You should have received a copy of the GNU Lesser General Public License # | |
24 # along with PyGithub. If not, see <http://www.gnu.org/licenses/>. # | |
25 # # | |
26 # ############################################################################## | |
27 | |
28 import github.GithubObject | |
29 | |
30 | |
31 class PullRequestMergeStatus(github.GithubObject.NonCompletableGithubObject): | |
32 """ | |
33 This class represents PullRequestMergeStatuss. The reference can be found here http://developer.github.com/v3/pulls/#get-if-a-pull-request-has-been-merged | |
34 """ | |
35 | |
36 @property | |
37 def merged(self): | |
38 """ | |
39 :type: bool | |
40 """ | |
41 return self._merged.value | |
42 | |
43 @property | |
44 def message(self): | |
45 """ | |
46 :type: string | |
47 """ | |
48 return self._message.value | |
49 | |
50 @property | |
51 def sha(self): | |
52 """ | |
53 :type: string | |
54 """ | |
55 return self._sha.value | |
56 | |
57 def _initAttributes(self): | |
58 self._merged = github.GithubObject.NotSet | |
59 self._message = github.GithubObject.NotSet | |
60 self._sha = github.GithubObject.NotSet | |
61 | |
62 def _useAttributes(self, attributes): | |
63 if "merged" in attributes: # pragma no branch | |
64 self._merged = self._makeBoolAttribute(attributes["merged"]) | |
65 if "message" in attributes: # pragma no branch | |
66 self._message = self._makeStringAttribute(attributes["message"]) | |
67 if "sha" in attributes: # pragma no branch | |
68 self._sha = self._makeStringAttribute(attributes["sha"]) |