tutter-sppuppet 0.0.7 → 0.0.8

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
- NTYyMWE5NWE0NGQyYzQ3ZTM4MTFkMDg5YTZhZGE2YjdhMjdjMDI1Mg==
4
+ YjMzYTk0ZTRlYjM1YjRiOTkwNDA3NzBlZDUwYmVhNDliOWVlOGZhYQ==
5
5
  data.tar.gz: !binary |-
6
- NTk1NTVlYzA4NWRhNTUwZGUyZGVkMWZhNTAxOWY4YzQ0YjgwNjlhZA==
6
+ MmY1YmQ4OTcxZmQ3ZWJmYWMyZDAwZjllNTE5ODA3MDkzODU1Y2FhYw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NDlhN2IzYjI5MzIwODc3NDQ2N2FiMzcxNGRmOWExOGQ1MDU2MWVhOTNiYzYx
10
- OWQ4NWFlMjhkNjQyMDRjZDBjYzcyMjA4YTQ1MmQyZTM1NWQyMmM3MWNjYzZk
11
- ODQxY2I2NDE4MWNiNTk2ZGIzMzBiNDA0Zjk0N2E4MmJjZWE3MTU=
9
+ YmY5NjBlZWNkYzVhNmExYWEyM2I0NzZhMGNkZGU4ZmVlZjBiZGVlN2I5ZGU2
10
+ OTAwN2ExYTZjNDc3N2VhMTk0ZGMzZjk4YjQ1ZGM3MTFkNWQ5YjlmODQyNGM3
11
+ YmI4ZGNkMzc4MzM2MDAyMmQxNmZlZDRjMzI1Njk4YWMyMTNkYzg=
12
12
  data.tar.gz: !binary |-
13
- MDhhYzNkZjY1NDA4N2Q3N2RmNGM4NGI0ZGFkZTBkZmQxN2FmZGM5MzU5ODQ5
14
- OGYwZmZkOTY1ODEyNzdhNTEwM2JkNjk3YWRmZWE0MDU2M2Q1NDk2MGY1YzRk
15
- YTQwNjI2ZjQ4ZWJiNTk4MTQyYmM0MTI2OWJhNGI5ZmE1MTIyNDg=
13
+ ODI4MzdiMjYwNzEyNWVjMDkzOWZhZmJlZDdmMjJjM2YyZTRlNzNhYWViNDkx
14
+ ZjFiYmU3ZjAwNWE3NDY4YmQ2MmY0MzlmOTQ5MmVlZWMwNDhiYTAxZGYwNmFh
15
+ NzI2NDllNDQwYjcxMmNmZWI0NDQ1NjlmYzRiZjI0YWM0ZjMzZjM=
@@ -17,7 +17,7 @@ class Sppuppet
17
17
  # If a new pull request is opened, comment with instructions
18
18
  if @data['action'] == 'opened' && @settings['post_instructions']
19
19
  issue = @data['number']
20
- comment = @settings['instructions'] || "To merge at least #{@settings['plus_ones_required']} person other than the submitter needs to write a comment with saying _+1_ or _:+1:_. Then write _!merge_ to trigger the merging."
20
+ comment = @settings['instructions'] || "To merge at least #{@settings['plus_ones_required']} person other than the submitter needs to write a comment with saying _+1_ or :+1:. Then write _!merge_ or :shipit: to trigger the merging."
21
21
  begin
22
22
  @client.add_comment(@project, issue, comment)
23
23
  return 200, "Commented!"
@@ -78,7 +78,7 @@ class Sppuppet
78
78
  end
79
79
  end
80
80
 
81
- merge = true if comments.last.body == '!merge'
81
+ merge = comments.last.body == '!merge' || comments.last.body == ':shipit:'
82
82
 
83
83
  if plus_one.count >= @settings['plus_ones_required'] and merge
84
84
  @client.merge_pull_request(@project, pull_request_id, 'SHIPPING!!')
@@ -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.7'
4
+ s.version = '0.0.8'
5
5
  s.author = 'Johan Haals'
6
6
  s.email = ['johan.haals@gmail.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.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Johan Haals