Versions in this module Expand all Collapse all v0 v0.12.1 Apr 6, 2026 v0.12.0 Apr 6, 2026 v0.11.0 Apr 4, 2026 v0.10.0 Feb 28, 2026 v0.9.1 Feb 15, 2026 v0.9.0 Feb 7, 2026 Changes in this version type CommitStats + func GetCommitStatsWithProgress(ctx context.Context, client *githubv4.Client, username string, ...) (*CommitStats, error) + type CommitStatsProgressFunc func(current, total int) v0.8.0 Feb 2, 2026 v0.7.0 Jan 31, 2026 v0.6.0 Jan 17, 2026 Changes in this version + func NewClient(ctx context.Context, token string) *githubv4.Client + func NewEnterpriseClient(ctx context.Context, token, baseURL string) *githubv4.Client + func NewTokenClient(ctx context.Context, token string) *http.Client + type CommitStats struct + Additions int + ByMonth []MonthlyCommitStats + ByRepo []RepoCommitStats + Deletions int + From time.Time + To time.Time + TotalCommits int + Username string + Visibility Visibility + func GetCommitStats(ctx context.Context, client *githubv4.Client, username string, ...) (*CommitStats, error) + func GetCommitStatsByVisibility(ctx context.Context, client *githubv4.Client, username string, ...) (all, public, private *CommitStats, err error) + type ContributionStats struct + ContributionsByMonth []MonthlyContribution + From time.Time + RestrictedContributions int + To time.Time + TotalCommitContributions int + TotalIssueContributions int + TotalPRContributions int + TotalPRReviewContributions int + TotalRepositoryContributions int + Username string + func GetContributionStats(ctx context.Context, client *githubv4.Client, username string, ...) (*ContributionStats, error) + func GetContributionStatsMultiYear(ctx context.Context, client *githubv4.Client, username string, ...) (*ContributionStats, error) + type MonthlyCommitStats struct + Additions int + Commits int + Deletions int + Month time.Month + Year int + func (mcs MonthlyCommitStats) YearMonth() string + type MonthlyContribution struct + Count int + Month time.Month + Year int + func (mc MonthlyContribution) YearMonth() string + type RepoCommitStats struct + Additions int + Commits int + Deletions int + IsPrivate bool + Name string + Owner string + type Visibility int + const VisibilityAll + const VisibilityPrivate + const VisibilityPublic