From cc7d0c6504e99c6f314a30bbc80b642548d15bbe Mon Sep 17 00:00:00 2001 From: tiennm99 Date: Sat, 18 Apr 2026 22:43:38 +0700 Subject: [PATCH] =?UTF-8?q?refactor(model):=20rename=20TotalContributions?= =?UTF-8?q?=20=E2=86=92=20TotalContributionsLastYear?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit N8 — the field is set from contributionsCollection.contributionCalendar, a rolling last-year window, not a lifetime total. Rename + updated comment makes the semantics explicit so future readers don't confuse it with TotalCommitsAllTime. --- internal/github/model.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/github/model.go b/internal/github/model.go index 0ff4d8fd..5ee54e67 100644 --- a/internal/github/model.go +++ b/internal/github/model.go @@ -27,7 +27,7 @@ type Profile struct { TotalIssues int TotalReviews int TotalContributedTo int - TotalContributions int // lifetime contributions from calendar + restricted + TotalContributionsLastYear int // contributionCalendar.totalContributions + restrictedContributionsCount (last year) // Count of owned repos grouped by primary language, sorted desc by Value. ReposByLanguage []LangStat