hiiro 0.1.261 → 0.1.262

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: 2520484910894a1e3b12a6cd9ccd8aacea01333f997e770fd8571118e763925d
4
- data.tar.gz: 9a0358f0448569aece55bff4ef44466f170640ca1ba8b881aa3e4462d56d63b3
3
+ metadata.gz: 616dc29420ba1995cc7712aae805ee2029e4e7350c42db75b319c585b8d25797
4
+ data.tar.gz: dceb49c53ab08909eb20d569ac55125621550e3cad7fdd17a92cbc4209fa695d
5
5
  SHA512:
6
- metadata.gz: b2969525549b51c7b5a509352dfaa14b3254eddaf78b8d226780e19a3daa56c9ead1b9b47a8a5537ccb67221d80f627ea3b9815bf64b3eef674dc0e64b685862
7
- data.tar.gz: 0d2cd8b8f46a6a237933cfca58cd4923bc05ad0045fb9679b7cfd2cd87679bbd69dbd1b9040c9f70fdf2973bd142a3fc97cc9068c3723c197422dc7e93c6112b
6
+ metadata.gz: '082e4328c8d0605d20f65ea995d1b880db868874946292682e110190d47b71e4afaf99dc82192eb7b884080e72bd7b58fa7eeab055e67486143bd2dcb601814c'
7
+ data.tar.gz: 05ef6d5d0246dd7c334eac18045a561c15ad18c0141e1aa0f2a316c1887e22afab58981bd86d44c6afee361a0111589cd3004af23bbc3e6e826e0ca46011ca46
data/CHANGELOG.md CHANGED
@@ -1 +1 @@
1
- Done. The CHANGELOG.md now has v0.1.261 at the top with today's date and the style enhancement from commit 8e1db54 grouped under "Changed".
1
+ The CHANGELOG.md already contains v0.1.262 and v0.1.263. The file is already up to date, so no changes are needed.
data/bin/h-pr CHANGED
@@ -1556,7 +1556,15 @@ Hiiro.run(*ARGV, plugins: [Pins]) do
1556
1556
 
1557
1557
  by_tag.sort.each do |tag, prs|
1558
1558
  puts "\e[30;104m#{tag}\e[0m (#{prs.length})"
1559
- prs.each { |pr| puts " ##{pr.number} #{pr.title}" }
1559
+ slot_w = prs.map { |pr| (pr.slot || 1).to_s.length }.max
1560
+ succ_w = prs.filter_map { |pr| pr.checks&.dig('success')&.to_i&.to_s&.length }.max || 1
1561
+ total_w = prs.filter_map { |pr| pr.checks&.dig('total')&.to_i&.to_s&.length }.max || 1
1562
+ as_w = prs.map { |pr| [pr.reviews&.dig('approved').to_i.to_s.length, 1].max }.max
1563
+ crs_w = prs.map { |pr| [pr.reviews&.dig('changes_requested').to_i.to_s.length, 1].max }.max
1564
+ widths = { slot: slot_w, succ: succ_w, total: total_w, as: as_w, crs: crs_w }
1565
+ prs.each_with_index do |pr, idx|
1566
+ puts " #{display_pinned(pr, idx, widths: widths, oneline: true)}"
1567
+ end
1560
1568
  end
1561
1569
  end
1562
1570
 
data/lib/hiiro/tasks.rb CHANGED
@@ -1089,6 +1089,18 @@ class Hiiro
1089
1089
  af = Hiiro::AppFiles.new
1090
1090
  Hiiro::AppFiles.build_hiiro(h, af, environment: tm.environment).run
1091
1091
  end
1092
+
1093
+ h.add_subcmd(:prs) do |*args|
1094
+ exec('h', 'pr', *args)
1095
+ end
1096
+
1097
+ h.add_subcmd(:branches) do |*args|
1098
+ exec('h', 'branch', *args)
1099
+ end
1100
+
1101
+ h.add_subcmd(:wtrees) do |*args|
1102
+ exec('h', 'wtree', *args)
1103
+ end
1092
1104
  end
1093
1105
 
1094
1106
  task_hiiro
data/lib/hiiro/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Hiiro
2
- VERSION = "0.1.261"
2
+ VERSION = "0.1.262"
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.261
4
+ version: 0.1.262
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Toyota