Gush\Adapter\Adapter::switchPullRequestBase PHP Method

switchPullRequestBase() public method

When the adapter does not support changing the base-branch, a new PR should be opened with same subject, body and labels. And the old PR should be closed.
public switchPullRequestBase ( integer $prNumber, string $newBase, string $newHead, boolean $forceNewPr = false ) : array
$prNumber integer
$newBase string New base for the PR
$newHead string org:branch
$forceNewPr boolean Open new PR (even when switching is supported)
return array An array with the following keys: html_url, number (either the current or the new PR)
    public function switchPullRequestBase($prNumber, $newBase, $newHead, $forceNewPr = false);