pullermann 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/pullermann/pullermann.rb +10 -5
- metadata +2 -2
@@ -39,6 +39,7 @@ class Pullermann
|
|
39
39
|
@request_id = request['number']
|
40
40
|
# Jump to next iteration if source and/or target haven't change since last run.
|
41
41
|
next unless run_necessary?
|
42
|
+
set_status_on_github
|
42
43
|
# GitHub always creates a merge commit for its 'Merge Button'.
|
43
44
|
# Pullermann reuses that commit to run the code on it.
|
44
45
|
switch_branch_to_merged_state
|
@@ -218,17 +219,21 @@ class Pullermann
|
|
218
219
|
|
219
220
|
def set_status_on_github
|
220
221
|
@log.info 'Updating status on GitHub.'
|
221
|
-
|
222
|
+
case self.success
|
223
|
+
when true
|
222
224
|
state_symbol = :success
|
223
|
-
|
224
|
-
|
225
|
+
state_message = 'passing after merging'
|
226
|
+
when false
|
225
227
|
state_symbol = :failure
|
226
|
-
|
228
|
+
state_message = 'failing after merging'
|
229
|
+
else
|
230
|
+
state_symbol = :pending
|
231
|
+
state_message = 'still running for'
|
227
232
|
end
|
228
233
|
@github.post(
|
229
234
|
"repos/#{@project}/statuses/#{@pull_head_sha}", {
|
230
235
|
:state => state_symbol,
|
231
|
-
:description => "Tests are #{
|
236
|
+
:description => "Tests are #{state_message} this pull request."
|
232
237
|
}
|
233
238
|
)
|
234
239
|
end
|
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.2.
|
4
|
+
version: 1.2.2
|
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-09-
|
14
|
+
date: 2012-09-10 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: octokit
|