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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 49210600b8dc89774b333e60d805e4e3138f1c9b
4
- data.tar.gz: 28630227f416a2b4ef992c2aef562d525a2fde5f
3
+ metadata.gz: 6eb1eb18f538b107ff746a74bd5e915d086d7a42
4
+ data.tar.gz: 7f027170a97419f103005c983818a53f533df720
5
5
  SHA512:
6
- metadata.gz: eb1c3bf5d4565b6d17a7ad247d1284e55ba68fcee047823deabd759aaaebd05eecf1e9eb221f2371a62c41ee620f35b37373e7af8c160d9ed5c42e3d43df889e
7
- data.tar.gz: 18ed23e3a757987a65ae17bb4efe7d0cd0883ac99517856e62e7106bd80cc6fd59b999d26fdebc1cbcc06f52147684ef14e5b2050414cc42f16bfb3245669b67
6
+ metadata.gz: 66c6d72431590ae182bb58498d826a4601fbb9e8f1af8f2fb65fc00e5517b2bac2ce814943f2a64b29351de683fea521ab036bdfaa4b1bbe3fe0c504a68f3574
7
+ data.tar.gz: fa56dd81445f2858f4d547286332c7132ec461e8e44a67f60791720b8d9f44c66eb6b4670ff0e1eedfc2afaee22d0b0e67c035ff6206c1df26c0711f1a3bba68
@@ -20,7 +20,7 @@ module GitRestart
20
20
  attr_accessor :octokit
21
21
 
22
22
  def current_commit()
23
- @git.object("HEAD^").sha;
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 "\n\nStarting next tasks!"
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();
@@ -104,7 +104,6 @@ module GitRestart
104
104
  return unless @report_status
105
105
 
106
106
  runner().update_status(@name, status, message);
107
- puts "Task #{@name} assumed a new status: #{status}#{message ? " MSG:#{message}" : ""}"
108
107
  end
109
108
  private :_report_status
110
109
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git-restart
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13.dev
4
+ version: 0.0.14.pre.dev
5
5
  platform: ruby
6
6
  authors:
7
7
  - Xasin