Skip to content

Commit fb17bf1

Browse files
authored
Remove unused user.name option (#46)
1 parent 913ca67 commit fb17bf1

File tree

2 files changed

+0
-21
lines changed

2 files changed

+0
-21
lines changed

src/github-info.js

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff 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

9879
module.exports = {
99-
user: user,
10080
repo: repo,
10181
token: token
10282
};

src/gren.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,6 @@ function createChangelog(gren, body) {
755755
*/
756756
function 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
]);

0 commit comments

Comments
 (0)