summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2017-07-14 23:16:00 -0600
committerDan Allen <dan.j.allen@gmail.com>2017-07-14 23:16:00 -0600
commitbc70a57d3ad355f74d74b819f75536ecdcaf3dc1 (patch)
tree4ea8dacd9f9a8dcb6ba8a9bee1f7c7198d72098a
parentf07edd8b3575bb9e264042e1111052c02cfe69e4 (diff)
retrieve repo slug for commit message from env variable
-rw-r--r--Rakefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index 8a3770a8..a3dad8ea 100644
--- a/Rakefile
+++ b/Rakefile
@@ -147,7 +147,7 @@ desc 'Trigger builds for all dependent projects on Travis CI'
'Authorization' => %(token #{token})
}
if (commit_hash = ENV['TRAVIS_COMMIT'])
- commit_memo = %( (#{commit_hash})\\n\\nhttps://github.com/asciidoctor/asciidoctor/commit/#{commit_hash})
+ commit_memo = %( (#{commit_hash})\\n\\nhttps://github.com/#{ENV['TRAVIS_REPO_SLUG'] || 'asciidoctor/asciidoctor'}/commit/#{commit_hash})
end
payload = %({ "request": { "branch": "master", "message": "Build triggered by Asciidoctor#{commit_memo}" } })
(http = Net::HTTP.new 'api.travis-ci.org', 443).use_ssl = true