hiiro 0.1.322 → 0.1.323

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: e9afb3fb676cd088cb19aeeaa944954a58fa3b10de8b9bbcd5e320ddcba8ee51
4
- data.tar.gz: 1566f46fdbb10c362ecd8a6b7418350720c432d5822b9682464dc6336f73eb98
3
+ metadata.gz: 3f0e6f5a6312065c5ed74198ae2c2eb9e2a00b313a716946c920722805908ecf
4
+ data.tar.gz: 88a43b3e4225ef3ce0d99b7eeb7f31d0aa3b4adc521ea7563d31f3ef4bed203c
5
5
  SHA512:
6
- metadata.gz: 84565259d3a19aae0295a8fa8d5adca7b28d5d834962a39a8d9965eb99ec5130d9e7c4a24bb44b1965e915f0c8bed9f56b9639c0370611f546849e55f431dcf7
7
- data.tar.gz: fc8c1f1d6ea48a3399d3a7a1187800b96982b2aff2918753f31dd2fcc2aa2c4ea64395cf4cae3467b7cd5d554fa9e9e75b29ec23e268a850c0f147f89b93b7b5
6
+ metadata.gz: b79f44eab5cd1d65e6fe231242cd82492d280356d5ca571ec3d012b0b36c5d06e21b1d914bd37a6b7a98b1ad7f108e2fbefcffb127ff6efa19fa1c869e449410
7
+ data.tar.gz: ddf1662f78450f2167db30dba65f582a5cf863ca123c69dc5a7be66917f3741bc179f7e6437970914b17714bd78c3776b7509d8fc226e7bf83a5103d53f4930d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.1.323] - 2026-04-01
4
+
5
+ ### Changed
6
+ - Simplify `h pr ls` status refresh logic: always call `refresh_all_status` with `force:` parameter instead of conditional block
7
+ - Add optional `verbose:` parameter to `refresh_all_status` to control "already checked" message output
8
+ - Update `h pr update` to pass `verbose: true` when refreshing active PR status
9
+
3
10
  ## [0.1.322] - 2026-04-01
4
11
 
5
12
  ### Changed
data/bin/h-pr CHANGED
@@ -242,13 +242,8 @@ Hiiro.run(*ARGV, plugins: [Pins]) do
242
242
  pinned = pinned_manager.load_pinned
243
243
  next puts "No tracked PRs" if pinned.empty?
244
244
 
245
- if opts.update
246
- active = pinned.select(&:active?)
247
- puts "Updating status for #{active.length} active PR(s)..."
248
- pinned_manager.refresh_all_status(pinned, force: true)
249
- pinned_manager.save_pinned(pinned)
250
- puts
251
- end
245
+ pinned_manager.refresh_all_status(pinned, force: opts.update)
246
+ pinned_manager.save_pinned(pinned)
252
247
 
253
248
  results = pinned_manager.apply_filters(pinned, opts)
254
249
 
@@ -334,7 +329,7 @@ Hiiro.run(*ARGV, plugins: [Pins]) do
334
329
 
335
330
  active = pinned.select(&:active?)
336
331
  puts "Updating status for #{active.length} active PR(s) (#{pinned.length - active.length} closed/merged skipped)..."
337
- pinned_manager.refresh_all_status(pinned, force: opts.force_update)
332
+ pinned_manager.refresh_all_status(pinned, force: opts.force_update, verbose: true)
338
333
  pinned_manager.save_pinned(pinned)
339
334
  puts "Done."
340
335
 
@@ -271,11 +271,11 @@ class Hiiro
271
271
  result
272
272
  end
273
273
 
274
- def refresh_all_status(prs, force: false)
274
+ def refresh_all_status(prs, force: false, verbose: false)
275
275
  prs_to_refresh = prs.select { |pr| pr.active? && needs_refresh?(pr, force: force) }
276
276
 
277
277
  if prs_to_refresh.empty?
278
- puts "All PRs recently checked (within last 2 minutes). Use -U to force update." unless force
278
+ puts "All PRs recently checked (within last 2 minutes). Use -U to force update." if verbose
279
279
  return prs
280
280
  end
281
281
 
data/lib/hiiro/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Hiiro
2
- VERSION = "0.1.322"
2
+ VERSION = "0.1.323"
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.322
4
+ version: 0.1.323
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Toyota