github

package
v0.0.0-...-6b22c2a Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAuthTokenClient

func NewAuthTokenClient(accessToken string) *http.Client

Types

type GithubClient

type GithubClient struct {
	Context context.Context
	*gogithub.Client
}

func NewClient

func NewClient(accessToken string) *GithubClient

func NewEnterpriseClient

func NewEnterpriseClient(baseURL string, accessToken string) *GithubClient

func (*GithubClient) CreatePullRequest

func (c *GithubClient) CreatePullRequest(owner, repo string, title string, commitBranch string, baseBranch string, description string) (*gogithub.PullRequest, error)

func (*GithubClient) GenerateTree

func (c *GithubClient) GenerateTree(owner, repo string, sourceFiles string, ref *gogithub.Reference) (tree *gogithub.Tree, err error)

func (*GithubClient) GetCommitBranchReference

func (c *GithubClient) GetCommitBranchReference(owner, repo string, baseBranch string, commitBranch string) (ref *gogithub.Reference, err error)

func (*GithubClient) PushCommit

func (c *GithubClient) PushCommit(owner, repo string, authorName string, authorEmail string, commitMessage string, ref *gogithub.Reference, tree *gogithub.Tree) (commit *gogithub.Commit, err error)

Jump to

Keyboard shortcuts

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