github

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2018 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewWithEnv

func NewWithEnv() (*serviceImpl, error)

Types

type PullRequest

type PullRequest = github.PullRequest

type Repository

type Repository interface {
	GetFullName() string
	GetSSHURL() string
}

type RepositoryName

type RepositoryName struct {
	FullName string
}

func (*RepositoryName) Owner

func (r *RepositoryName) Owner() (string, error)

func (*RepositoryName) Repo

func (r *RepositoryName) Repo() (string, error)

type Service

type Service interface {
	GetPullRequest(ctx context.Context, repository Repository, num int) (*PullRequest, error)
	CreateCommitStatus(ctx context.Context, repo Repository, hash plumbing.Hash, state State, description string) error
}

type State

type State = string
const (
	PENDING State = "pending"
	SUCCESS State = "success"
	ERROR   State = "error"
	FAILURE State = "failure"
)

type Status

type Status = github.RepoStatus

Directories

Path Synopsis
Package mock_github is a generated GoMock package.
Package mock_github is a generated GoMock package.

Jump to

Keyboard shortcuts

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