diff options
Diffstat (limited to 'utils/github/types.go')
| -rw-r--r-- | utils/github/types.go | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/utils/github/types.go b/utils/github/types.go new file mode 100644 index 0000000..8e3fe9a --- /dev/null +++ b/utils/github/types.go @@ -0,0 +1,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"` +} |
