github

package
v0.0.0-...-aefb0d4 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Clone(repoURI string, dir string) (*git.Repository, error)
	Commit(r *git.Repository, msg string) error
	Push(r *git.Repository) error
	PullRequest(owner, repo, title, head, body, baseBranch string) (string, error)
	ListRepoIssuesSince(owner, repo string, since time.Time, state string, labels []string) ([]*github.Issue, error)
	ListRepoIssues(owner, repo string, state string, labels []string) ([]*github.Issue, error)
}

Client is a interface that handle about github

func NewGitHubClient

func NewGitHubClient(baseURL string, token string, user string, mail string) (Client, error)

NewGitHubClient create GitHubClient implementation

Jump to

Keyboard shortcuts

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