mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 19:01:15 +00:00
Drop use of shadow-cat for draft PRs (#1469)
This commit is contained in:
@@ -1388,10 +1388,9 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def __create_pull(self, **kwds):
|
||||
post_parameters = kwds
|
||||
import_header = {"Accept": Consts.draftPullRequestPreview}
|
||||
|
||||
headers, data = self._requester.requestJsonAndCheck(
|
||||
"POST", self.url + "/pulls", input=post_parameters, headers=import_header
|
||||
"POST", self.url + "/pulls", input=post_parameters
|
||||
)
|
||||
return github.PullRequest.PullRequest(
|
||||
self._requester, headers, data, completed=True
|
||||
|
||||
Reference in New Issue
Block a user