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

Lines changed: 2 additions & 2 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy