MCPcopy Index your code
hub / github.com/github-tools/github / editComment

Method editComment

lib/Gist.js:172–174  ·  view source on GitHub ↗

* Edit a comment on the gist * @see https://developer.github.com/v3/gists/comments/#edit-a-comment * @param {number} comment - the id of the comment * @param {string} body - the new comment * @param {Requestable.callback} [cb] - will receive the modified comment * @return {Promis

(comment, body, cb)

Source from the content-addressed store, hash-verified

170 * @return {Promise} - the promise for the http request
171 */
172 editComment(comment, body, cb) {
173 return this._request('PATCH', `/gists/${this.__id}/comments/${comment}`, {body: body}, cb);
174 }
175
176 /**
177 * Delete a comment on the gist.

Callers 1

gist.spec.jsFile · 0.80

Calls 1

_requestMethod · 0.80

Tested by

no test coverage detected