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

Method createRepo

lib/Organization.js:32–34  ·  view source on GitHub ↗

* Create a repository in an organization * @see https://developer.github.com/v3/repos/#create * @param {Object} options - the repository definition * @param {Requestable.callback} [cb] - will receive the created repository * @return {Promise} - the promise for the http request

(options, cb)

Source from the content-addressed store, hash-verified

30 * @return {Promise} - the promise for the http request
31 */
32 createRepo(options, cb) {
33 return this._request('POST', `/orgs/${this.__name}/repos`, options, cb);
34 }
35
36 /**
37 * List the repositories in an organization

Callers

nothing calls this directly

Calls 1

_requestMethod · 0.80

Tested by

no test coverage detected