aboutsummaryrefslogtreecommitdiff
path: root/utils/github/types.go
blob: 8e3fe9ae76d8c3be8e258a4929358142ad3e8c9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package github

type ContributionDay struct {
	ContributionCount int    `json:"contributionCount"`
	Date              string `json:"date"`
	Color             string `json:"color"`
}

type ContributionWeek struct {
	ContributionDays []ContributionDay `json:"contributionDays"`
	FirstDay         string            `json:"firstDay"`
}

type ContributionCalendar struct {
	TotalContributions int                `json:"totalContributions"`
	Weeks              []ContributionWeek `json:"weeks"`
}

type ContributionGraph struct {
	ContributionCalendar ContributionCalendar `json:"contributionCalendar"`
}