tutter-sppuppet 1.2.9 → 1.2.10

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
- MGM1ZGU5ODBlYWU5MjliZjQ3ZDYzMzNjOTY3OTIyM2Q3ZTM5Njg2OQ==
4
+ Y2JlZjE5YzE0OWI0MzEwOWMyNTRjMzFlZDJiNzg5Yjg5ZTVmZTQ2Zg==
5
5
  data.tar.gz: !binary |-
6
- MGMxZTJlYjEwOGY3NThhNjIyMGU2ZjQ3MDM2NDk2MmM4NDQwODQ3Mw==
6
+ MzM2NmU4MmQ0NTc3ODAzNDQzMGQyN2NkYzZhNDc3ZDFlNDlmNjVmNw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YjBjNjRjNGNiMjEzZDYwODBhYTI2NGFhNDYzZTU3MTZjNjg0ZTA3M2EwMjlj
10
- YjMwYWNjNzcwMWYwMGRlZWM0NGU3NDUyNmJmMTA2ZjA4ZjZiNDdlMmRiZTlj
11
- NjQ2ZWFhNTNhYTRkZWUxNzhmMTA2YjBhYWU1MDVhY2EzZDNjNmE=
9
+ NTI1MWI5MGExMjg0YmRjZjZjYzgxZTYzZmEzODQzOTAwMzVmYmY2ODczOWY3
10
+ YmRhY2NiYWE0OWRkYTMzM2Q2YjFmM2EyOTVkOTkzYWRlMTE5NGVmZjk5NWNh
11
+ MTMwOTJhYTdkZmM4YmJlYjVmNWMzZTJlMGQzNzE2ZjA5MzkwMTg=
12
12
  data.tar.gz: !binary |-
13
- YzNjZDM2MjA0YmNhZDBlNmFlZTYyYjdlZmZkMzgwYWQ3YmIwMzk2ZWQ1NTli
14
- ZjdjNmY1NmQwOTA5NTJjNDcwNGE4YjVkNzBkOWVlOTAxZTMzNjkyMjQ4ZGE1
15
- YTEwYTk1ZDZkMzFhZjkyYWYzZDE4MDMzYzM1ZjZhNDdmZDMxNTI=
13
+ OTM0ZWI0OTY3OGUyMWI5Y2IxNDY3YzkwZDU4ZjVmN2MxMTk5MDIwM2U1Yjdl
14
+ NDg0YmU5MWY4M2RkODk4MjUyZmM3ZDM2NmYyZGI5OTAzNWZmZmM4ODc4Mzkx
15
+ NGEzN2ZlMWRlMzg5ZWViYWEwZjQzNDk1ZTdjNzRjZTliNDA5ZmY=
@@ -15,6 +15,7 @@ class Sppuppet
15
15
  @settings['plus_ones_required'] ||= 1
16
16
  @settings['owner_plus_ones_required'] ||= 0
17
17
  @settings['owners'] ||= []
18
+ @delete_branch = @settings['chop_on_merge'] ||= false
18
19
  @client = client
19
20
  @project = project
20
21
  @data = data
@@ -57,7 +58,12 @@ class Sppuppet
57
58
  else
58
59
  owners_required_text = ""
59
60
  end
60
- comment = @settings['instructions'] || "To merge at least #{@settings['plus_ones_required']} person other than the submitter #{owners_required_text}needs to write a comment containing only _+1_ or :+1:. Then write _!merge_ or :shipit: to trigger merging."
61
+ instructions_text = "To merge at least #{@settings['plus_ones_required']} person other than " +
62
+ "the submitter #{owners_required_text}needs to write a comment containing only _+1_ or :+1:.\n" +
63
+ "Then write _!merge_ or :shipit: to trigger merging.\n" +
64
+ "Also write :scissors: and tutter will clean up by deleting your branch after merge."
65
+
66
+ comment = @settings['instructions'] || instructions_text
61
67
  return post_comment(issue, comment)
62
68
  else
63
69
  return 200, 'Not posting instructions'
@@ -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 = '1.2.9'
4
+ s.version = '1.2.10'
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: 1.2.9
4
+ version: 1.2.10
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: 2016-04-28 00:00:00.000000000 Z
13
+ date: 2016-04-29 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: tutter