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 +8 -8
- data/lib/tutter/action/sppuppet.rb +6 -1
- data/tutter-sppuppet.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NTYyMWE5NWE0NGQyYzQ3ZTM4MTFkMDg5YTZhZGE2YjdhMjdjMDI1Mg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NTk1NTVlYzA4NWRhNTUwZGUyZGVkMWZhNTAxOWY4YzQ0YjgwNjlhZA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NDlhN2IzYjI5MzIwODc3NDQ2N2FiMzcxNGRmOWExOGQ1MDU2MWVhOTNiYzYx
|
10
|
+
OWQ4NWFlMjhkNjQyMDRjZDBjYzcyMjA4YTQ1MmQyZTM1NWQyMmM3MWNjYzZk
|
11
|
+
ODQxY2I2NDE4MWNiNTk2ZGIzMzBiNDA0Zjk0N2E4MmJjZWE3MTU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
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['
|
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 = {}
|
data/tutter-sppuppet.gemspec
CHANGED
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.
|
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-
|
11
|
+
date: 2015-02-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tutter
|