Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PullRequestConnection ¶
PullRequestConnection is the structure of pull request connection.
func (PullRequestConnection) FilterByAuthors ¶
func (prc PullRequestConnection) FilterByAuthors(authors []string) *PullRequestConnection
FilterByAuthors filter pull request connection by author.
func (PullRequestConnection) PrintContents ¶
func (prc PullRequestConnection) PrintContents()
PrintContents print pull request contents.
type Query ¶
type Query struct {
Repository struct {
PullRequests PullRequestConnection `graphql:"pullRequests(last:20 states:OPEN orderBy:{direction:ASC field: CREATED_AT})"`
} `graphql:"repository(owner: $owner, name: $name)"`
}
Query is the structure of GraphQL query.
type Repository ¶
Repository is the structure of repository.
func New ¶
func New(repositoryPath string) (*Repository, error)
New create the repository structure from repository path.
func (Repository) ExecuteQuery ¶
func (r Repository) ExecuteQuery(token string) (*Query, error)
ExecuteQuery execute GraphQL query to Github.
Click to show internal directories.
Click to hide internal directories.