File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,14 +23,23 @@ module.exports = async () => {
2323 const title = await io . read ( ) ;
2424 io . write ( "" ) ;
2525 io . write (
26- cyan ( "> Enter Repo Description (You can leave it blank. Just Press Enter)" )
26+ cyan ( "> Enter Repo Description (You can leave it blank. Just Press Enter. )" )
2727 ) ;
2828 const description = await io . read ( ) ;
2929 io . write ( "" ) ;
30- io . write ( cyan ( "> Create Private Repo? (True/False)" ) ) ;
31- const private = await io . read ( ) ;
30+ io . write (
31+ cyan (
32+ "> Create Private Repo? (True/False) (You can leave it blank. Public Repo will be created. Just Press Enter.)"
33+ )
34+ ) ;
35+ let private = await io . read ( ) ;
36+ if ( private === "false" || private === "" ) private = false ;
3237 io . write ( "" ) ;
33- io . write ( cyan ( "> Create empty README.MD file? (True/False)" ) ) ;
38+ io . write (
39+ cyan (
40+ "> Create empty README.MD file? (True/False) (You can leave it blank. Just Press Enter.)"
41+ )
42+ ) ;
3443 const auto_init = await io . read ( ) ;
3544 io . write ( "" ) ;
3645
@@ -44,7 +53,7 @@ module.exports = async () => {
4453 const options = {
4554 method : "POST" ,
4655 headers : headers ,
47- data : JSON . stringify ( payLoad ) ,
56+ data : payLoad ,
4857 url : `https://api.github.com/user/repos` ,
4958 } ;
5059
You can’t perform that action at this time.
0 commit comments