From b97d84c8b588c7c9123f060cd41cceb70fd29f5b Mon Sep 17 00:00:00 2001 From: Salvydas Lukosius Date: Sat, 23 May 2026 01:15:56 +0100 Subject: [PATCH] fix(labels): use gh jq for paginated label reads --- scripts/labels-dry-run.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/labels-dry-run.rb b/scripts/labels-dry-run.rb index 73e3b8841..c9c818799 100755 --- a/scripts/labels-dry-run.rb +++ b/scripts/labels-dry-run.rb @@ -91,7 +91,7 @@ def gh_json(*args) def gh_paginated_array(path) stdout, stderr, status = Open3.capture3( - "gh", "api", path, "--paginate", "--template", "{{range .}}{{json .}}{{\"\\n\"}}{{end}}" + "gh", "api", path, "--paginate", "--jq", ".[]" ) unless status.success? raise "gh api #{path} failed: #{stderr.strip.empty? ? stdout.strip : stderr.strip}"