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 +4 -4
- data/CHANGELOG.md +16 -1
- data/bin/h-pr +9 -1
- data/lib/hiiro/tasks.rb +12 -0
- 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: 931f2b0401b24ebade952d44bf4e8b1089cf742608fb78e5c69f926d81d0d069
|
|
4
|
+
data.tar.gz: 5c3d810913d64619f280ebd4ba2ce3b9f1d9b4eed42c0ce7c245dde83da229b6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bbdecb53d48ce153eaff2e43f1ab7663a7aa882d8ce96b9f4342bc0e304bee91ac11ee6b465fba22d1a75e8298a813fdee24aaed28b911ae97ff8dd24c9d1041
|
|
7
|
+
data.tar.gz: c1ff45b7c9f2675b570fc28b4d16b3ef97be71e94c4bb6aefb5568d0487d2e56d2da51ac7f134db5b219e26b6e2008833a1f00bcc3d3e9ed93921d9250cfca11
|
data/CHANGELOG.md
CHANGED
|
@@ -1 +1,16 @@
|
|
|
1
|
-
|
|
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.
|
|
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