Skip to content

Commit

Permalink
adding comments for the structs
Browse files Browse the repository at this point in the history
  • Loading branch information
ganeshkumarsv committed Nov 23, 2021
1 parent 1725ef7 commit 2512b27
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions github/billing.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,20 @@ type StorageBilling struct {
EstimatedStorageForMonth int `json:"estimated_storage_for_month"`
}

// ActiveCommitters represents the total active committers across all repositories in an Organization.
type ActiveCommitters struct {
TotalAdvancedSecurityCommitters int `json:"total_advanced_security_committers"`
Repositories []Repositories `json:"repositories"`
}

// Repositories represents active committers on each repository
type Repositories struct {
Name string `json:"name"`
AdvancedSecurityCommitters int `json:"advanced_security_committers"`
AdvancedSecurityCommittersBreakdown []AdvancedSecurityCommittersBreakdown `json:"advanced_security_committers_breakdown"`
}

// AdvancedSecurityCommittersBreakdown represents the user activity breakdown for ActiveCommitters
type AdvancedSecurityCommittersBreakdown struct {
UserLogin string `json:"user_login"`
LastPushedDate string `json:"last_pushed_date"`
Expand Down

0 comments on commit 2512b27

Please sign in to comment.