Skip to content

Commit ca0623f

Browse files
committed
name is not a required argument to update a hook
1 parent 215cab4 commit ca0623f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Github/Api/Repository/Hooks.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ public function create($username, $repository, array $params)
3232

3333
public function update($username, $repository, $id, array $params)
3434
{
35-
if (!isset($params['name'], $params['config'])) {
36-
throw new MissingArgumentException(array('name', 'config'));
35+
if (!isset($params['config'])) {
36+
throw new MissingArgumentException(array('config'));
3737
}
3838

3939
return $this->patch('/repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/hooks/'.rawurlencode($id), $params);

0 commit comments

Comments
 (0)