summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2017-07-14 16:50:31 -0600
committerDan Allen <dan.j.allen@gmail.com>2017-07-14 16:50:31 -0600
commitf07edd8b3575bb9e264042e1111052c02cfe69e4 (patch)
tree5c5c1743af7965d4e41922c8a9c3766e03861d77
parent618bce8e10c070ab5f49651d43ffbbd8c800c8f3 (diff)
also include the commit hash in the message subject for triggered builds
-rw-r--r--Rakefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index 6e799ba4..8a3770a8 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 = %(\\n\\nhttps://github.com/asciidoctor/asciidoctor/commit/#{commit_hash})
+ commit_memo = %( (#{commit_hash})\\n\\nhttps://github.com/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