git-restart 0.0.13.dev → 0.0.14.pre.dev
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/git-restart/runner.rb +6 -4
- data/lib/git-restart/task.rb +0 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6eb1eb18f538b107ff746a74bd5e915d086d7a42
|
4
|
+
data.tar.gz: 7f027170a97419f103005c983818a53f533df720
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 66c6d72431590ae182bb58498d826a4601fbb9e8f1af8f2fb65fc00e5517b2bac2ce814943f2a64b29351de683fea521ab036bdfaa4b1bbe3fe0c504a68f3574
|
7
|
+
data.tar.gz: fa56dd81445f2858f4d547286332c7132ec461e8e44a67f60791720b8d9f44c66eb6b4670ff0e1eedfc2afaee22d0b0e67c035ff6206c1df26c0711f1a3bba68
|
data/lib/git-restart/runner.rb
CHANGED
@@ -20,7 +20,7 @@ module GitRestart
|
|
20
20
|
attr_accessor :octokit
|
21
21
|
|
22
22
|
def current_commit()
|
23
|
-
@git.object("HEAD
|
23
|
+
@git.object("HEAD").sha;
|
24
24
|
end
|
25
25
|
def current_branch()
|
26
26
|
@git.current_branch();
|
@@ -78,10 +78,12 @@ module GitRestart
|
|
78
78
|
end
|
79
79
|
|
80
80
|
def update_status(name, newStatus, message = nil)
|
81
|
+
puts "Task #{@name} assumed a new status: #{newStatus}#{message ? " MSG:#{message}" : ""}"
|
82
|
+
|
81
83
|
return unless @octokit;
|
82
84
|
|
83
85
|
begin
|
84
|
-
@octokit.create_status(@repo, current_commit, newStatus, {
|
86
|
+
@octokit.create_status(@repo, current_commit(), newStatus, {
|
85
87
|
context: "#{@name}/#{name}".gsub(" ", "_"),
|
86
88
|
description: message,
|
87
89
|
})
|
@@ -147,7 +149,7 @@ module GitRestart
|
|
147
149
|
def _start_next_tasks()
|
148
150
|
_generate_next_tasks();
|
149
151
|
|
150
|
-
puts "\
|
152
|
+
puts "\nStarting next tasks!"
|
151
153
|
@next_tasks.each do |name, t|
|
152
154
|
next unless t.active;
|
153
155
|
next unless t.triggered?
|
@@ -158,7 +160,7 @@ module GitRestart
|
|
158
160
|
end
|
159
161
|
|
160
162
|
def _switch_to(branch, commit = nil)
|
161
|
-
puts "\nSwitching to branch: #{branch}#{commit ? ",commit: #{commit}" : ""}"
|
163
|
+
puts "\n\nSwitching to branch: #{branch}#{commit ? ",commit: #{commit}" : ""}"
|
162
164
|
|
163
165
|
begin
|
164
166
|
@git.fetch();
|
data/lib/git-restart/task.rb
CHANGED