Skip to content

Commit 5bb8142

Browse files
authored
minor #893 Removed shadow-cat (GrahamCampbell)
This PR was merged into the 2.x branch. Discussion ---------- Closes #869. Commits ------- f12554a Removed shadow-cat
2 parents c17e729 + f12554a commit 5bb8142

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

lib/Github/Api/PullRequest.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,6 @@ public function create($username, $repository, array $params)
156156
throw new MissingArgumentException(['issue', 'body']);
157157
}
158158

159-
if (isset($params['draft']) && $params['draft'] === true) {
160-
//This feature is in preview mode, so set the correct accept-header
161-
$this->acceptHeaderValue = 'application/vnd.github.shadow-cat-preview+json';
162-
}
163-
164159
return $this->post('/repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/pulls', $params);
165160
}
166161

0 commit comments

Comments
 (0)