hiiro 0.1.225 → 0.1.226

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/h-pr +21 -22
  3. data/lib/hiiro/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8622f37a2f49e596a45a319829d7d8f020489123d950e5e8ed8dde8fac73f2c6
4
- data.tar.gz: 1e3fa41fac296a630a1929be540dea6aeb52409d7ec5788a40a7300e2d790c19
3
+ metadata.gz: d316fed29600643095f5e1c8303eb145cfdfd286819e4d6ec7ee906927433770
4
+ data.tar.gz: e6b0b5a18ca6932d69c5e220a094701712955a6aca2e1d1da5e279117b3cf499
5
5
  SHA512:
6
- metadata.gz: e23a370cc227ec5253b490d278f733c2de8c18c6d82a1435236f77a63268b2b5ba9077303bdbd598c0632bc407ae080ccdedcc7e9ba5787515faedeaadcdfb86
7
- data.tar.gz: dae40a4c0d04ce912d63591bd07420be7b351aeed493594189797d4874642ea185e1ef3dcda1805d57cec958918b4cee3881bf220be6afa82f697fa3e9a70d9b
6
+ metadata.gz: 368e379a9d3fa06c2001225b12fc54bea0767befabb0b72cc25928e1844ee8df35cfbef5d6281869a8d96019185dfe49dc5d8e55d70848dd14deec0ec81a7e19
7
+ data.tar.gz: 90022470e27d0ec9b3fe1d32bedda385f4a933f4a3e9d3a0e983b8777bc7be39d1894fc5c9bd861619959ab0cb164ea1956c3ee50b4b4116fee2002d8f888254
data/bin/h-pr CHANGED
@@ -636,30 +636,27 @@ Hiiro.run(*ARGV, plugins: [Pins]) do
636
636
  pr_info = nil
637
637
 
638
638
  case ref
639
- when nil
640
- # Select from my open PRs
641
- my_prs = pinned_manager.fetch_my_prs
642
- if my_prs.empty?
643
- puts "No open PRs found"
644
- next
645
- end
646
-
647
- lines = my_prs.each_with_object({}) do |pr, h|
648
- display = "##{pr['number']} [#{pr['headRefName']}] #{pr['title']}"
649
- h[display] = pr
650
- end
651
-
652
- pr_info = fuzzyfind_from_map(lines)
653
- unless pr_info
654
- puts "No PR selected"
655
- next
656
- end
657
- when '-'
658
- # Track current branch's PR
639
+ when nil, '-'
640
+ # Try current branch's PR first, fall back to fuzzy select
659
641
  pr_info = pinned_manager.fetch_current_branch_pr
642
+
660
643
  unless pr_info
661
- puts "No PR found for current branch"
662
- next
644
+ my_prs = pinned_manager.fetch_my_prs
645
+ if my_prs.empty?
646
+ puts "No open PRs found"
647
+ next
648
+ end
649
+
650
+ lines = my_prs.each_with_object({}) do |pr, h|
651
+ display = "##{pr['number']} [#{pr['headRefName']}] #{pr['title']}"
652
+ h[display] = pr
653
+ end
654
+
655
+ pr_info = fuzzyfind_from_map(lines)
656
+ unless pr_info
657
+ puts "No PR selected"
658
+ next
659
+ end
663
660
  end
664
661
  when /^\d+$/
665
662
  # Track by PR number
@@ -692,6 +689,8 @@ Hiiro.run(*ARGV, plugins: [Pins]) do
692
689
 
693
690
  pinned_manager.pin(pr_info.merge(context))
694
691
  puts "Now tracking ##{pr_info['number']}: #{pr_info['title']}"
692
+ puts
693
+ run_subcmd(:update)
695
694
  end
696
695
 
697
696
  add_subcmd(:ls) do |*ls_args|
data/lib/hiiro/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Hiiro
2
- VERSION = "0.1.225"
2
+ VERSION = "0.1.226"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hiiro
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.225
4
+ version: 0.1.226
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Toyota