diff --git a/lib/Github/Api/PullRequest.php b/lib/Github/Api/PullRequest.php index a92e71b186c..fbb763dc5bf 100644 --- a/lib/Github/Api/PullRequest.php +++ b/lib/Github/Api/PullRequest.php @@ -156,11 +156,6 @@ public function create($username, $repository, array $params) throw new MissingArgumentException(['issue', 'body']); } - if (isset($params['draft']) && $params['draft'] === true) { - //This feature is in preview mode, so set the correct accept-header - $this->acceptHeaderValue = 'application/vnd.github.shadow-cat-preview+json'; - } - return $this->post('/repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/pulls', $params); }