From 9aecaf32dc224c9dcd4d32d6793f734bfe7303ec Mon Sep 17 00:00:00 2001 From: IGFCoimbra <36641997+IGFCoimbra@users.noreply.github.com> Date: Fri, 29 Mar 2019 17:46:39 +0000 Subject: [PATCH 1/2] Add support to semaphoreci --- src/main/scala/com/codacy/rules/ConfigurationRules.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/scala/com/codacy/rules/ConfigurationRules.scala b/src/main/scala/com/codacy/rules/ConfigurationRules.scala index 22f2abae..b68863d8 100644 --- a/src/main/scala/com/codacy/rules/ConfigurationRules.scala +++ b/src/main/scala/com/codacy/rules/ConfigurationRules.scala @@ -109,7 +109,8 @@ class ConfigurationRules(cmdConfig: CommandConfiguration) extends StrictLogging getNonEmptyEnv("WERCKER_GIT_COMMIT") orElse getNonEmptyEnv("CODEBUILD_RESOLVED_SOURCE_VERSION") orElse getNonEmptyEnv("CI_COMMIT_SHA") orElse - getNonEmptyEnv("HEROKU_TEST_RUN_COMMIT_VERSION") + getNonEmptyEnv("HEROKU_TEST_RUN_COMMIT_VERSION") orElse + getNonEmptyEnv("REVISION") .filter(_.trim.nonEmpty) } From 1b7669e5fbb6ee9122a725d2c7bf56d2cf1e377d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lu=C3=ADs=20Ferreira?= Date: Mon, 26 Aug 2019 12:16:42 +0100 Subject: [PATCH 2/2] readme: add semaphoreci variable to the list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Luís Ferreira --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 2c5fd5fb..1251dc03 100644 --- a/README.md +++ b/README.md @@ -79,6 +79,7 @@ Codacy automatically detects the CommitUUID from several sources: * CI_COMMIT_ID * WERCKER_GIT_COMMIT * CODEBUILD_RESOLVED_SOURCE_VERSION +* REVISION **Git directory**