github

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GitProviderServiceName = "github"
)

Variables

This section is empty.

Functions

func NewGitHubProvider

func NewGitHubProvider() (gitprovider.GitProviderService, error)

Types

type GitHubProvider

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

func (*GitHubProvider) CreatePullRequest

func (g *GitHubProvider) CreatePullRequest(
	ctx context.Context,
	repoURL string,
	opts gitprovider.CreatePullRequestOpts,
) (*gitprovider.PullRequest, error)

func (*GitHubProvider) GetPullRequest

func (g *GitHubProvider) GetPullRequest(
	ctx context.Context,
	repoURL string,
	id int64,
) (*gitprovider.PullRequest, error)

func (*GitHubProvider) IsPullRequestMerged

func (g *GitHubProvider) IsPullRequestMerged(ctx context.Context, repoURL string, id int64) (bool, error)

func (*GitHubProvider) ListPullRequests

func (g *GitHubProvider) ListPullRequests(
	ctx context.Context,
	repoURL string,
	opts gitprovider.ListPullRequestOpts,
) ([]*gitprovider.PullRequest, error)

func (*GitHubProvider) WithAuthToken

func (g *GitHubProvider) WithAuthToken(token string) (gitprovider.GitProviderService, error)

Jump to

Keyboard shortcuts

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