fec14022cd
- Gitea API client with repository and commit fetching - Interactive credential input screen with masked token input - Statistics analyzer for commits, languages, and activity patterns - Multi-page report screen with ASCII charts and visualizations - Integration of all components in main app coordinator - Comprehensive README with usage instructions Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
52 lines
841 B
Go
52 lines
841 B
Go
package models
|
|
|
|
import "time"
|
|
|
|
type Repository struct {
|
|
ID int64
|
|
Name string
|
|
FullName string
|
|
HTMLURL string
|
|
Language string
|
|
Topics []string
|
|
}
|
|
|
|
type Commit struct {
|
|
SHA string
|
|
Message string
|
|
Author string
|
|
Timestamp time.Time
|
|
RepoName string
|
|
}
|
|
|
|
type LanguageStats struct {
|
|
Language string
|
|
Count int
|
|
Percent float64
|
|
}
|
|
|
|
type DateStats struct {
|
|
Date time.Time
|
|
Count int
|
|
Day string
|
|
}
|
|
|
|
type TagStats struct {
|
|
Tag string
|
|
Count int
|
|
}
|
|
|
|
type UserStats struct {
|
|
Username string
|
|
TotalCommits int
|
|
TotalRepositories int
|
|
Languages []LanguageStats
|
|
Tags []TagStats
|
|
CommitsByWeekday []DateStats
|
|
CommitsByMonth []DateStats
|
|
TopRepositories []Repository
|
|
MostActiveMonth string
|
|
MostActiveDay string
|
|
AverageCommitsPerDay float64
|
|
}
|