Documentation ¶
Index ¶
- Variables
- func AuthGraphQL(token string) *githubv4.Client
- func LanguagesByCommit(client *githubv4.Client, user string, from int, to int) (languages []string, commitsNum []float64, err error)
- func YearActivity(client *githubv4.Client, user string) (dates []string, contribs []float64, err error)
- type AggregatedContributionsCollection
- type CommitContributions
- type ContributionCalendar
- type ContributionDays
- type Contributions
- type ContributionsCollection
- type IssueContributions
- type Language
- type Nodes
- type Organization
- type PullRequestContributions
- type Repository
- type User
- type Weeks
Constants ¶
This section is empty.
Variables ¶
View Source
var ContributionsQuery struct { User struct { ContributionsCollection ContributionsCollection `graphql:"contributionsCollection(from: $from, to: $to)"` } `graphql:"user(login: $user)"` }
View Source
var OrganizationQuery struct { Organization struct { Login string Name string AvatarURL string Location string Email string TwitterUsername string WebsiteURL string Description string CreatedAt githubv4.DateTime Projects struct { TotalCount int } Packages struct { TotalCount int } Repositories struct { TotalCount int } `graphql:"repositories(privacy: PUBLIC)"` MembersWithRole struct { TotalCount int } `graphql:"membersWithRole(first: 100)"` SponsorshipsAsSponsor struct { TotalCount int } `graphql:"sponsorshipsAsSponsor"` SponsorshipsAsMaintainer struct { TotalCount int } `graphql:"sponsorshipsAsMaintainer"` } `graphql:"organization(login: $user)"` }
View Source
var UserQuery struct { User struct { Login string Name string AvatarURL string Location string Company string Email string TwitterUsername string WebsiteURL string Bio string Status struct { Emoji string Message string } CreatedAt githubv4.DateTime Followers struct { TotalCount int } Following struct { TotalCount int } StarredRepositories struct { TotalCount int } Projects struct { TotalCount int } Packages struct { TotalCount int } Watching struct { TotalCount int } `graphql:"watching(privacy: PUBLIC)"` Gists struct { TotalCount int } `graphql:"gists(privacy: PUBLIC)"` Repositories struct { TotalCount int } `graphql:"repositories(privacy: PUBLIC)"` Organizations struct { TotalCount int } `graphql:"organizations"` SponsorshipsAsSponsor struct { TotalCount int } `graphql:"sponsorshipsAsSponsor"` SponsorshipsAsMaintainer struct { TotalCount int } `graphql:"sponsorshipsAsMaintainer"` } `graphql:"user(login: $user)"` }
View Source
var YearActivityQuery struct { User struct { Repositories struct { Nodes []Nodes } `graphql:"repositories(first: $repoCount, ownerAffiliations: OWNER)"` ContributionsCollection struct { ContributionCalendar ContributionCalendar } `graph:"contributionsCollection"` } `graphql:"user(login: $user)"` }
Functions ¶
func AuthGraphQL ¶
func LanguagesByCommit ¶
Types ¶
type CommitContributions ¶
type CommitContributions struct { Contributions Contributions Repository Repository }
func AllCommits ¶
type ContributionCalendar ¶
type ContributionCalendar struct {
Weeks []Weeks
}
type ContributionDays ¶
type Contributions ¶
type Contributions struct {
TotalCount int
}
type ContributionsCollection ¶
type ContributionsCollection struct { CommitContributionsByRepository []CommitContributions IssueContributionsByRepository []IssueContributions PullRequestContributionsByRepository []PullRequestContributions PullRequestReviewContributionsByRepository []pullRequestReviewContributions }
func AllContributions ¶
type IssueContributions ¶
type IssueContributions struct { Contributions Contributions Repository Repository }
type Organization ¶
type Organization struct { Login string Name string AvatarURL string Location string Email string TwitterUsername string WebsiteURL string Description string CreatedAt githubv4.DateTime Projects struct { TotalCount int } Packages struct { TotalCount int } Repositories struct { TotalCount int } `graphql:"repositories(privacy: PUBLIC)"` MembersWithRole struct { TotalCount int } `graphql:"membersWithRole(first: 100)"` SponsorshipsAsSponsor struct { TotalCount int } `graphql:"sponsorshipsAsSponsor"` SponsorshipsAsMaintainer struct { TotalCount int } `graphql:"sponsorshipsAsMaintainer"` }
func OrganizationDetails ¶
func OrganizationDetails(client *githubv4.Client, organization string) (org Organization, err error)
type PullRequestContributions ¶
type PullRequestContributions struct { Contributions Contributions Repository Repository }
func AllPullRequests ¶
type Repository ¶
type User ¶
type User struct { Login string Name string AvatarURL string Location string Company string Email string TwitterUsername string WebsiteURL string Bio string Status struct { Emoji string Message string } CreatedAt githubv4.DateTime Followers struct { TotalCount int } Following struct { TotalCount int } StarredRepositories struct { TotalCount int } Projects struct { TotalCount int } Packages struct { TotalCount int } Watching struct { TotalCount int } `graphql:"watching(privacy: PUBLIC)"` Gists struct { TotalCount int } `graphql:"gists(privacy: PUBLIC)"` Repositories struct { TotalCount int } `graphql:"repositories(privacy: PUBLIC)"` Organizations struct { TotalCount int } `graphql:"organizations"` SponsorshipsAsSponsor struct { TotalCount int } `graphql:"sponsorshipsAsSponsor"` SponsorshipsAsMaintainer struct { TotalCount int } `graphql:"sponsorshipsAsMaintainer"` }
type Weeks ¶
type Weeks struct {
ContributionDays []ContributionDays
}
Click to show internal directories.
Click to hide internal directories.