mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-25 04:24:51 -07:00
21 lines
420 B
TypeScript
21 lines
420 B
TypeScript
/**
|
|
* @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');
|
|
}
|