Skip to content

Commit c6b2d39

Browse files
committed
Mark the default branch
1 parent 184826b commit c6b2d39

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Github/Api/Repo.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -546,11 +546,11 @@ public function branches($username, $repository, $branch = null, array $paramete
546546
*
547547
* @return array|string
548548
*/
549-
public function mergeUpstream($username, $repository, $branchName = null)
549+
public function mergeUpstream($username, $repository, $branchName = 'main')
550550
{
551551
return $this->post(
552552
'/repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/merge-upstream',
553-
['branch' => $branchName ?? 'main']
553+
['branch' => $branchName]
554554
);
555555
}
556556

0 commit comments

Comments
 (0)