brainiac-basecamp 0.0.21 → 0.0.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 25a59b3d406964ab51bf4c1d34e63f01cf87368afcf79a1ecd8ce95b304b9ec6
4
- data.tar.gz: d7e7f94f7b9b6e6a7c1d4480fcf46c6330a9d3928c4afd723c994703e149c70a
3
+ metadata.gz: cbdaed237c170e246708af6b6f249cc90897b58aa3551eeb563e2a154145b49f
4
+ data.tar.gz: ab6c55d1ef2f88e26194059cb453fda42c3660777ab34813d15b6e88fd5afaf5
5
5
  SHA512:
6
- metadata.gz: a9529e9564869624ac8712d157fbcafae3693018a6106c7f1ea99797fab5fed3e22d967b4c9f5fb4e8319c722d4d1afebb27732c152e9fca4c7b68626ef36ea6
7
- data.tar.gz: 6cf76c4f8a5b3eaef3f571983f1130a6a79de6a68a22d0a8b08d8fb3d6cb245133e76bd396dcfc80f20ee2be0271757a1e3337ef5797331cc6c984ede6629131
6
+ metadata.gz: 46f0a19b34106661205fc2cc0dc6b921511a04a7a3a2b6df2665c8d1034afc937029ac5b00b11fe3e7f42b52d8fe24bd48ef29705b15211ed76deb8e05bfde8d
7
+ data.tar.gz: a278fc0d456893561a8e320ee223510ef338296605a66e1871099514f711cf3989e2d000f3864371097105c3af6a0afd332ddf87a70910870f45a488cbb1f509
@@ -284,6 +284,21 @@ module Brainiac
284
284
  puts " Worktree: #{worktree_path}"
285
285
  puts ""
286
286
 
287
+ # Pull latest changes before deploying
288
+ puts "Pulling latest changes..."
289
+ pull_output, pull_status = Open3.capture2e("git", "pull", "--ff-only", chdir: worktree_path)
290
+ if pull_status.success?
291
+ if pull_output.include?("Already up to date")
292
+ puts "Already up to date."
293
+ else
294
+ puts pull_output.lines.first(5).join
295
+ end
296
+ else
297
+ puts "⚠️ Git pull failed (continuing anyway):"
298
+ puts pull_output.lines.first(3).join
299
+ end
300
+ puts ""
301
+
287
302
  # Run deploy
288
303
  success = run_deploy(worktree_path, deploy_env)
289
304
 
@@ -309,6 +324,12 @@ module Brainiac
309
324
  end
310
325
 
311
326
  save_epics(epics)
327
+
328
+ # Change into the worktree directory
329
+ puts ""
330
+ puts "Entering worktree..."
331
+ Dir.chdir(worktree_path)
332
+ exec ENV.fetch("SHELL", "/bin/bash")
312
333
  end
313
334
 
314
335
  def cmd_link(args)
@@ -3,7 +3,7 @@
3
3
  module Brainiac
4
4
  module Plugins
5
5
  module Basecamp
6
- VERSION = "0.0.21"
6
+ VERSION = "0.0.22"
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brainiac-basecamp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.21
4
+ version: 0.0.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Davis