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:
2026-04-18 22:43:38 +07:00
parent 76cf242ee9
commit cc7d0c6504
+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