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

Method isStarred

lib/Gist.js:107–109  ·  view source on GitHub ↗

* Check if a gist is starred by the user. * @see https://developer.github.com/v3/gists/#check-if-a-gist-is-starred * @param {Requestable.callback} [cb] - will receive true if the gist is starred and false if the gist is not starred * @return {Promise} - the Promise for the http request

(cb)

Source from the content-addressed store, hash-verified

105 * @return {Promise} - the Promise for the http request
106 */
107 isStarred(cb) {
108 return this._request204or404(`/gists/${this.__id}/star`, null, cb);
109 }
110
111 /**
112 * List the gist's commits

Callers 2

gist.spec.jsFile · 0.45
repository.spec.jsFile · 0.45

Calls 1

_request204or404Method · 0.80

Tested by

no test coverage detected