Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ErrNoIssues is returned if there are no new issues ErrNoIssues = Error("no new or updated issues found") // ErrNoRepository is returned if the repository couldn't be determined. ErrNoRepository = Error("could not determine repository. Make sure it is in the format USER/REPOSITORY") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Comment ¶
type Comment struct { Body string Author struct { Login string } CreatedAt time.Time `graphql:"createdAt"` }
Comment is used in gql queries
type GH ¶
type GH struct {
// contains filtered or unexported fields
}
GH defines the fields needed for a github client
func (*GH) FetchIssues ¶
FetchIssues gets all requested issues from a given repository.
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"` CreatedAt time.Time `graphql:"createdAt"` Milestone Milestone `graphql:"milestone"` Comments Comments `graphql:"comments(first: $count, after: $commentsCursor)"` State string `graphql:"state"` Closed bool `graphql:"closed"` ClosedAt time.Time `graphql:"closedAt"` }
Issue is returned by a gql query
type IssueConnection ¶
type IssueConnection struct { Edges []IssueEdge `graphql:"edges"` PageInfo PageInfo `graphql:"pageInfo"` }
IssueConnection is used in gql queries
type Milestone ¶
type Milestone struct {
Title string `graphql:"title"`
}
Milestone is used in gql queries
type Option ¶
Option is used to set options
func Milestones ¶
Milestones sets the option to download milestones and returns an option
type Options ¶
type Options struct { Token string User string Repo string OutputPath string Count int AllIssues bool Since time.Time Milestones bool TZ *time.Location }
Options defines all available options for the application
type Query ¶
type Query struct { Repository struct { IssueConnection IssueConnection `graphql:"issues(first: $count, after: $issueCursor, filterBy: $filterBy)"` } `graphql:"repository(owner: $owner, name: $name)"` }
Query is the query executed against the github v4 api
type QueryComments ¶
type QueryComments struct { Repository struct { Issue Issue `graphql:"issue(number: $issueNumber)"` } `graphql:"repository(owner: $owner, name: $name)"` }
QueryComments is the query executed against the github v4 api
Click to show internal directories.
Click to hide internal directories.