Skip to content

Commit

Permalink
add support for storing git tag
Browse files Browse the repository at this point in the history
  • Loading branch information
ghedamat committed Mar 29, 2016
1 parent 6b3b9a1 commit ed356c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/scm-data-generators/git.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ module.exports = CoreObject.extend({
email: info.author_email.substring(0, info.author_email.length - 1),
name: info.author_name,
timestamp: new Date(info.date).toISOString(),
branch: gitRepoInfo().branch
branch: gitRepoInfo().branch,
tag: gitRepoInfo().tag
});
});
});
Expand Down
1 change: 1 addition & 0 deletions tests/unit/lib/scm-data-generators/git-nodetest.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ describe('the git scm data generator', function() {
assert.equal(data.name, 'Alisdair McDiarmid');
assert.isNotNull(data.timestamp);
assert.equal(data.branch, 'master');
assert.equal(data.tag, '2.3.4');
});
});
});
Expand Down

0 comments on commit ed356c8

Please sign in to comment.