aboutsummaryrefslogtreecommitdiff
path: root/utils/github/types.go
diff options
context:
space:
mode:
authorPriyansh <[email protected]>2025-08-26 15:31:16 +0530
committerPriyansh <[email protected]>2025-08-26 15:31:16 +0530
commit2b42c3666467a26043e92982cf4fa0eb11280c70 (patch)
tree906efabe7a477339ffda56344120afb028760691 /utils/github/types.go
parent0c66e0b7dedda5aab5a5848513ccafffdad66d6b (diff)
downloadeda-main.tar.xz
eda-main.zip
github api/graphql integration w/ partialsHEADmain
Diffstat (limited to 'utils/github/types.go')
-rw-r--r--utils/github/types.go21
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"`
+}