github

package
v1.5.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface added in v1.3.0

type Interface interface {
	CompareCommits(branch1 *gogithub.Branch, branch2 *gogithub.Branch) (*gogithub.CommitsComparison, error)
	CreateBranch(branchName string, target *gogithub.Reference) error
	CreatePullRequest(head, base string) (*gogithub.PullRequest, error)
	DeleteBranch(branchName string, force bool) error
	GetBranch(branchName string) (*gogithub.Branch, int, error)
	GetBranchRef(branchName string) (*gogithub.Reference, error)
	ListPullRequests() ([]*gogithub.PullRequest, error)
	MergeBranches(base, head string) (bool, error)
	MergePullRequest(pr int) (int, error)
}

func Mock

func Mock(
	owner, repo string,
	reconcileBranchExists, targetAhead, mergeSuccessful bool,
) (Interface, error)

func New

func New(ctx context.Context, token, owner, repo, baseURL string, isEnterprise bool) (Interface, error)

Jump to

Keyboard shortcuts

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