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

Method update

lib/Gist.js:77–79  ·  view source on GitHub ↗

* Update a gist. * @see https://developer.github.com/v3/gists/#edit-a-gist * @param {Object} gist - the new data for the gist * @param {Requestable.callback} [cb] - the function that receives the API result * @return {Promise} - the Promise for the http request

(gist, cb)

Source from the content-addressed store, hash-verified

75 * @return {Promise} - the Promise for the http request
76 */
77 update(gist, cb) {
78 return this._request('PATCH', `/gists/${this.__id}`, gist, cb);
79 }
80
81 /**
82 * Star a gist.

Callers 1

gist.spec.jsFile · 0.80

Calls 1

_requestMethod · 0.80

Tested by

no test coverage detected