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

Method createComment

lib/Gist.js:160–162  ·  view source on GitHub ↗

* Comment on a gist * @see https://developer.github.com/v3/gists/comments/#create-a-comment * @param {string} comment - the comment to add * @param {Requestable.callback} [cb] - the function that receives the API result * @return {Promise} - the Promise for the http request

(comment, cb)

Source from the content-addressed store, hash-verified

158 * @return {Promise} - the Promise for the http request
159 */
160 createComment(comment, cb) {
161 return this._request('POST', `/gists/${this.__id}/comments`, {body: comment}, cb);
162 }
163
164 /**
165 * Edit a comment on the gist

Callers 1

gist.spec.jsFile · 0.80

Calls 1

_requestMethod · 0.80

Tested by

no test coverage detected