hiiro 0.1.274 → 0.1.275
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 +1 -1
- data/bin/h-pr +14 -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: de15e42b4ef41a39549df14ac619a8fa60d4503fe112838c760ed94565d78426
|
|
4
|
+
data.tar.gz: 0c1886d398a5f233c2ac4c22c1b8ce25ce231ee4005879507662156fe735e532
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7be251d320a685f50cd0ba442fccaff2559c1cfeee2ded2fce185d54b21d3bc8953aa0b73a2c577e3c38c01b1a03317c54f3573922261383f55f067e813096b8
|
|
7
|
+
data.tar.gz: 0b75738d860076700cad4d0e9b7df3cb7c661f1ef47e7d4ba71e48b6c9e10a40699d46efa6ac2af8b889d0a7e3df3432a2528cc3ef45834ce2d01b75f7b8ce07
|
data/CHANGELOG.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Done.
|
|
1
|
+
Done. CHANGELOG.md updated with v0.1.275 entry at the top, dated 2026-03-24, with the `h-pr sync` subcommand addition.
|
data/bin/h-pr
CHANGED
|
@@ -1253,6 +1253,20 @@ Hiiro.run(*ARGV, plugins: [Pins]) do
|
|
|
1253
1253
|
system('gh', 'pr', 'merge', pr_number.to_s, *merge_args)
|
|
1254
1254
|
end
|
|
1255
1255
|
|
|
1256
|
+
add_subcmd(:sync) do |ref = nil|
|
|
1257
|
+
pr_number = resolve_pr.call(ref)
|
|
1258
|
+
next unless pr_number
|
|
1259
|
+
|
|
1260
|
+
print "Syncing ##{pr_number} with base branch (rebase)... "
|
|
1261
|
+
rebase_ok = system('gh', 'pr', 'update-branch', '--rebase', pr_number.to_s,
|
|
1262
|
+
out: $stdout, err: $stderr)
|
|
1263
|
+
|
|
1264
|
+
unless rebase_ok
|
|
1265
|
+
puts "Rebase failed (conflicts?), falling back to merge..."
|
|
1266
|
+
system('gh', 'pr', 'update-branch', pr_number.to_s)
|
|
1267
|
+
end
|
|
1268
|
+
end
|
|
1269
|
+
|
|
1256
1270
|
add_subcmd(:fix) do |*fix_args|
|
|
1257
1271
|
opts = Hiiro::Options.parse(fix_args) do
|
|
1258
1272
|
flag(:red, short: :r, desc: 'Fix all PRs with failing checks')
|
data/lib/hiiro/version.rb
CHANGED