Last active
July 26, 2016 15:55
-
-
Save makuk66/996c114e71a2cba3e22f4b03920fe716 to your computer and use it in GitHub Desktop.
github-status-context for https://github.com/PyGithub/PyGithub/issues/358
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- venv/lib/python2.7/site-packages/github/CommitStatus.py.orig 2016-07-26 15:14:41.131180197 +0000 | |
+++ venv/lib/python2.7/site-packages/github/CommitStatus.py 2016-07-26 15:52:54.506709022 +0000 | |
@@ -70,6 +70,13 @@ | |
return self._state.value | |
@property | |
+ def context(self): | |
+ """ | |
+ :type: string | |
+ """ | |
+ return self._context.value | |
+ | |
+ @property | |
def target_url(self): | |
""" | |
:type: string | |
@@ -96,6 +103,7 @@ | |
self._description = github.GithubObject.NotSet | |
self._id = github.GithubObject.NotSet | |
self._state = github.GithubObject.NotSet | |
+ self._context = github.GithubObject.NotSet | |
self._target_url = github.GithubObject.NotSet | |
self._updated_at = github.GithubObject.NotSet | |
self._url = github.GithubObject.NotSet | |
@@ -111,6 +119,8 @@ | |
self._id = self._makeIntAttribute(attributes["id"]) | |
if "state" in attributes: # pragma no branch | |
self._state = self._makeStringAttribute(attributes["state"]) | |
+ if "context" in attributes: # pragma no branch | |
+ self._context = self._makeStringAttribute(attributes["context"]) | |
if "target_url" in attributes: # pragma no branch | |
self._target_url = self._makeStringAttribute(attributes["target_url"]) | |
if "updated_at" in attributes: # pragma no branch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment