Skip to content

Commit bf39a12

Browse files
committed
Merge pull request github#1020 from tomasbjerre/master
Clarifying usage of commit_id in comment example
2 parents a9e7d7d + 3c3b8f0 commit bf39a12

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

content/v3/pulls/comments.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,12 @@ Name | Type | Description
6262
Name | Type | Description
6363
-----|------|--------------
6464
`body`|`string` | **Required**. The text of the comment
65-
`commit_id`|`string` | **Required**. The SHA of the commit to comment on.
65+
`commit_id`|`string` | **Required**. The SHA of the latest commit of the pull request to comment on.
6666
`path`|`string` | **Required**. The relative path of the file to comment on.
6767
`position`|`integer` | **Required**. The line index in the diff to comment on.
6868

69+
Note: When passing the `commit_id`, use the SHA of the latest commit in the pull request or your comment may appear as "outdated" if the specified `position` has been modified in a subsequent commit.
70+
6971

7072
#### Example
7173

0 commit comments

Comments
 (0)