mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-16 06:43:07 -07:00
15 lines
412 B
JavaScript
15 lines
412 B
JavaScript
import { execSync } from 'node:child_process';
|
|
|
|
try {
|
|
const output = execSync('gh issue list --state open --limit 1000 --json number', { encoding: 'utf-8' });
|
|
const issues = JSON.parse(output);
|
|
process.stdout.write(JSON.stringify({
|
|
metric: 'open_issues',
|
|
value: issues.length,
|
|
timestamp: new Date().toISOString()
|
|
}));
|
|
} catch (err) {
|
|
process.stderr.write(err.message);
|
|
process.exit(1);
|
|
}
|