githubapi

package
v0.0.0-...-0f89e43 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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 (g *GitHubApiDriver) CreatePullRequest(ctx context.Context, org, repo, headBranch, baseBranch, title, body string) (prNum int, err error)

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 (g *GitHubApiDriver) LabelPullRequest(ctx context.Context, org, repo string, prNum int, label string) error

func (*GitHubApiDriver) MergePullRequest

func (g *GitHubApiDriver) MergePullRequest(ctx context.Context, org, repo string, prNum int) error

Jump to

Keyboard shortcuts

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