github-portfolio-analyzer 1.4.0 → 1.4.1
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.
- package/CHANGELOG.md +5 -0
- package/analyzer.manifest.json +1 -1
- package/package.json +1 -1
- package/src/github/repos.js +2 -7
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
## [1.4.1] - 2026-04-03
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
- `classifyFork`: removed `pushed_at` heuristic from fallback logic. Forks without a successful upstream comparison now always return `passive`. Previously, recently-cloned forks with no own commits were incorrectly classified as `active`.
|
|
11
|
+
|
|
7
12
|
## [1.4.0] — 2026-04-03
|
|
8
13
|
|
|
9
14
|
### Added
|
package/analyzer.manifest.json
CHANGED
package/package.json
CHANGED
package/src/github/repos.js
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import { daysSince } from '../core/classification.js';
|
|
2
|
-
|
|
3
1
|
const PAGE_SIZE = 100;
|
|
4
2
|
|
|
5
3
|
/**
|
|
6
4
|
* Classifies a fork as active or passive.
|
|
7
|
-
* Active forks are
|
|
8
|
-
* when upstream comparison metadata is unavailable.
|
|
5
|
+
* Active forks are ahead of the upstream default branch.
|
|
9
6
|
*/
|
|
10
7
|
export async function classifyFork(client, repo, asOfDate = new Date().toISOString().slice(0, 10)) {
|
|
11
8
|
if (!repo?.fork) {
|
|
@@ -13,9 +10,7 @@ export async function classifyFork(client, repo, asOfDate = new Date().toISOStri
|
|
|
13
10
|
}
|
|
14
11
|
|
|
15
12
|
const parent = repo.parent;
|
|
16
|
-
const
|
|
17
|
-
const isRecentlyActive = pushedAt ? daysSince(pushedAt, asOfDate) <= 90 : false;
|
|
18
|
-
const fallbackForkType = isRecentlyActive ? 'active' : 'passive';
|
|
13
|
+
const fallbackForkType = 'passive';
|
|
19
14
|
|
|
20
15
|
if (!parent) {
|
|
21
16
|
return fallbackForkType;
|