Skip to content

Commit ed356c8

Browse files
committed
add support for storing git tag
1 parent 6b3b9a1 commit ed356c8

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

lib/scm-data-generators/git.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ module.exports = CoreObject.extend({
1818
email: info.author_email.substring(0, info.author_email.length - 1),
1919
name: info.author_name,
2020
timestamp: new Date(info.date).toISOString(),
21-
branch: gitRepoInfo().branch
21+
branch: gitRepoInfo().branch,
22+
tag: gitRepoInfo().tag
2223
});
2324
});
2425
});

tests/unit/lib/scm-data-generators/git-nodetest.js

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ describe('the git scm data generator', function() {
3232
assert.equal(data.name, 'Alisdair McDiarmid');
3333
assert.isNotNull(data.timestamp);
3434
assert.equal(data.branch, 'master');
35+
assert.equal(data.tag, '2.3.4');
3536
});
3637
});
3738
});

0 commit comments

Comments
 (0)