Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitafdba48

Browse files
committed
Merge pull requestsigmavirus24#372 from rco-ableton/stable/0.9
Support context in create_status
2 parentse4d496c +228929b commitafdba48

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
returnRelease(json,self)
787787

788788
@requires_auth
789-
defcreate_status(self,sha,state,target_url='',description=''):
789+
defcreate_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
ifshaandstate:
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
returnStatus(json)ifjsonelseNone

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp