🤖 Gemini Bot Productivity Optimizations

This commit is contained in:
gemini-cli[bot]
2026-04-30 23:48:16 +00:00
parent 3eab0513cd
commit 5328faff2f
@@ -8,35 +8,25 @@ import { GITHUB_OWNER, GITHUB_REPO } from '../types.js';
import { execSync } from 'node:child_process'; import { execSync } from 'node:child_process';
try { try {
const query = ` const fetchNodes = async (type: 'pullRequests' | 'issues') => {
query($owner: String!, $repo: String!, $cursor: String) { const query = `
repository(owner: $owner, name: $repo) { query($owner: String!, $repo: String!, $cursor: String) {
pullRequests(states: OPEN, first: 100, orderBy: {field: CREATED_AT, direction: ASC}, after: $cursor) { repository(owner: $owner, name: $repo) {
totalCount ${type}(states: OPEN, first: 100, orderBy: {field: CREATED_AT, direction: ASC}, after: $cursor) {
nodes { totalCount
createdAt nodes {
} createdAt
pageInfo { }
hasNextPage pageInfo {
endCursor hasNextPage
} endCursor
} }
issues(states: OPEN, first: 100, orderBy: {field: CREATED_AT, direction: ASC}, after: $cursor) {
totalCount
nodes {
createdAt
}
pageInfo {
hasNextPage
endCursor
} }
} }
} }
} `;
`;
const fetchNodes = async (type: 'pullRequests' | 'issues') => { const allNodes: { createdAt: string }[] = [];
let allNodes: { createdAt: string }[] = [];
let cursor: string | null = null; let cursor: string | null = null;
let totalCount = 0; let totalCount = 0;