Documentation ¶
Index ¶
- Constants
- func NewGitHubProvider() (gitprovider.GitProviderService, error)
- type GitHubProvider
- func (g *GitHubProvider) CreatePullRequest(ctx context.Context, repoURL string, opts gitprovider.CreatePullRequestOpts) (*gitprovider.PullRequest, error)
- func (g *GitHubProvider) GetPullRequest(ctx context.Context, repoURL string, id int64) (*gitprovider.PullRequest, error)
- func (g *GitHubProvider) IsPullRequestMerged(ctx context.Context, repoURL string, id int64) (bool, error)
- func (g *GitHubProvider) ListPullRequests(ctx context.Context, repoURL string, opts gitprovider.ListPullRequestOpts) ([]*gitprovider.PullRequest, error)
- func (g *GitHubProvider) WithAuthToken(token string) gitprovider.GitProviderService
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 (*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
Click to show internal directories.
Click to hide internal directories.