Documentation ¶
Index ¶
- type GitHubApiDriver
- func (g *GitHubApiDriver) CreatePullRequest(ctx context.Context, org, repo, headBranch, baseBranch, title, body string) (prNum int, err error)
- func (g *GitHubApiDriver) DeleteBranch(ctx context.Context, org, repo, headBranch string) error
- func (g *GitHubApiDriver) HealthCheck() error
- func (g *GitHubApiDriver) LabelPullRequest(ctx context.Context, org, repo string, prNum int, label string) error
- func (g *GitHubApiDriver) MergePullRequest(ctx context.Context, org, repo string, prNum int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitHubApiDriver ¶
type GitHubApiDriver struct {
// contains filtered or unexported fields
}
func NewGitHubApiDriver ¶
func NewGitHubApiDriver(l *logrus.Logger, token string) *GitHubApiDriver
func (*GitHubApiDriver) CreatePullRequest ¶
func (*GitHubApiDriver) DeleteBranch ¶
func (g *GitHubApiDriver) DeleteBranch(ctx context.Context, org, repo, headBranch string) error
func (*GitHubApiDriver) HealthCheck ¶
func (g *GitHubApiDriver) HealthCheck() error
func (*GitHubApiDriver) LabelPullRequest ¶
func (*GitHubApiDriver) MergePullRequest ¶
Click to show internal directories.
Click to hide internal directories.