repository

package
v0.0.0-...-afec1d6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 26, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Edges

type Edges []pullRequestEdge

Edges is the structure of pull request edge.

type PullRequestConnection

type PullRequestConnection struct {
	Edges      Edges
	TotalCount int
}

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

type Repository struct {
	Owner string
	Name  string
}

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL