service

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2017 License: MIT Imports: 3 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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 LandResponse

type LandResponse struct {
	BranchesNotUpdated []string
}

LandResponse is the response of a land request.

type PR

type PR interface {
	// Lands a pull request
	Land(context.Context, *LandRequest) (*LandResponse, error)

	// Rebases a pull request.
	Rebase(context.Context, *RebaseRequest) (*RebaseResponse, error)
}

PR is the service that provides pull request related operations.

type RebaseRequest

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

	// If non-empy, only pull requests by the given user will be rebased.
	Author 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 RebaseResponse

type RebaseResponse struct {
	// Local branches that were not updated because their heads did not match
	// the remotes.
	BranchesNotUpdated []string
}

RebaseResponse is the response of the Rebase operation.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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