tutter-sppuppet 0.0.6 → 0.0.7

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
- MGM2NDBhOGZmNWI4NTgzZTk5ZDY2MDY2N2UxYTM3Njc1NDA2NTFkYQ==
4
+ NTYyMWE5NWE0NGQyYzQ3ZTM4MTFkMDg5YTZhZGE2YjdhMjdjMDI1Mg==
5
5
  data.tar.gz: !binary |-
6
- NjBjMjBmNWE5ZmJjMDJjZTRlYTE3NjVhMDBlYzc3NTZhOTI2MDhlMw==
6
+ NTk1NTVlYzA4NWRhNTUwZGUyZGVkMWZhNTAxOWY4YzQ0YjgwNjlhZA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NzFhZmFmZTYxMmYwMmZiNjQ1MDJkOGUzZjc5MTUyNzdiNDBiZmJlNzE4MTE0
10
- MTExMzVlMjQyYjg1OThmMzFjOTY5NTJkZWM0MGUzYWVjN2EzOGQ3YzUyMjRm
11
- MDgxYjk1ZDNiMGQwNWQ0MjE5YzUyMDYzZjEzYjcxMjlkMDBlNmY=
9
+ NDlhN2IzYjI5MzIwODc3NDQ2N2FiMzcxNGRmOWExOGQ1MDU2MWVhOTNiYzYx
10
+ OWQ4NWFlMjhkNjQyMDRjZDBjYzcyMjA4YTQ1MmQyZTM1NWQyMmM3MWNjYzZk
11
+ ODQxY2I2NDE4MWNiNTk2ZGIzMzBiNDA0Zjk0N2E4MmJjZWE3MTU=
12
12
  data.tar.gz: !binary |-
13
- MzllYzE0MDU5MGFlNjI2NjIxZmJlNTY3ZTE2YTRmNDdlYTAzZDI1MjFkZDQz
14
- OTczYTc5Y2ZiNWVkMjgxYzk1ZTE3N2YxODMxZGY5MjExOTQ5NzhmYWI4Yjcy
15
- ZmY2YmI4NTI1MmUxN2M1YmJlZTM1YjY3MmEzMTIwNGJhMmYxMGI=
13
+ MDhhYzNkZjY1NDA4N2Q3N2RmNGM4NGI0ZGFkZTBkZmQxN2FmZGM5MzU5ODQ5
14
+ OGYwZmZkOTY1ODEyNzdhNTEwM2JkNjk3YWRmZWE0MDU2M2Q1NDk2MGY1YzRk
15
+ YTQwNjI2ZjQ4ZWJiNTk4MTQyYmM0MTI2OWJhNGI5ZmE1MTIyNDg=
@@ -16,7 +16,7 @@ class Sppuppet
16
16
  def run
17
17
  # If a new pull request is opened, comment with instructions
18
18
  if @data['action'] == 'opened' && @settings['post_instructions']
19
- issue = @data['issue']['number']
19
+ issue = @data['number']
20
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."
21
21
  begin
22
22
  @client.add_comment(@project, issue, comment)
@@ -30,6 +30,11 @@ class Sppuppet
30
30
  end
31
31
  end
32
32
 
33
+ if @data['action'] != 'created'
34
+ # Not a new comment, ignore
35
+ return 200, 'not a new comment, skipping'
36
+ end
37
+
33
38
  pull_request_id = @data['issue']['number']
34
39
  pr = @client.pull_request @project, pull_request_id
35
40
  plus_one = {}
@@ -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.6'
4
+ s.version = '0.0.7'
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,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tutter-sppuppet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Johan Haals
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-30 00:00:00.000000000 Z
11
+ date: 2015-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tutter