refactor(model): rename TotalContributions → TotalContributionsLastYear

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.
This commit is contained in:
tiennm99 committed 2026-04-18 22:43:38 +07:00
1 parent 6543bab6d8
commit 262a8e1482
1 file changed
+1 -1
+1 -1
View File
@@ -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