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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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