From 1815e58f98ada2a5822f2222ac7fad16a4d5f264 Mon Sep 17 00:00:00 2001 From: Franco Meloni Date: Wed, 31 Jul 2019 18:01:18 +0100 Subject: [PATCH] Take commit hash from Travis --- source/ci_source/providers/Travis.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/ci_source/providers/Travis.ts b/source/ci_source/providers/Travis.ts index 0efa32dbb..4dd8a29c6 100644 --- a/source/ci_source/providers/Travis.ts +++ b/source/ci_source/providers/Travis.ts @@ -83,6 +83,10 @@ export class Travis implements CISource { // TODO: This only supports travis.org return `https://travis-ci.org/${this.env.TRAVIS_REPO_SLUG}/jobs/${this.env.TRAVIS_JOB_ID}` } + + get commitHash(): string { + return this.env.TRAVIS_COMMIT + } } // See end of https://travis-ci.org/danger/danger-js/jobs/317790046