basic idea...

This commit is contained in:
eyedeekay
2025-05-05 17:05:38 -04:00
parent 213223eedc
commit 13800ab183

83
pkg/types/types.go Normal file
View File

@ -0,0 +1,83 @@
package types
import "time"
// Repository represents a GitHub repository with its basic information
type Repository struct {
Name string
FullName string
Description string
URL string
Owner string
Stars int
Forks int
LastUpdated time.Time
PullRequests []PullRequest
Issues []Issue
Discussions []Discussion
}
// PullRequest represents a GitHub pull request
type PullRequest struct {
Number int
Title string
URL string
Author string
AuthorURL string
CreatedAt time.Time
UpdatedAt time.Time
Labels []Label
Status string
}
// Issue represents a GitHub issue
type Issue struct {
Number int
Title string
URL string
Author string
AuthorURL string
CreatedAt time.Time
UpdatedAt time.Time
Labels []Label
}
// Discussion represents a GitHub discussion
type Discussion struct {
Title string
URL string
Author string
AuthorURL string
CreatedAt time.Time
LastUpdated time.Time
Category string
}
// Label represents a GitHub label
type Label struct {
Name string
Color string
}
// Dashboard represents the entire dashboard data
type Dashboard struct {
Username string
Organization string
GeneratedAt time.Time
Repositories []Repository
TotalPRs int
TotalIssues int
TotalDiscussions int
}
// Config holds the application configuration
type Config struct {
User string
Organization string
OutputDir string
GithubToken string
CacheDir string
CacheTTL time.Duration
Verbose bool
}