diff options
| author | Priyansh <[email protected]> | 2025-08-26 15:31:16 +0530 |
|---|---|---|
| committer | Priyansh <[email protected]> | 2025-08-26 15:31:16 +0530 |
| commit | 2b42c3666467a26043e92982cf4fa0eb11280c70 (patch) | |
| tree | 906efabe7a477339ffda56344120afb028760691 /utils/github/types.go | |
| parent | 0c66e0b7dedda5aab5a5848513ccafffdad66d6b (diff) | |
| download | eda-main.tar.xz eda-main.zip | |
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"` +} |
