Skip to content

Commit

Permalink
Take commit hash from Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
f-meloni committed Jul 31, 2019
1 parent 81c7a86 commit 1815e58
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/ci_source/providers/Travis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1815e58

Please sign in to comment.