Skip to content

Commit

Permalink
Merge pull request #8 from mcfly-io/feat-token-auth
Browse files Browse the repository at this point in the history
  • Loading branch information
jskrzypek authored Sep 19, 2016
2 parents 1a660c4 + 1323578 commit 1d27c02
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions bin/mcfly-semantic-release.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -72,17 +72,14 @@ gitHelper.getCurrentBranch()
}
}, {
type: 'password',
message: 'Please enter your GitHub password',
name: 'password',
validate: function(input) {
return input !== '';
}
message: 'Please enter your GitHub password (leave blank to use $GITHUB_TOKEN)',
name: 'password'
}]);
})
.then((answers) => {
console.log(chalk.yellow('Github authentication...'));
msg.username = answers.username || msg.username;
msg.password = answers.password;
msg.password = answers.password || null;
return githubHelper.getClient(msg.username, msg.password);
})
.then((github) => {
Expand Down

0 comments on commit 1d27c02

Please sign in to comment.