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 +8 -8
- data/lib/tutter/action/sppuppet.rb +2 -2
- data/tutter-sppuppet.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YjMzYTk0ZTRlYjM1YjRiOTkwNDA3NzBlZDUwYmVhNDliOWVlOGZhYQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MmY1YmQ4OTcxZmQ3ZWJmYWMyZDAwZjllNTE5ODA3MDkzODU1Y2FhYw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YmY5NjBlZWNkYzVhNmExYWEyM2I0NzZhMGNkZGU4ZmVlZjBiZGVlN2I5ZGU2
|
10
|
+
OTAwN2ExYTZjNDc3N2VhMTk0ZGMzZjk4YjQ1ZGM3MTFkNWQ5YjlmODQyNGM3
|
11
|
+
YmI4ZGNkMzc4MzM2MDAyMmQxNmZlZDRjMzI1Njk4YWMyMTNkYzg=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
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
|
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 =
|
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!!')
|
data/tutter-sppuppet.gemspec
CHANGED