Skip to content

Commit f77df24

Browse files
committed
Merge pull request #376 from Soullivaneuh/patch-2
Add Hooks::ping
2 parents ad27d6f + ef2672e commit f77df24

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)