lib/tutter/action/sppuppet.rb in tutter-sppuppet-0.0.9 vs lib/tutter/action/sppuppet.rb in tutter-sppuppet-0.0.10
- old
+ new
@@ -87,9 +87,11 @@
if plus_one.count >= @settings['plus_ones_required'] && merge
merge_commit = @client.merge_pull_request(@project, pull_request_id, 'SHIPPING!!')
json = { url: pr.html_url,
title: pr.title,
author: pr.user.login,
+ description: pr.body,
+ commits: client.pull_request_commits(@project, pr.number).map { |c| { author: c.author.login, message: c.commit.message, sha: c.commit.tree.sha } },
merge_sha: merge_commit.sha,
head_sha: pr.head.sha,
tests: @client.combined_status(@project, pr.head.sha).statuses.map { |s| {state: s.state, url: s.target_url, description: s.description } },
reviewers: plus_one.keys,
deployer: comments.last.user.login }