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

Method getRevision

lib/Gist.js:128–130  ·  view source on GitHub ↗

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

(revision, cb)

Source from the content-addressed store, hash-verified

126 * @return {Promise} - the Promise for the http request
127 */
128 getRevision(revision, cb) {
129 return this._request('GET', `/gists/${this.__id}/${revision}`, null, cb);
130 }
131
132 /**
133 * List the gist's comments

Callers 1

gist.spec.jsFile · 0.80

Calls 1

_requestMethod · 0.80

Tested by

no test coverage detected