hiiro 0.1.261 → 0.1.263

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: 931f2b0401b24ebade952d44bf4e8b1089cf742608fb78e5c69f926d81d0d069
4
+ data.tar.gz: 5c3d810913d64619f280ebd4ba2ce3b9f1d9b4eed42c0ce7c245dde83da229b6
5
5
  SHA512:
6
- metadata.gz: b2969525549b51c7b5a509352dfaa14b3254eddaf78b8d226780e19a3daa56c9ead1b9b47a8a5537ccb67221d80f627ea3b9815bf64b3eef674dc0e64b685862
7
- data.tar.gz: 0d2cd8b8f46a6a237933cfca58cd4923bc05ad0045fb9679b7cfd2cd87679bbd69dbd1b9040c9f70fdf2973bd142a3fc97cc9068c3723c197422dc7e93c6112b
6
+ metadata.gz: bbdecb53d48ce153eaff2e43f1ab7663a7aa882d8ce96b9f4342bc0e304bee91ac11ee6b465fba22d1a75e8298a813fdee24aaed28b911ae97ff8dd24c9d1041
7
+ data.tar.gz: c1ff45b7c9f2675b570fc28b4d16b3ef97be71e94c4bb6aefb5568d0487d2e56d2da51ac7f134db5b219e26b6e2008833a1f00bcc3d3e9ed93921d9250cfca11
data/CHANGELOG.md CHANGED
@@ -1 +1,16 @@
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
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [0.1.263] - 2026-03-18
9
+
10
+ ### Fixed
11
+ - fix(pr): fix undefined method 'display_pinned' in tags subcommand
12
+
13
+ ## [0.1.262] - 2026-03-17
14
+
15
+ ### Added
16
+ - Initial release
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 " #{pinned_manager.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.263"
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.263
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Toyota