mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-14 22:02:59 -07:00
🤖 Gemini Bot Productivity Optimizations
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user