Skip to content

Commit afdba48

Browse files
committed
Merge pull request sigmavirus24#372 from rco-ableton/stable/0.9
Support context in create_status
2 parents e4d496c + 228929b commit afdba48

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

github3/repos/repo.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,7 @@ def create_release(self, tag_name, target_commitish=None, name=None,
786786
return Release(json, self)
787787

788788
@requires_auth
789-
def create_status(self, sha, state, target_url='', description=''):
789+
def create_status(self, sha, state, target_url='', description='', context=''):
790790
"""Create a status object on a commit.
791791
792792
:param str sha: (required), SHA of the commit to create the status on
@@ -798,7 +798,7 @@ def create_status(self, sha, state, target_url='', description=''):
798798
json = {}
799799
if sha and state:
800800
data = {'state': state, 'target_url': target_url,
801-
'description': description}
801+
'description': description, 'context': context}
802802
url = self._build_url('statuses', sha, base_url=self._api)
803803
json = self._json(self._post(url, data=data), 201)
804804
return Status(json) if json else None

0 commit comments

Comments
 (0)