Documentation ¶
Index ¶
- Constants
- Variables
- func CollectAccount(taskCtx core.SubTaskContext) error
- func CollectIssue(taskCtx core.SubTaskContext) error
- func CollectPr(taskCtx core.SubTaskContext) error
- func CollectRepo(taskCtx core.SubTaskContext) error
- type GithubAccountEdge
- type GithubAccountResponse
- type GraphqlInlineAccountQuery
- type GraphqlQueryAccount
- type GraphqlQueryAccountWrapper
- type GraphqlQueryCommit
- type GraphqlQueryIssue
- type GraphqlQueryIssueWrapper
- type GraphqlQueryPr
- type GraphqlQueryPrWrapper
- type GraphqlQueryRepo
- type GraphqlQueryReview
- type SimpleAccount
Constants ¶
View Source
const RAW_ACCOUNTS_TABLE = "github_graphql_accounts"
View Source
const RAW_ISSUES_TABLE = "github_graphql_issues"
View Source
const RAW_PRS_TABLE = "github_graphql_prs"
View Source
const RAW_REPO_TABLE = "github_graphql_repo"
Variables ¶
View Source
var CollectAccountMeta = core.SubTaskMeta{ Name: "CollectAccount", EntryPoint: CollectAccount, EnabledByDefault: true, Description: "Collect Account data from GithubGraphql api", }
View Source
var CollectIssueMeta = core.SubTaskMeta{ Name: "CollectIssue", EntryPoint: CollectIssue, EnabledByDefault: true, Description: "Collect Issue data from GithubGraphql api", }
View Source
var CollectPrMeta = core.SubTaskMeta{ Name: "CollectPr", EntryPoint: CollectPr, EnabledByDefault: true, Description: "Collect Pr data from GithubGraphql api", }
View Source
var CollectRepoMeta = core.SubTaskMeta{ Name: "CollectRepo", EntryPoint: CollectRepo, EnabledByDefault: true, Description: "Collect Repo data from GithubGraphql api", }
Functions ¶
func CollectAccount ¶
func CollectAccount(taskCtx core.SubTaskContext) error
func CollectIssue ¶
func CollectIssue(taskCtx core.SubTaskContext) error
func CollectPr ¶
func CollectPr(taskCtx core.SubTaskContext) error
func CollectRepo ¶
func CollectRepo(taskCtx core.SubTaskContext) error
Types ¶
type GithubAccountEdge ¶
type GithubAccountResponse ¶
type GithubAccountResponse struct { Login string `json:"login"` Id int `json:"id"` NodeId string `json:"node_id"` AvatarUrl string `json:"avatar_url"` GravatarId string `json:"gravatar_id"` Url string `json:"url"` HtmlUrl string `json:"html_url"` FollowersUrl string `json:"followers_url"` FollowingUrl string `json:"following_url"` GistsUrl string `json:"gists_url"` StarredUrl string `json:"starred_url"` SubscriptionsUrl string `json:"subscriptions_url"` OrganizationsUrl string `json:"organizations_url"` ReposUrl string `json:"repos_url"` EventsUrl string `json:"events_url"` ReceivedEventsUrl string `json:"received_events_url"` Type string `json:"type"` SiteAdmin bool `json:"site_admin"` }
type GraphqlInlineAccountQuery ¶
type GraphqlInlineAccountQuery struct {
GithubAccountEdge `graphql:"... on User"`
}
type GraphqlQueryAccount ¶
type GraphqlQueryAccount struct { Login string Id int `graphql:"databaseId"` Name string Company string Email string AvatarUrl string HtmlUrl string `graphql:"url"` //Type string Organizations struct { Nodes []struct { Email string Name string DatabaseId int Login string } } `graphql:"organizations(first: 10)"` }
type GraphqlQueryAccountWrapper ¶
type GraphqlQueryAccountWrapper struct { RateLimit struct { Cost int } Users []GraphqlQueryAccount `graphql:"user(login: $login)" graphql-extend:"true"` }
type GraphqlQueryCommit ¶
type GraphqlQueryIssue ¶
type GraphqlQueryIssue struct { DatabaseId int Number int State string StateReason string Title string Body string Author *GraphqlInlineAccountQuery Url string ClosedAt *time.Time CreatedAt time.Time UpdatedAt time.Time AssigneeList struct { // FIXME now domain layer just support one assignee Assignees []GraphqlInlineAccountQuery `graphql:"nodes"` } `graphql:"assignees(first: 1)"` Milestone *struct { Number int `json:"number"` } `json:"milestone"` Labels struct { Nodes []struct { Id string `json:"id"` Name string `json:"name"` } } `graphql:"labels(first: 100)"` }
type GraphqlQueryIssueWrapper ¶
type GraphqlQueryIssueWrapper struct { RateLimit struct { Cost int } Repository struct { IssueList struct { TotalCount graphql.Int Issues []GraphqlQueryIssue `graphql:"nodes"` PageInfo *helper.GraphqlQueryPageInfo } `graphql:"issues(first: $pageSize, after: $skipCursor)"` } `graphql:"repository(owner: $owner, name: $name)"` }
type GraphqlQueryPr ¶
type GraphqlQueryPr struct { DatabaseId int Number int State string Title string Body string Url string Labels struct { Nodes []struct { Id string Name string } } `graphql:"labels(first: 100)"` Author *GraphqlInlineAccountQuery Assignees struct { // FIXME now domain layer just support one assignee Assignees []GraphqlInlineAccountQuery `graphql:"nodes"` } `graphql:"assignees(first: 1)"` ClosedAt *time.Time MergedAt *time.Time UpdatedAt time.Time CreatedAt time.Time MergeCommit *struct { Oid string } HeadRefName string HeadRefOid string BaseRefName string BaseRefOid string Commits struct { PageInfo *helper.GraphqlQueryPageInfo Nodes []GraphqlQueryCommit `graphql:"nodes"` TotalCount graphql.Int } `graphql:"commits(first: 100)"` Reviews struct { TotalCount graphql.Int Nodes []GraphqlQueryReview `graphql:"nodes"` } `graphql:"reviews(first: 100)"` }
type GraphqlQueryPrWrapper ¶
type GraphqlQueryPrWrapper struct { RateLimit struct { Cost int } Repository struct { PullRequests struct { PageInfo *helper.GraphqlQueryPageInfo Prs []GraphqlQueryPr `graphql:"nodes"` TotalCount graphql.Int } `graphql:"pullRequests(first: $pageSize, after: $skipCursor)"` } `graphql:"repository(owner: $owner, name: $name)"` }
type GraphqlQueryRepo ¶
type GraphqlQueryRepo struct { RateLimit struct { Cost int } Repository struct { Name string `graphql:"name"` GithubId int `graphql:"databaseId"` HTMLUrl string `graphql:"url"` Languages struct { Nodes []struct { Name string } } `graphql:"languages(first: 1)"` Description string `graphql:"description"` Owner GraphqlInlineAccountQuery CreatedDate time.Time `graphql:"createdAt"` UpdatedDate *time.Time `graphql:"updatedAt"` Parent *struct { GithubId int `graphql:"databaseId"` HTMLUrl string `graphql:"url"` } } `graphql:"repository(owner: $owner, name: $name)"` }
type GraphqlQueryReview ¶
type SimpleAccount ¶
type SimpleAccount struct {
Login string
}
Click to show internal directories.
Click to hide internal directories.