Comparing version 1.0.31 to 1.0.32
10
index.js
@@ -24,6 +24,12 @@ var B = require('br4nch'); | ||
var questions = [ | ||
{ | ||
type: 'confirm', | ||
name: 'isPrivate', | ||
message: 'Private?', | ||
default: false | ||
}, | ||
{ | ||
type: 'input', | ||
name: 'repo', | ||
message: 'What\'s your git repository name?' | ||
message: 'Name?' | ||
} | ||
@@ -34,3 +40,3 @@ ]; | ||
console.log(colors.green('?'), colors.bold('Write down your github password:'), emoji.emojify(':point_down:'), colors.italic.underline.cyan(' ( It will be hidden )')); | ||
spawn( "curl", [ "-u", username.trim(), 'https://api.github.com/user/repos', "-d", `{"name":"${answers.repo.trim()}"}`], function( error, stdout ) { | ||
spawn( "curl", [ "-u", username.trim(), 'https://api.github.com/user/repos', "-d", `{"name":"${answers.repo.trim()}", "private":${answers.isPrivate}}, "description": "${answers.repo.trim()} created automatically."`], function( error, stdout ) { | ||
if (JSON.parse(stdout).clone_url === undefined) { | ||
@@ -37,0 +43,0 @@ reject(colors.red('Please check your github credentials.')); |
{ | ||
"name": "cr34t3", | ||
"version": "1.0.31", | ||
"version": "1.0.32", | ||
"description": "Create github repository in programmatically.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3442
50