Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var GlobalV4Client *githubv4.Client
Functions ¶
Types ¶
type Issue ¶
type Issue struct { ID string Author struct { Login string User struct { ID string } `graphql:"... on User"` } Repository struct { ID string NameWithOwner string } Number int URL string State string CreatedAt time.Time ClosedAt time.Time Assignees struct { Nodes []IssueAssignee } `graphql:"assignees(first: $assigneesFirst, after: $assigneesAfter)"` }
func QueryIssueInfoByRepo ¶
func QueryIssueInfoByRepo(ctx context.Context, owner, name string, lastUpdate time.Time) ([]Issue, time.Time, error)
QueryIssueInfoByRepo return issues according to the repo if lastUpdate is empty it will return the issues since last update if lastUpdate is provided including new issues and updated issues
type IssueAssignee ¶
type PR ¶
type PR struct { ID string Author struct { Login string User struct { ID string } `graphql:"... on User"` } Repository struct { ID string NameWithOwner string } Number int URL string State string CreatedAt time.Time MergedAt time.Time ClosedAt time.Time Assignees struct { Nodes []PRAssignee } `graphql:"assignees(first: $assigneesFirst, after: $assigneesAfter)"` }
func QueryPRInfoByRepo ¶
QueryPRInfoByRepo return pull requests according to the repo if lastUpdate is empty it will return the prs since last update if lastUpdate is provided including new prs and updated prs
type PRAssignee ¶
type Repo ¶
type RepoInfo ¶
type RepoInfo struct {
Repository Repo `graphql:"repository(owner: $owner, name: $name)"`
}
type SinglePR ¶
type SinglePR struct { Node struct { PullRequest PR `graphql:"... on PullRequest"` } `graphql:"node(id: $id)"` }
type SingleUser ¶
type SingleUser struct { Node struct { User User `graphql:"... on User"` } `graphql:"node(id: $id)"` }
Click to show internal directories.
Click to hide internal directories.