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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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