From 6b22375526b981f1afa445099ccdac420405fe35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Cort=C3=AAs?= Date: Thu, 20 Sep 2018 19:54:25 +0100 Subject: [PATCH] Add GitLab CI commit env variable --- lib/codacy/git.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/codacy/git.rb b/lib/codacy/git.rb index 407930a..3471e07 100644 --- a/lib/codacy/git.rb +++ b/lib/codacy/git.rb @@ -9,6 +9,7 @@ def self.commit_id ENV['CI_COMMIT_ID'] || ENV['WERCKER_GIT_COMMIT'] || ENV['HEROKU_TEST_RUN_COMMIT_VERSION'] || + ENV['CI_COMMIT_SHA'] || git_commit commit