summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2017-07-14 16:42:18 -0600
committerDan Allen <dan.j.allen@gmail.com>2017-07-14 16:45:47 -0600
commit618bce8e10c070ab5f49651d43ffbbd8c800c8f3 (patch)
treed5e3bf8bfdce47e28e635c2d4c538d6fd6e5c77d /Rakefile
parentd96be2f6388ceae95203be58eb85228556fa9169 (diff)
try the commit URL in the triggered build message
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Rakefile b/Rakefile
index b4b90d35..6e799ba4 100644
--- a/Rakefile
+++ b/Rakefile
@@ -147,9 +147,9 @@ desc 'Trigger builds for all dependent projects on Travis CI'
'Authorization' => %(token #{token})
}
if (commit_hash = ENV['TRAVIS_COMMIT'])
- commit_memo = %( (#{commit_hash}))
+ commit_memo = %(\\n\\nhttps://github.com/asciidoctor/asciidoctor/commit/#{commit_hash})
end
- payload = %({ "request": { "branch": "master", "message": "Build triggered by change to Asciidoctor#{commit_memo}" } })
+ payload = %({ "request": { "branch": "master", "message": "Build triggered by Asciidoctor#{commit_memo}" } })
(http = Net::HTTP.new 'api.travis-ci.org', 443).use_ssl = true
request = Net::HTTP::Post.new %(/repo/#{org}%2F#{name}/requests), header
request.body = payload