summaryrefslogtreecommitdiff
path: root/internal/github/github_test.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-27 21:57:02 +0300
committerPaul Buetow <paul@buetow.org>2026-05-27 21:57:02 +0300
commit9dc3512e030604ca0c63919e41c0e5a4987b117a (patch)
tree75f7538766a4a6a26bd3203d74507ae15e554f25 /internal/github/github_test.go
parent0f051cc7feb77dc0bc579ed5575f7d397ba6534d (diff)
showcase: activity check uses all-branch last-commit date to avoid false inactivity
Problem: projects with active development on a non-default branch (e.g. all recent work on 'master' while the workdir HEAD is on 'screenshots') were being greyed out in the rank-history SVG despite recent commits. Fix: - Add LastActivityDate string to RepoMetadata, computed with 'git log --all -1 --pretty=format:%ai' (all local branches, no fetch). Code stats (AvgCommitAge, CommitCount, LOC, score) remain HEAD-only per the configured-branch rules. - SVG inactivity check uses LastActivityDate (falling back to LastCommitDate if the field is absent in older cache entries). - getLastActivityDate() added to metadata.go alongside getLastCommitDate(). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'internal/github/github_test.go')
0 files changed, 0 insertions, 0 deletions