hiiro 0.1.291 → 0.1.292

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: 03a9ad967ffc6e338367882dd85b3305099e521dc7a0a2341acf71257ca22bde
4
- data.tar.gz: 80f4746d3cdb168b9275e8ca4e55822d356966f4467f147b68741cde3045cfa6
3
+ metadata.gz: b7bcfce2d0fd9d428a59696b9d95ffcc57a9ba875cf7cc865123303661905586
4
+ data.tar.gz: de38f5fe9cadba6b68d1dc7382f749b3c474372ea037da3d3fd4b2da9793d046
5
5
  SHA512:
6
- metadata.gz: 6f5076627ad3767f575122e566090160a35953059efb115e89509a855af089dec0f5f32336c33cf001cc3bc8d6fa3a364bde840ad4e1d7a2274c354c0e59b35f
7
- data.tar.gz: 7b6cdcbe3c7640f6fbf27d42ee42aa72fcc6644d5f11c0ddec482d6ea98de8dc5f3712606d221e1c520acbbc66cb3c60fae1eea8ae2c8bf4d7175345465da2bd
6
+ metadata.gz: be11793dd32b0d8f95073004723fecc88793929b55c6f98134d3e571345850702d9acdb4d879ae2b2235d5d73dbae1aa910d0eea7372a1ed7e53fefb6cd349a1
7
+ data.tar.gz: 3c0bb0253dfa9171c22a64cef87fcb8e2bd14579101a9ab26b29f30dabcd4e0d8e7877f8dcadbc9064b158693729bf81909b15a34ee089076a069f814db36081
data/CHANGELOG.md CHANGED
@@ -1,9 +1,15 @@
1
1
  ```markdown
2
+ ## v0.1.292 (2026-03-26)
3
+
4
+ ### Added
5
+ - `h pr update`: now accepts filter flags (`--active`, `--failing`, `--ready`, `--all`) to control which PRs are refreshed and displayed after update
6
+
2
7
  ## v0.1.291 (2026-03-26)
3
8
 
4
9
  ### Added
5
10
  - `Options#mutual_exclusion(*names)` — star-topology mutual exclusion: first flag is the hub (clears all others when set); any other flag only clears the hub (spokes can coexist freely); last encountered in argv wins
6
11
  - `h pr ls`: new `--all`/`-a` flag (show all tracked PRs, no filter); all filter flags are declared mutually exclusive so `-oa`, `-ao`, `--all --active` etc. do the right thing
12
+ - `h pr update`: now accepts the same filter flags as `h pr ls` and passes them through, so `h pr update -r` refreshes then shows only failing PRs
7
13
 
8
14
  ## v0.1.290 (2026-03-26)
9
15
 
data/bin/h-pr CHANGED
@@ -326,6 +326,13 @@ Hiiro.run(*ARGV, plugins: [Pins]) do
326
326
  end
327
327
 
328
328
  add_subcmd(:update) do |*update_args|
329
+ opts = Hiiro::Options.parse(update_args) {
330
+ flag(:force_update, long: 'force-update', short: 'u', desc: 'force refresh even if recently checked')
331
+ flag(:all, short: 'a', desc: 'show all tracked PRs (no filter)')
332
+ instance_eval(&FILTER_OPTS)
333
+ mutual_exclusion(:all, :active, :merged, :drafts, :red, :green, :pending, :conflicts)
334
+ }
335
+
329
336
  pinned = pinned_manager.load_pinned
330
337
 
331
338
  if pinned.empty?
@@ -333,16 +340,13 @@ Hiiro.run(*ARGV, plugins: [Pins]) do
333
340
  next
334
341
  end
335
342
 
336
- force = update_args.include?('-U') || update_args.include?('--force-update')
337
-
338
343
  puts "Updating status for #{pinned.length} PR(s)..."
339
- pinned_manager.refresh_all_status(pinned, force: force)
344
+ pinned_manager.refresh_all_status(pinned, force: opts.force_update)
340
345
  pinned_manager.save_pinned(pinned)
341
346
  puts "Done."
342
347
 
343
348
  puts
344
- run_subcmd(:ls)
345
-
349
+ run_subcmd(:ls, *opts.original_args)
346
350
  end
347
351
 
348
352
  add_subcmd(:green) do |*green_args|
data/lib/hiiro/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Hiiro
2
- VERSION = "0.1.291"
2
+ VERSION = "0.1.292"
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.291
4
+ version: 0.1.292
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Toyota