Skip to content
This repository was archived by the owner on Feb 19, 2020. It is now read-only.

Commit 2614e05

Browse files
authored
Add Heroku CI variable for git commit SHA
Needs a similar approach to other CI services, as Heroku CI doesn't initialise a git repository on it's CI platform. https://devcenter.heroku.com/articles/heroku-ci#environment-variables-env-key
1 parent 20d07b8 commit 2614e05

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/codacy/git.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ def self.commit_id
88
ENV['CIRCLE_SHA1'] ||
99
ENV['CI_COMMIT_ID'] ||
1010
ENV['WERCKER_GIT_COMMIT'] ||
11+
ENV['HEROKU_TEST_RUN_COMMIT_VERSION'] ||
1112
git_commit
1213

1314
commit

0 commit comments

Comments
 (0)