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

Method fork

lib/Gist.js:66–68  ·  view source on GitHub ↗

* Fork a gist. * @see https://developer.github.com/v3/gists/#fork-a-gist * @param {Requestable.callback} [cb] - the function that will receive the gist * @return {Promise} - the Promise for the http request

(cb)

Source from the content-addressed store, hash-verified

64 * @return {Promise} - the Promise for the http request
65 */
66 fork(cb) {
67 return this._request('POST', `/gists/${this.__id}/forks`, null, cb);
68 }
69
70 /**
71 * Update a gist.

Callers 1

repository.spec.jsFile · 0.45

Calls 1

_requestMethod · 0.80

Tested by

no test coverage detected