Skip to content

Commit

Permalink
Add LanguageStat struct for holding language statistics
Browse files Browse the repository at this point in the history
  • Loading branch information
dayvonjersen committed Oct 19, 2017
1 parent 4eb2c55 commit 41cabf2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions gitea/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ type Repository struct {
Permissions *Permission `json:"permissions,omitempty"`
}

type LanguageStat struct {
Language string
Percentage float64
Color string
}

// RepositoryList represents a list of API repository.
// swagger:response RepositoryList
type RepositoryList []*Repository
Expand Down

0 comments on commit 41cabf2

Please sign in to comment.