/** * @license * Copyright 2026 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { execSync } from 'node:child_process'; try { const count = execSync( 'gh issue list --state open --limit 1000 --json number --jq length', { encoding: 'utf-8', }, ).trim(); console.log(`open_issues,${count}`); } catch { // Fallback if gh fails or no issues found console.log('open_issues,0'); }