@@ -108,10 +108,8 @@ class Gist extends Requestable {
108
108
return this . _request204or404 ( `/gists/${ this . __id } /star` , null , cb ) ;
109
109
}
110
110
111
-
112
-
113
111
/**
114
- * List the comments on a gist
112
+ * List the gist's comments
115
113
* @see https://developer.github.com/v3/gists/comments/#list-comments-on-a-gist
116
114
* @param {Requestable.callback } [cb] - will receive the array of comments
117
115
* @return {Promise } - the promise for the http request
@@ -121,7 +119,7 @@ class Gist extends Requestable {
121
119
}
122
120
123
121
/**
124
- * Fetch a comment of the gist
122
+ * Fetch one of the gist's comments
125
123
* @see https://developer.github.com/v3/gists/comments/#get-a-single-comment
126
124
* @param {number } comment - the id of the comment
127
125
* @param {Requestable.callback } [cb] - will receive the comment
@@ -132,7 +130,7 @@ class Gist extends Requestable {
132
130
}
133
131
134
132
/**
135
- * Create Comment to a gist.
133
+ * Comment on a gist
136
134
* @see https://developer.github.com/v3/gists/comments/#create-a-comment
137
135
* @param {string } comment - the comment to add
138
136
* @param {Requestable.callback } [cb] - the function that receives the API result
@@ -143,19 +141,19 @@ class Gist extends Requestable {
143
141
}
144
142
145
143
/**
146
- * Edit a Gist Comment
144
+ * Edit a comment on the gist
147
145
* @see https://developer.github.com/v3/gists/comments/#edit-a-comment
148
146
* @param {number } comment - the id of the comment
149
147
* @param {string } body - the new comment
150
- * @param {Requestable.callback } [cb] - will receive the modified issue
148
+ * @param {Requestable.callback } [cb] - will receive the modified comment
151
149
* @return {Promise } - the promise for the http request
152
150
*/
153
151
editComment ( comment , body , cb ) {
154
152
return this . _request ( 'PATCH' , `/gists/${ this . __id } /comments/${ comment } ` , { body : body } , cb ) ;
155
153
}
156
154
157
155
/**
158
- * Delete a comment of a gist.
156
+ * Delete a comment on the gist.
159
157
* @see https://developer.github.com/v3/gists/comments/#delete-a-comment
160
158
* @param {number } comment - the id of the comment
161
159
* @param {Requestable.callback } [cb] - will receive true if the request succeeds
0 commit comments