Skip to content

Commit ddca58d

Browse files
authored
Merge pull request #450 from acrobat/issue-comment-docfix
Issue comment api expects issue number instead of id
2 parents f1e4fc9 + 417a291 commit ddca58d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/issue/comments.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ $comments = $client->api('issue')->comments()->all('KnpLabs', 'php-github-api',
1111

1212
* `KnpLabs` : the owner of the repository
1313
* `php-github-api` : the name of the repository
14-
* `4` : the id of the issue
14+
* `4` : the issue number
1515
* You can select another page of comments using one more parameter (default: 1)
1616

1717
Returns an array of comments.
@@ -41,7 +41,7 @@ $client->api('issue')->comments()->create('KnpLabs', 'php-github-api', 4, array(
4141

4242
* `KnpLabs` : the owner of the repository
4343
* `php-github-api` : the name of the repository
44-
* `4` : the id of the issue
44+
* `4` : the issue number
4545
* You can set a `body` and optionally a `title`
4646

4747

0 commit comments

Comments
 (0)