provider

package
v0.15.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitHubProvider

type GitHubProvider struct{}

func (GitHubProvider) AddCommentToPullREquest

func (p GitHubProvider) AddCommentToPullREquest(ctx context.Context, repo PullRequest, comment []byte)

func (GitHubProvider) ListPullRequests

func (p GitHubProvider) ListPullRequests(ctx context.Context, repo Repository) (_ []PullRequest)

type Provider

type Provider interface {
	ListPullRequests(ctx context.Context, repo Repository) []PullRequest
	AddCommentToPullREquest(ctx context.Context, repo PullRequest, comment []byte)
}

func New

func New(provider string) (Provider, error)

type PullRequest

type PullRequest struct {
	Repository Repository
	BaseBranch string
	HeadBranch string
}

type Repository

type Repository struct {
	Project string
	Org     string
	Name    string
}

Jump to

Keyboard shortcuts

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