@@ -79,8 +79,8 @@ func (s *IssuesService) ListComments(ctx context.Context, owner string, repo str
79
79
// GetComment fetches the specified issue comment.
80
80
//
81
81
// GitHub API docs: https://developer.github.com/v3/issues/comments/#get-a-single-comment
82
- func (s * IssuesService ) GetComment (ctx context.Context , owner string , repo string , id int64 ) (* IssueComment , * Response , error ) {
83
- u := fmt .Sprintf ("repos/%v/%v/issues/comments/%d" , owner , repo , id )
82
+ func (s * IssuesService ) GetComment (ctx context.Context , owner string , repo string , commentID int64 ) (* IssueComment , * Response , error ) {
83
+ u := fmt .Sprintf ("repos/%v/%v/issues/comments/%d" , owner , repo , commentID )
84
84
85
85
req , err := s .client .NewRequest ("GET" , u , nil )
86
86
if err != nil {
@@ -118,10 +118,11 @@ func (s *IssuesService) CreateComment(ctx context.Context, owner string, repo st
118
118
}
119
119
120
120
// EditComment updates an issue comment.
121
+ // A non-nil comment.Body must be provided. Other comment fields should be left nil.
121
122
//
122
123
// GitHub API docs: https://developer.github.com/v3/issues/comments/#edit-a-comment
123
- func (s * IssuesService ) EditComment (ctx context.Context , owner string , repo string , id int64 , comment * IssueComment ) (* IssueComment , * Response , error ) {
124
- u := fmt .Sprintf ("repos/%v/%v/issues/comments/%d" , owner , repo , id )
124
+ func (s * IssuesService ) EditComment (ctx context.Context , owner string , repo string , commentID int64 , comment * IssueComment ) (* IssueComment , * Response , error ) {
125
+ u := fmt .Sprintf ("repos/%v/%v/issues/comments/%d" , owner , repo , commentID )
125
126
req , err := s .client .NewRequest ("PATCH" , u , comment )
126
127
if err != nil {
127
128
return nil , nil , err
@@ -138,8 +139,8 @@ func (s *IssuesService) EditComment(ctx context.Context, owner string, repo stri
138
139
// DeleteComment deletes an issue comment.
139
140
//
140
141
// GitHub API docs: https://developer.github.com/v3/issues/comments/#delete-a-comment
141
- func (s * IssuesService ) DeleteComment (ctx context.Context , owner string , repo string , id int64 ) (* Response , error ) {
142
- u := fmt .Sprintf ("repos/%v/%v/issues/comments/%d" , owner , repo , id )
142
+ func (s * IssuesService ) DeleteComment (ctx context.Context , owner string , repo string , commentID int64 ) (* Response , error ) {
143
+ u := fmt .Sprintf ("repos/%v/%v/issues/comments/%d" , owner , repo , commentID )
143
144
req , err := s .client .NewRequest ("DELETE" , u , nil )
144
145
if err != nil {
145
146
return nil , err
0 commit comments