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

Method getComment

lib/Gist.js:149–151  ·  view source on GitHub ↗

* Fetch one of the gist's comments * @see https://developer.github.com/v3/gists/comments/#get-a-single-comment * @param {number} comment - the id of the comment * @param {Requestable.callback} [cb] - will receive the comment * @return {Promise} - the Promise for the http request

(comment, cb)

Source from the content-addressed store, hash-verified

147 * @return {Promise} - the Promise for the http request
148 */
149 getComment(comment, cb) {
150 return this._request('GET', `/gists/${this.__id}/comments/${comment}`, null, cb);
151 }
152
153 /**
154 * Comment on a gist

Callers 1

gist.spec.jsFile · 0.80

Calls 1

_requestMethod · 0.80

Tested by

no test coverage detected