File tree Expand file tree Collapse file tree 2 files changed +0
-21
lines changed
Expand file tree Collapse file tree 2 files changed +0
-21
lines changed Original file line number Diff line number Diff line change @@ -31,25 +31,6 @@ function executeCommand(command, callback) {
3131 } ) ;
3232}
3333
34- /**
35- * Get user informations
36- *
37- * @since 0.5.0
38- * @public
39- *
40- * @param {Function } callback
41- *
42- * @return {Promise } The promise that resolves user informations ({ user: username})
43- */
44- function user ( callback ) {
45- return executeCommand ( 'git config user.name' , function ( user ) {
46- return {
47- user : user
48- } ;
49- } )
50- . then ( callback ) ;
51- }
52-
5334/**
5435* Get repo informations
5536*
@@ -96,7 +77,6 @@ function token(callback) {
9677}
9778
9879module . exports = {
99- user : user ,
10080 repo : repo ,
10181 token : token
10282} ;
Original file line number Diff line number Diff line change @@ -755,7 +755,6 @@ function createChangelog(gren, body) {
755755 */
756756function generateOptions ( options ) {
757757 return Promise . all ( [
758- options . user ? Promise . resolve ( options . user ) : githubInfo . user ( ) ,
759758 options . repo ? Promise . resolve ( options . repo ) : githubInfo . repo ( ) ,
760759 options . token ? Promise . resolve ( options . token ) : githubInfo . token ( )
761760 ] ) ;
You can’t perform that action at this time.
0 commit comments