fakegithub

package
v0.0.0-...-a4d4041 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeGithubClient

type FakeGithubClient struct {
	ProtectedBranches   []github.Branch
	UnprotectedBranches []github.Branch
}

FakeGithubClient fakes the prow GitHubClient

func (*FakeGithubClient) AddLabels

func (g *FakeGithubClient) AddLabels(_, _ string, _ int, _ ...string) error

AddLabels is a fake for AddLabels

func (*FakeGithubClient) CreatePullRequest

func (g *FakeGithubClient) CreatePullRequest(_, _, _, _, _, _ string, _ bool) (int, error)

CreatePullRequest is a fake for CreatePullRequest

func (*FakeGithubClient) EnsureFork

func (g *FakeGithubClient) EnsureFork(_, _, repo string) (string, error)

EnsureFork is a fake for EnsureFork

func (*FakeGithubClient) GetBranches

func (g *FakeGithubClient) GetBranches(_, _ string, onlyProtected bool) ([]github.Branch, error)

GetBranches is a fake for GetBranches

func (*FakeGithubClient) GetPullRequests

func (g *FakeGithubClient) GetPullRequests(_, _ string) ([]github.PullRequest, error)

GetPullRequests is a fake for GetPullRequests

Jump to

Keyboard shortcuts

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