Skip to content

Commit e12bef4

Browse files
committed
uses environment variables from Circle CI to describe the commit
1 parent f236c41 commit e12bef4

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

index.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,13 @@ exports.run = function (options) {
2727
if (process.env.TRAVIS) {
2828
options.message += ' -- ' + process.env.TRAVIS_COMMIT_MESSAGE + ' \n\n' +
2929
'Triggered by commit: https://github.com/' + process.env.TRAVIS_REPO_SLUG + '/commit/' + process.env.TRAVIS_COMMIT + '\n' +
30-
'Travis build: https://travis-ci.org/' + process.env.TRAVIS_REPO_SLUG + '/builds/' + process.env.TRAVIS_BUILD_ID;
30+
'Travis CI build: https://travis-ci.org/' + process.env.TRAVIS_REPO_SLUG + '/builds/' + process.env.TRAVIS_BUILD_ID;
31+
}
32+
33+
if (process.env.CIRCLECI) {
34+
options.message += ' -- \n\n' +
35+
'Triggered by commit: https://github.com/' + process.env.CIRCLE_PROJECT_USERNAME + '/' + CIRCLE_PROJECT_REPONAME + '/commit/' + process.env.CIRCLE_SHA1 + '\n' +
36+
'CircleCI build: ' + CIRCLE_BUILD_URL;
3137
}
3238

3339
// for your convenience - here you can hack credentials into the repository URL

0 commit comments

Comments
 (0)