pullermann 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/pullermann/pullermann.rb +1 -2
- metadata +1 -1
@@ -123,6 +123,7 @@ class Pullermann
|
|
123
123
|
comments = comments.select{ |c| [username, username_fail].include?(c.user.login) }.reverse
|
124
124
|
# Initialize shas to ensure it will live on after the 'each' block.
|
125
125
|
shas = nil
|
126
|
+
@comment = nil
|
126
127
|
comments.each do |comment|
|
127
128
|
shas = /master sha# ([\w]+) ; pull sha# ([\w]+)/.match(comment.body)
|
128
129
|
if shas && shas[1] && shas[2]
|
@@ -208,8 +209,6 @@ class Pullermann
|
|
208
209
|
@log.info "Adding new #{notion(@test_success)} comment."
|
209
210
|
call_github(@test_success).add_comment(@project, @request_id, message)
|
210
211
|
end
|
211
|
-
# Once we're done, reset @comment to ensure it's not carried over to the next iteration.
|
212
|
-
@comment = nil
|
213
212
|
end
|
214
213
|
|
215
214
|
def notion(success)
|