Skip to content

Instantly share code, notes, and snippets.

@makuk66
Last active July 26, 2016 15:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save makuk66/996c114e71a2cba3e22f4b03920fe716 to your computer and use it in GitHub Desktop.
Save makuk66/996c114e71a2cba3e22f4b03920fe716 to your computer and use it in GitHub Desktop.
--- 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