Skip to content

Commit ef2672e

Browse files
committed
1 parent ad27d6f commit ef2672e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/Github/Api/Repository/Hooks.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ public function update($username, $repository, $id, array $params)
3939
return $this->patch('repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/hooks/'.rawurlencode($id), $params);
4040
}
4141

42+
public function ping($username, $repository, $id)
43+
{
44+
return $this->post('repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/hooks/'.rawurlencode($id).'/pings');
45+
}
46+
4247
public function test($username, $repository, $id)
4348
{
4449
return $this->post('repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/hooks/'.rawurlencode($id).'/test');

0 commit comments

Comments
 (0)