MCPcopy Create free account
hub / github.com/ez4o/github-contribution-graph / GitHubData

Struct GitHubData

src/server/model/github_data.go:8–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6)
7
8type GitHubData struct {
9 Data struct {
10 User struct {
11 Name string `json:"name"`
12 ContributionsCollection struct {
13 ContributionCalendar struct {
14 TotalContributions int `json:"totalContributions"`
15 Weeks []struct {
16 ContributionDays []ContributionDays `json:"contributionDays"`
17 } `json:"weeks"`
18 } `json:"contributionCalendar"`
19 } `json:"contributionsCollection"`
20 } `json:"user"`
21 } `json:"data"`
22}
23
24func (g *GitHubData) GetContributionOfLastNDays(lastNDays int) ([]ContributionEntry, error) {
25 weeks := g.Data.User.ContributionsCollection.ContributionCalendar.Weeks

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected