Skip to content

Commit 33d6c9e

Browse files
authored
Merge pull request #732 from robbieaverill/patch-1
Fix "get single label" example and add correct example for getting issue's labels
2 parents ba3f7de + a507ef6 commit 33d6c9e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

doc/issue/labels.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Returns an array of project labels.
1515
### Get a single label
1616

1717
```php
18-
$label = $client->api('issue')->labels()->all('KnpLabs', 'php-github-api', 'label1');
18+
$label = $client->api('issue')->labels()->show('KnpLabs', 'php-github-api', 'label1');
1919
```
2020

2121
### Create a label
@@ -57,6 +57,12 @@ Add a label to the issue by username, repo, issue number label name and. If the
5757
the system, it will be created.
5858
Returns an array of the issue labels.
5959

60+
### Get all labels for an issue
61+
62+
```php
63+
$label = $client->api('issue')->labels()->all('KnpLabs', 'php-github-api', 4);
64+
```
65+
6066
### Replace all labels for an issue
6167

6268
> Requires [authentication](../security.md).

0 commit comments

Comments
 (0)