Versions in this module Expand all Collapse all v0 v0.8.0 Feb 2, 2026 Changes in this version + type ActivityTimeline struct + From time.Time + Months []MonthlyActivity + To time.Time + Username string + func (t *ActivityTimeline) AverageMonthlyContributions() float64 + func (t *ActivityTimeline) GetMonth(year int, month time.Month) *MonthlyActivity + func (t *ActivityTimeline) MonthsWithActivity() int + func (t *ActivityTimeline) MostActiveMonth() *MonthlyActivity + func (t *ActivityTimeline) SortByDate() + func (t *ActivityTimeline) SortByDateDesc() + func (t *ActivityTimeline) TotalCommits() int + func (t *ActivityTimeline) TotalContributions() int + type CalendarDay struct + ContributionCount int + Date time.Time + Level ContributionLevel + Weekday time.Weekday + type CalendarWeek struct + Days [7]CalendarDay + StartDate time.Time + func (w *CalendarWeek) TotalForWeek() int + type ContributionCalendar struct + TotalContributions int + Weeks []CalendarWeek + func NewCalendarFromDays(days []CalendarDay) *ContributionCalendar + func (c *ContributionCalendar) CurrentStreak() int + func (c *ContributionCalendar) DaysWithContributions() int + func (c *ContributionCalendar) GetDateRange() (first, last time.Time) + func (c *ContributionCalendar) GetDay(date time.Time) *CalendarDay + func (c *ContributionCalendar) GetWeek(date time.Time) *CalendarWeek + func (c *ContributionCalendar) LongestStreak() int + type ContributionLevel int + const LevelHigh + const LevelLow + const LevelMaximum + const LevelMedium + const LevelNone + func CalculateLevel(count int) ContributionLevel + type MonthlyActivity struct + Additions int + Commits int + CommitsByRepo map[string]int + Deletions int + IssueRepos []string + Issues int + Month time.Month + PRRepos []string + PRs int + ReposCreated []string + Reviews int + Year int + func (m *MonthlyActivity) CommitRepoCount() int + func (m *MonthlyActivity) CommitSummary() string + func (m *MonthlyActivity) IssueSummary() string + func (m *MonthlyActivity) MonthName() string + func (m *MonthlyActivity) PRSummary() string + func (m *MonthlyActivity) RepoCreatedSummary() string + func (m *MonthlyActivity) ReviewSummary() string + func (m *MonthlyActivity) TopCommitRepos(n int) []RepoCommitCount + func (m *MonthlyActivity) TotalContributions() int + func (m *MonthlyActivity) YearMonth() string + type Options struct + IncludeReleases bool + MaxReleaseFetchRepos int + Progress ProgressFunc + Visibility graphql.Visibility + func DefaultOptions() *Options + type ProgressFunc func(info ProgressInfo) + type ProgressInfo struct + Current int + Description string + Done bool + Stage int + Total int + TotalStages int + type RepoCommitCount struct + Commits int + Repo string + type RepoContribution struct + Additions int + Commits int + Deletions int + FullName string + IsPrivate bool + Name string + Owner string + Releases int + type UserProfile struct + Activity *ActivityTimeline + Calendar *ContributionCalendar + CommitsDefaultBranch int + From time.Time + RepoStats []RepoContribution + ReposContributedTo int + RestrictedContributions int + To time.Time + TotalAdditions int + TotalCommits int + TotalDeletions int + TotalIssues int + TotalPRs int + TotalReposCreated int + TotalReviews int + Username string + func GetUserProfile(ctx context.Context, restClient *github.Client, gqlClient *githubv4.Client, ...) (*UserProfile, error) + func (p *UserProfile) PrivateRepos() []RepoContribution + func (p *UserProfile) PublicRepos() []RepoContribution + func (p *UserProfile) Summary() string + func (p *UserProfile) TopReposByAdditions(n int) []RepoContribution + func (p *UserProfile) TopReposByCommits(n int) []RepoContribution