Skip to content

Commit 72e2c08

Browse files
committed
Fixes GitHub Runtime Exception when message is null
Current Github API complains when the commit_message is null.
1 parent 2665cf5 commit 72e2c08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Github/Api/PullRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public function merged($username, $repository, $id)
115115
return $this->get('repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/pulls/'.rawurlencode($id).'/merge');
116116
}
117117

118-
public function merge($username, $repository, $id, $message = null)
118+
public function merge($username, $repository, $id, $message = '')
119119
{
120120
return $this->put('repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/pulls/'.rawurlencode($id).'/merge', array(
121121
'commit_message' => $message

0 commit comments

Comments
 (0)