@@ -15,14 +15,14 @@ var git = {
1515 } ,
1616 }
1717 } ;
18-
18+
1919 var options = ( function ( ) {
2020 var options = {
21- url : git . config . get ( 'gitlab.url' ) || process . env . GITLAB_URL ,
21+ host : git . config . get ( 'gitlab.url' ) || process . env . GITLAB_URL ,
2222 token : git . config . get ( 'gitlab.token' ) || process . env . GITLAB_TOKEN ,
2323 } ;
24-
25- if ( ! options . url ) {
24+
25+ if ( ! options . host ) {
2626 var defaultInput = ( function ( ) {
2727 var url = git . config . get ( 'remote.origin.url' ) ;
2828 if ( ! url || url . indexOf ( 'bitbucket' ) !== - 1 || url . indexOf ( 'github' ) !== - 1 ) {
@@ -31,15 +31,15 @@ var git = {
3131 return 'https://' + gitUrlParse ( url ) . resource ;
3232 } ) ( ) ;
3333 var urlQuestion = ( 'Enter GitLab URL (' + defaultInput + '): ' ) . yellow ;
34- while ( ! options . url ) {
35- options . url = readlineSync . question ( urlQuestion , { defaultInput : defaultInput } ) ;
34+ while ( ! options . host ) {
35+ options . host = readlineSync . question ( urlQuestion , { defaultInput : defaultInput } ) ;
3636 urlQuestion = 'Invalid URL (try again): ' . red ;
3737 }
38- git . config . set ( 'gitlab.url' , options . url ) ;
38+ git . config . set ( 'gitlab.url' , options . host ) ;
3939 }
40-
40+
4141 if ( ! options . token ) {
42- var url = options . url + '/profile/personal_access_tokens' ;
42+ var url = options . host + '/profile/personal_access_tokens' ;
4343 console . log ( 'A personal access token is needed to use the GitLab API\n' + url . grey ) ;
4444 var tokenQuestion = 'Enter personal access token: ' . yellow ;
4545 while ( ! options . token ) {
@@ -50,8 +50,8 @@ var git = {
5050 }
5151
5252 options . rejectUnauthorized = false ;
53-
53+
5454 return options ;
5555 } ) ( ) ;
5656
57- module . exports = options
57+ module . exports = options
0 commit comments