* Create a new project * @see https://developer.github.com/v3/repos/projects/#create-a-project * @param {Object} options - the description of the project * @param {Requestable.callback} cb - will receive the newly created project * @return {Promise} - the promise for the http request
(options, cb)
| 112 | * @return {Promise} - the promise for the http request |
| 113 | */ |
| 114 | createProject(options, cb) { |
| 115 | options = options || {}; |
| 116 | options.AcceptHeader = 'inertia-preview'; |
| 117 | return this._request('POST', `/orgs/${this.__name}/projects`, options, cb); |
| 118 | } |
| 119 | } |
| 120 | |
| 121 | module.exports = Organization; |