pullermann 1.5.0 → 1.5.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/pullermann/pullermann.rb +6 -4
- metadata +2 -2
@@ -14,7 +14,8 @@ class Pullermann
|
|
14
14
|
:status_failure,
|
15
15
|
:status_success,
|
16
16
|
:comment_failure,
|
17
|
-
:comment_success
|
17
|
+
:comment_success,
|
18
|
+
:reuse_comments
|
18
19
|
|
19
20
|
# Allow configuration blocks being passed to Pullermann.
|
20
21
|
# See the README.md for examples on how to call this method.
|
@@ -96,8 +97,9 @@ class Pullermann
|
|
96
97
|
self.password ||= git_config['github.password']
|
97
98
|
self.username_fail ||= self.username
|
98
99
|
self.password_fail ||= self.password
|
99
|
-
self.rerun_on_source_change
|
100
|
-
self.rerun_on_target_change
|
100
|
+
self.rerun_on_source_change = true if self.rerun_on_source_change.nil?
|
101
|
+
self.rerun_on_target_change = true if self.rerun_on_target_change.nil?
|
102
|
+
self.reuse_comments = true if self.reuse_comments.nil?
|
101
103
|
# Allow for custom messages.
|
102
104
|
self.status_pending ||= 'Pullermann is still running.'
|
103
105
|
self.status_failure ||= 'Pullermann reports failure.'
|
@@ -235,7 +237,7 @@ class Pullermann
|
|
235
237
|
self.comment_failure + "\n( Failure: "
|
236
238
|
end
|
237
239
|
message += "Merged #{@request.head_sha} into #{@request.target_head_sha} )"
|
238
|
-
if old_comment_success? == self.success
|
240
|
+
if self.reuse_comments && old_comment_success? == self.success
|
239
241
|
# Replace existing comment's body with the correct connection.
|
240
242
|
@log.info "Updating existing #{notion(self.success)} comment."
|
241
243
|
call_github(self.success).update_comment(@project, @request.comment.id, message)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pullermann
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2012-
|
14
|
+
date: 2012-11-14 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: octokit
|