Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Github ¶
type Github struct {
// contains filtered or unexported fields
}
Github is a client to process multiple repos with a given template
type Issue ¶
type Issue struct { ID string `graphql:"id"` Number int `graphql:"number"` Body string `graphql:"body"` Title string `graphql:"title"` Author Author `graphql:"author"` URL string `graphql:"url"` CreatedAt time.Time `graphql:"createdAt"` Milestone Milestone `graphql:"milestone"` State string `graphql:"state"` Closed bool `graphql:"closed"` ClosedAt time.Time `graphql:"closedAt"` }
type IssueConnection ¶
type IssueData ¶
type IssueData struct { UUID string // populated from our scraping config RepoOwner string RepoName string // populated from the data GitHub returned to us Author string Body string ClosedAt time.Time Closed bool CreatedAt time.Time Milestone string Number int State string Title string URL string // contains filtered or unexported fields }
IssueData is a compact way to represent an issue so that templates can be expanded simply (without nested properties)
func NewIssueData ¶
func NewIssueData() *IssueData
type MilestoneConnection ¶
type MilestoneConnection struct { Edges []MilestoneEdge `graphql:"edges"` PageInfo PageInfo `graphql:"pageInfo"` }
type MilestoneEdge ¶
type MilestoneQuery ¶
type MilestoneQuery struct { Repository struct { Milestones MilestoneConnection `graphql:"milestones(first: 100, query: $query)"` } `graphql:"repository(owner: $owner, name: $name)"` }
type Query ¶
type Query struct { Repository struct { IssueConnection IssueConnection `graphql:"issues(first: $count, after: $issueCursor, filterBy: $filterBy)"` } `graphql:"repository(owner: $owner, name: $name)"` }
type QueryWithMilestone ¶
type QueryWithMilestone struct { Repository struct { Milestone struct { IssueConnection IssueConnection `graphql:"issues(first: $count, after: $issueCursor, filterBy: $filterBy)"` } `graphql:"milestone(number: $milestone)"` } `graphql:"repository(owner: $owner, name: $name)"` }
type RepoIter ¶
type RepoIter struct {
// contains filtered or unexported fields
}
RepoIter iterates all the desired issues from a given repo
func NewRepoIter ¶
Click to show internal directories.
Click to hide internal directories.