prs

package
v0.0.0-...-50db23e Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2016 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PullRequest

type PullRequest interface {
	ID() string
	Author() string
	Body() string
	Title() string
	Open() bool
	Merged() bool
	Labels() []labels.Label
	Milestone() milestone.Milestone
	Reviewers() []string
	CreatedAt() time.Time
	UpdatedAt() time.Time
	String() string

	//TODO add expensive methods for fetching richer objects here
	NumberOfCommits() int
	NumberOfAdditions() int
	NumberOfDeletions() int
	NumberOfChangedFiles() int
	NumberOfComments() int
}

A PullRequestWithoutComments contains basic information about a GitHub pull request

func New

func New(rawJSON []byte) ([]PullRequest, error)

New returns a slice of PullRequestWithoutComments from raw JSON

Directories

Path Synopsis
This file was generated by counterfeiter
This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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