Draft optimizer workflow.

This commit is contained in:
Christian Gunderman
2026-04-21 15:59:07 -07:00
parent d6f88f8720
commit 9d1ed876cc
13 changed files with 910 additions and 0 deletions
@@ -0,0 +1,14 @@
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);
}