Documentation ¶
Index ¶
- Constants
- func NewGitHubProvider(repoURL string, opts *gitprovider.GitProviderOptions) (gitprovider.GitProviderService, error)
- type GitHubProvider
- func (g *GitHubProvider) CreatePullRequest(ctx context.Context, opts gitprovider.CreatePullRequestOpts) (*gitprovider.PullRequest, error)
- func (g *GitHubProvider) GetPullRequest(ctx context.Context, id int64) (*gitprovider.PullRequest, error)
- func (g *GitHubProvider) IsPullRequestMerged(ctx context.Context, id int64) (bool, error)
- func (g *GitHubProvider) ListPullRequests(ctx context.Context, opts gitprovider.ListPullRequestOpts) ([]*gitprovider.PullRequest, error)
Constants ¶
View Source
const (
GitProviderServiceName = "github"
)
Variables ¶
This section is empty.
Functions ¶
func NewGitHubProvider ¶
func NewGitHubProvider( repoURL string, opts *gitprovider.GitProviderOptions, ) (gitprovider.GitProviderService, error)
Types ¶
type GitHubProvider ¶
type GitHubProvider struct {
// contains filtered or unexported fields
}
func (*GitHubProvider) CreatePullRequest ¶
func (g *GitHubProvider) CreatePullRequest( ctx context.Context, opts gitprovider.CreatePullRequestOpts, ) (*gitprovider.PullRequest, error)
func (*GitHubProvider) GetPullRequest ¶
func (g *GitHubProvider) GetPullRequest( ctx context.Context, id int64, ) (*gitprovider.PullRequest, error)
func (*GitHubProvider) IsPullRequestMerged ¶
func (*GitHubProvider) ListPullRequests ¶
func (g *GitHubProvider) ListPullRequests( ctx context.Context, opts gitprovider.ListPullRequestOpts, ) ([]*gitprovider.PullRequest, error)
Click to show internal directories.
Click to hide internal directories.