pr

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2017 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UpdateMessage

func UpdateMessage(ed editor.Editor, pr *github.PullRequest) error

UpdateMessage uses the given editor to edit the commit message of the given PR.

Types

type LandRequest

type LandRequest struct {
	// PullRqeuest to land
	PullRequest *github.PullRequest

	// Name of the local branch that points to this PR or an empty string if a
	// local branch for this PR is not known.
	LocalBranch string

	// Editor to use for editing the commit message.
	Editor editor.Editor
}

LandRequest is a request to land the given pull request.

type RebaseRequest added in v0.2.0

type RebaseRequest struct {
	PullRequests []*github.PullRequest
	Base         string
}

RebaseRequest is a request to rebase the given list of pull requests and their dependencies onto the given base branch.

If the base branch for the given PRs on GitHub is not the same as Base, this will be updated too.

type Service

type Service struct {
	GitHub gateway.GitHub
	Git    gateway.Git
}

Service TODO

func (*Service) Land

func (s *Service) Land(req *LandRequest) error

Land the given pull request.

func (*Service) Rebase added in v0.2.0

func (s *Service) Rebase(req *RebaseRequest) (err error)

Rebase a pull request and its dependencies.

Jump to

Keyboard shortcuts

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