pullrequest

package
v0.0.0-...-fdf59ed Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration interface {
	GithubToken() string
	BaseBranch() string
}

Configuration .

type Creator

type Creator interface {
	AlreadyCreated(ctx context.Context, branch string) (bool, error)
	Create(ctx context.Context, update *orb.Update, message, baseBranch string) error
}

Creator of Pull Request

func NewGitHubPullRequest

func NewGitHubPullRequest(ctx context.Context, r Registry, c Configuration) Creator

NewGitHubPullRequest .

type GitHubPullRequest

type GitHubPullRequest struct {
	// contains filtered or unexported fields
}

GitHubPullRequest .

func (*GitHubPullRequest) AlreadyCreated

func (g *GitHubPullRequest) AlreadyCreated(ctx context.Context, branch string) (bool, error)

AlreadyCreated Pull Request or not

func (*GitHubPullRequest) Create

func (g *GitHubPullRequest) Create(ctx context.Context, update *orb.Update, message, baseBranch string) error

Create Pull Request on GitHub

type GitRepository

type GitRepository interface {
	Owner() string
	Name() string
}

GitRepository .

type Registry

type Registry interface {
	VCSRepository() GitRepository
}

Registry .

Jump to

Keyboard shortcuts

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