From 15b41f46158c153e0bab852e64612b3f6b465fdc Mon Sep 17 00:00:00 2001 From: Dorell James Galang Date: Wed, 10 Feb 2016 08:04:25 +0000 Subject: [PATCH] Incorrect use of show method. Use all method instead to get all hooks in a given repo. --- doc/repos.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/repos.md b/doc/repos.md index df504465804..df416b2aa85 100644 --- a/doc/repos.md +++ b/doc/repos.md @@ -157,7 +157,7 @@ $client->api('repo')->hooks()->remove('username', 'reponame', $id); > Requires [authentication](security.md). ```php -$client->api('repo')->hooks()->show('username', 'reponame'); +$client->api('repo')->hooks()->all('username', 'reponame'); ``` ### Get the collaborators for a repository