@oss-autopilot/core 0.47.1 → 0.47.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16,6 +16,7 @@ import { fetchDashboardData, computePRsByRepo, computeTopRepos, getMonthlyData,
16
16
  import { openInBrowser } from './startup.js';
17
17
  import { writeDashboardServerInfo, removeDashboardServerInfo } from './dashboard-process.js';
18
18
  import { RateLimiter } from './rate-limiter.js';
19
+ import { isBelowMinStars, } from '../core/types.js';
19
20
  // Re-export process management functions for backward compatibility
20
21
  export { getDashboardPidPath, writeDashboardServerInfo, readDashboardServerInfo, removeDashboardServerInfo, isDashboardServerRunning, findRunningDashboardServer, } from './dashboard-process.js';
21
22
  // ── Constants ────────────────────────────────────────────────────────────────
@@ -76,7 +77,13 @@ function buildDashboardJson(digest, state, commentedIssues, allMergedPRs) {
76
77
  const { monthlyMerged, monthlyOpened, monthlyClosed } = getMonthlyData(state);
77
78
  // Derive allMergedPRs from state if not provided (e.g. initial load from cached state)
78
79
  const mergedPRs = allMergedPRs ?? storedToMergedPRs(getStateManager().getMergedPRs());
79
- const stats = buildDashboardStats(digest, state, mergedPRs.length);
80
+ // Filter out merged PRs from repos below the minStars threshold
81
+ const minStars = state.config.minStars ?? 50;
82
+ const filteredMergedPRs = mergedPRs.filter((pr) => {
83
+ const repoScore = (state.repoScores || {})[pr.repo];
84
+ return !isBelowMinStars(repoScore?.stargazersCount, minStars);
85
+ });
86
+ const stats = buildDashboardStats(digest, state, filteredMergedPRs.length);
80
87
  const issueResponses = commentedIssues.filter((i) => i.status === 'new_response');
81
88
  return {
82
89
  stats,
@@ -92,7 +99,7 @@ function buildDashboardJson(digest, state, commentedIssues, allMergedPRs) {
92
99
  autoUnshelvedPRs: digest.autoUnshelvedPRs || [],
93
100
  commentedIssues,
94
101
  issueResponses,
95
- allMergedPRs: mergedPRs,
102
+ allMergedPRs: filteredMergedPRs,
96
103
  };
97
104
  }
98
105
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oss-autopilot/core",
3
- "version": "0.47.1",
3
+ "version": "0.47.2",
4
4
  "description": "CLI and core library for managing open source contributions",
5
5
  "type": "module",
6
6
  "bin": {