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.
- checksums.yaml +4 -4
- data/bin/h-pr +21 -22
- data/lib/hiiro/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d316fed29600643095f5e1c8303eb145cfdfd286819e4d6ec7ee906927433770
|
|
4
|
+
data.tar.gz: e6b0b5a18ca6932d69c5e220a094701712955a6aca2e1d1da5e279117b3cf499
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
#
|
|
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
|
-
|
|
662
|
-
|
|
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