pullrequest

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Input

type Input struct {
	BaseRepository git.RepositoryID
	BaseBranchName git.BranchName // if empty, use the default branch of base
	HeadRepository git.RepositoryID
	HeadBranchName git.BranchName // if empty, use the default branch of head
	Title          string
	Body           string // optional
	Reviewer       string // optional
	Draft          bool
}

type Interface

type Interface interface {
	Do(ctx context.Context, in Input) error
}

type PullRequest

type PullRequest struct {
	GitHub github.Interface
	Logger logger.Interface
}

PullRequest provides the use-case to create a pull request.

func (*PullRequest) Do

func (u *PullRequest) Do(ctx context.Context, in Input) error

Directories

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

Jump to

Keyboard shortcuts

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