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

Method star

lib/Gist.js:87–89  ·  view source on GitHub ↗

* Star a gist. * @see https://developer.github.com/v3/gists/#star-a-gist * @param {Requestable.callback} [cb] - will receive true if the request is successful * @return {Promise} - the Promise for the http request

(cb)

Source from the content-addressed store, hash-verified

85 * @return {Promise} - the Promise for the http request
86 */
87 star(cb) {
88 return this._request('PUT', `/gists/${this.__id}/star`, null, cb);
89 }
90
91 /**
92 * Unstar a gist.

Callers 2

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

Calls 1

_requestMethod · 0.80

Tested by

no test coverage detected