Skip to content

fix(factory): calculate merged-this-week from merged pull requests - #1117

Open
castrojo wants to merge 1 commit into
projectbluefin:v4from
castrojo:fix-merged-this-week
Open

fix(factory): calculate merged-this-week from merged pull requests#1117
castrojo wants to merge 1 commit into
projectbluefin:v4from
castrojo:fix-merged-this-week

Conversation

@castrojo

@castrojo castrojo commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Problem

scripts/fetch-hive-live-data.js populated mergedThisWeek from a query for closed issues instead of merged pull requests, causing the dashboard to significantly undercount merges (113 closed issues vs 313 merged PRs in the same window).

Fix

Add a dedicated type:pr is:merged merged:>${weekAgo} search and use its total_count for orgStats.mergedThisWeek, leaving the existing closed-issues query untouched for velocity.closed.

Closes #1088

— hive: backend=copilot model=claude-sonnet-5

🐝 Hive Agent: contributor | SHA: d6ad7902

Query type:pr is:merged merged:>${weekAgo} for the mergedThisWeek
metric instead of reusing the closed-issues search, which was
undercounting merges (113 closed issues vs 313 merged PRs).

Fixes projectbluefin#1088

Signed-off-by: castrojo <castrojo@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant