Skip to content

Commit ac8ea59

Browse files
committed
Adjust repo comment API to latest changes
1 parent be1086c commit ac8ea59

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Github/Api/Repository/Comments.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ public function show($username, $repository, $comment)
2727

2828
public function create($username, $repository, $sha, array $params)
2929
{
30-
if (!isset($params['body'], $params['commit_id'], $params['line'], $params['path'], $params['position'])) {
31-
throw new MissingArgumentException(array('body', 'commit_id', 'line', 'path', 'position'));
30+
if (!isset($params['body'], $params['path'], $params['position'])) {
31+
throw new MissingArgumentException(array('body', 'path', 'position'));
3232
}
3333

3434
return $this->post('repos/'.urlencode($username).'/'.urlencode($repository).'/commits/'.urlencode($sha).'/comments', $params);

0 commit comments

Comments
 (0)