Documentation
¶
Index ¶
- func CreateClient()
- func Generate(username string) (string, error)
- func GetForkCount(login string) (int, error)
- func GetUser(username string) (*github.User, error)
- func Run()
- func SetAllowedUsers(allowed []string)
- type ForkCount
- type Lang
- type LatestContributions
- type RepoInfo
- type RepoInfoQuery
- type RepoStats
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateClient ¶
func CreateClient()
func GetForkCount ¶
func SetAllowedUsers ¶
func SetAllowedUsers(allowed []string)
Types ¶
type ForkCount ¶
type ForkCount struct { User struct { Repositories struct { TotalCount int } `graphql:"repositories(isFork: true)"` } `graphql:"user(login: $login)"` }
type LatestContributions ¶
type LatestContributions struct { User struct { Followers struct { TotalCount int } Repositories struct { TotalCount int Nodes []struct { Name string IsPrivate bool PushedAt githubv4.DateTime DefaultBranchRef struct { Name string Target struct { SpreadCommits struct { History struct { TotalCount int } `graphql:"history(since: $since)"` } `graphql:"... on Commit"` } } } } `graphql:"repositories(first: 10, orderBy: {field: PUSHED_AT, direction: DESC})"` ContributionsCollection struct { TotalCommitContributions int ContributionCalendar struct { TotalContributions int } CommitContributionsByRepository []struct { Repository struct { UpdatedAt githubv4.DateTime Name string URL string IsPrivate bool } Contributions struct { TotalCount int } } } `graphql:"contributionsCollection(from: $from, to: $to)"` } `graphql:"user(login: $login)"` }
func GetLatestContributions ¶
func GetLatestContributions(user *github.User, days int) (*LatestContributions, error)
type RepoInfoQuery ¶
Click to show internal directories.
Click to hide internal directories.