Documentation
¶
Overview ¶
Package gamify computes contributor achievements, badges, and levels for release gamification.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatConfluence ¶
func FormatConfluence(achievements []ContributorAchievements) string
func FormatMarkdown ¶
func FormatMarkdown(results []ContributorResult) string
Types ¶
type Achievement ¶
type ContributorAchievements ¶
type ContributorAchievements struct {
Name string
Commits int
Level int
LevelName string
Badges []Badge
Achievements []Achievement
TotalCommits int
Streak int
}
func GenerateAchievements ¶
func GenerateAchievements(ctx context.Context, results []ContributorResult, snapshots []trends.Snapshot, client ai.Client, lang string) []ContributorAchievements
type ContributorResult ¶
func Compute ¶
func Compute(commits []commit.Commit, reportMetrics metrics.ReportMetrics, snapshots []trends.Snapshot, opts Options) []ContributorResult
type ContributorStats ¶
type ContributorStats struct {
Name string `json:"name"`
Commits int `json:"commits"`
Level int `json:"level"`
LevelName string `json:"level_name"`
FeatCount int `json:"feat_count"`
FixCount int `json:"fix_count"`
RefactorCount int `json:"refactor_count"`
TotalCommits int `json:"total_commits"`
Streak int `json:"streak"`
Badges []string `json:"badges"`
}
Click to show internal directories.
Click to hide internal directories.