Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion scripts/fetch-hive-live-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ const [
openIssuesData,
openPRsData,
agentReadyData,
mergedWeekData,
] = await Promise.all([
safeSearch(`org:${org} type:pr is:merged`, 30),
safeSearch(`org:${org} type:issue is:open -label:queue/agent-ready -label:source:agent`, 25),
Expand All @@ -121,6 +122,7 @@ const [
safeSearch(`org:${org} state:open type:issue`, 1),
safeSearch(`org:${org} state:open type:pr`, 1),
safeSearch(`org:${org} label:queue/agent-ready state:open`, 1),
safeSearch(`org:${org} type:pr is:merged merged:>${weekAgo}`, 1),
]);

function mapItem(i) {
Expand Down Expand Up @@ -156,7 +158,7 @@ const output = {
totalRepos: orgData.public_repos ?? 0,
openIssues: openIssuesData.total_count ?? 0,
openPRs: openPRsData.total_count ?? 0,
mergedThisWeek: closedData.total_count ?? 0,
mergedThisWeek: mergedWeekData.total_count ?? 0,
agentReadyIssues: agentReadyData.total_count ?? 0,
agentOpenPRs: hivePRData.total_count ?? 0,
sourceAgentOpen: copilotPRData.total_count ?? 0,
Expand Down