Skip to content

Commit 15b41f4

Browse files
committed
Incorrect use of show method. Use all method instead to get all hooks in a given repo.
1 parent 4176d3e commit 15b41f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/repos.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ $client->api('repo')->hooks()->remove('username', 'reponame', $id);
157157
> Requires [authentication](security.md).
158158
159159
```php
160-
$client->api('repo')->hooks()->show('username', 'reponame');
160+
$client->api('repo')->hooks()->all('username', 'reponame');
161161
```
162162

163163
### Get the collaborators for a repository

0 commit comments

Comments
 (0)