tutter-sppuppet 0.0.14 → 0.0.15

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- M2NmNzIyYzMwZjM1YjM5N2MzNTA5ZWVjYjUyYTJkNmY4YzU0OWQzNA==
4
+ N2M0MDllNGMwY2U3NjNiMjk2ZWMwMWVmNWFmOWVmYmM1Y2I4OTExZQ==
5
5
  data.tar.gz: !binary |-
6
- NWQ4OThmMjY4NTk0MWRhMGY1MGZkMTg1OGFmMTQ4NzljN2M3ZWYwOA==
6
+ OTYwMTE0ODdjNjFkYjczYjhiNjhlNzMzOTg2YTkwMGUzZTQyMGZkNQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- Mjk1ZGZkMWQ5Y2U0YWZhMTZhNGM1OGI3YTgxODcxYjkwNjBhZDIyM2MzNzdi
10
- YjZjNDlmZWFiODFjMDVjMGZkOTAxNGFiMDQyN2U1OTBkYTFlOWVkMmVjM2U0
11
- ZDEyOTQ2MWU4NjdmNzBmNzRlMWVkODE1ZWIxNGFmZGMyZDE4N2Q=
9
+ ODM5YWJiMGE4ZTk2NWYwNDM5MTc5N2U5ZWI4YmZjZGNjMDk4NGI5NzdmMGQ2
10
+ MzYwNTNkYTk0ZmQxMDVmNmU4YTVjMjRlYWM4ZTUwZWVjNzFjOGU2MjQzZjY1
11
+ NzYxY2I0NjU5YzBhZTcyZDgzNTgxM2Q4ZmJhOGU4NTM2ZTc2MGQ=
12
12
  data.tar.gz: !binary |-
13
- Yjc2MjcwNDM1ZDNkYWMwMmFmNzZlOWMwNjdiMjYwNjE3YTE4NDAxN2UzODJj
14
- MWQxMzA3ZDYyMzk2NWE3MjcxMTM4NGRiZTU2ZjRlYmFkOWNhMzE4ODhjZDZh
15
- MTE4M2M5Mzg4NmRhODc4ODYxYzhlODA5OTJlYTg1MTMxNDNiYTA=
13
+ NjlhYzZiYzBhMmQ4MTgzYTgyOWY1Mjg0Nzg3NzkzYTdhZDNjYWJlNjY3ZmMz
14
+ OTk0YmExZTAyNjQ0YjE2NmRmMjlkY2U4N2M5OTc2MDYwYmUxZGQ5YTU3YjFm
15
+ ZjAyNmZkNjI5MmQwOTE2Nzk3ZDAwMjIzZDdjMTQ1NjY0ZTZmYTE=
@@ -85,7 +85,7 @@ class Sppuppet
85
85
  merge = (comments.last.body == '!merge' || comments.last.body.start_with?(':shipit:'))
86
86
 
87
87
  if plus_one.count >= @settings['plus_ones_required'] && merge
88
- json = { url: pr.html_url,
88
+ json = { url: pr.url,
89
89
  title: pr.title,
90
90
  author: pr.user.login,
91
91
  description: pr.body,
@@ -94,7 +94,17 @@ class Sppuppet
94
94
  tests: @client.combined_status(@project, pr.head.sha).statuses.map { |s| {state: s.state, url: s.target_url, description: s.description } },
95
95
  reviewers: plus_one.keys,
96
96
  deployer: comments.last.user.login }
97
- json[:merge_sha] = @client.merge_pull_request(@project, pull_request_id, 'SHIPPING!!').sha
97
+ # TODO: Word wrap description
98
+ merge_msg <<MERGE_MSG
99
+ Title: #{pr.title}
100
+ Description: #{pr.body}
101
+ Author: #{pr.author}
102
+ Reviewers: #{plus_one.keys.join ', '}
103
+ Deployer: #{comments.last.user.login}
104
+ URL: #{pr.url}
105
+ MERGE_MSG
106
+ merge = @client.merge_pull_request(@project, pull_request_id, merge_msg)
107
+ json[:merge_sha] = merge.sha
98
108
  report_directory = "#{@settings['reports_dir']}/#{merge_commit.sha[0..1]}/#{merge_commit.sha[2..3]}"
99
109
  report_path = "#{report_directory}/#{merge_commit.sha}.json"
100
110
  if @settings['generate_reports']
@@ -1,7 +1,7 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  Gem::Specification.new do |s|
3
3
  s.name = 'tutter-sppuppet'
4
- s.version = '0.0.14'
4
+ s.version = '0.0.15'
5
5
  s.author = ['Johan Haals', 'Erik Dalén', 'Alexey Lapitsky']
6
6
  s.email = ['johan.haals@gmail.com', 'dalen@spotify.com', 'alexey@spotify.com']
7
7
  s.homepage = 'https://github.com/jhaals/tutter-sppuppet'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tutter-sppuppet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.14
4
+ version: 0.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Johan Haals
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-03-17 00:00:00.000000000 Z
13
+ date: 2015-03-18 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: tutter