githubclient

package module
v0.0.0-...-8b112b3 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2025 License: GPL-3.0 Imports: 7 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.

README

github-client

License

GPLv3

Author

Benjamin Toll

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateBlob

func CreateBlob(g *GitHubClient, content string) (*github.Blob, error)

func CreateCommit

func CreateCommit(g *GitHubClient, parent *github.RepositoryCommit, tree *github.Tree) (*github.Commit, error)

func CreateFork

func CreateFork(g *GitHubClient) (*github.Repository, error)

func CreatePullRequest

func CreatePullRequest(g *GitHubClient, title, body string) (*github.PullRequest, error)

func CreateReference

func CreateReference(g *GitHubClient, baseRef *github.Reference) (*github.Reference, error)

func CreateRepository

func CreateRepository(g *GitHubClient) (*github.Repository, error)

func CreateTree

func CreateTree(g *GitHubClient, sha string, entries []*github.TreeEntry) (*github.Tree, error)

func DeleteReference

func DeleteReference(g *GitHubClient) error

func DeleteRepository

func DeleteRepository(g *GitHubClient) error

func GetBlob

func GetBlob(g *GitHubClient, sha string) (*github.Blob, error)

func GetBlobContent

func GetBlobContent(g *GitHubClient, sha string) ([]byte, error)

func GetBranch

func GetBranch(g *GitHubClient, branch string) (*github.Branch, error)

func GetCommit

func GetCommit(g *GitHubClient, sha string) (*github.RepositoryCommit, error)

func GetOrganization

func GetOrganization(g *GitHubClient) (*github.Organization, error)

func GetPullRequestTemplate

func GetPullRequestTemplate(g *GitHubClient, sha string) ([]byte, error)

func GetReference

func GetReference(g *GitHubClient) (*github.Reference, error)

func GetTree

func GetTree(g *GitHubClient, sha string) (*github.Tree, error)

func ListByOrg

func ListByOrg(g *GitHubClient) ([]*github.Repository, error)

func ListForks

func ListForks(g *GitHubClient) ([]*github.Repository, error)

func ListRepositories

func ListRepositories(g *GitHubClient) ([]*github.Repository, error)

func UpdateReference

func UpdateReference(g *GitHubClient, baseRef *github.Reference) (*github.Reference, error)

Types

type GitHubClient

type GitHubClient struct {
	Upstream   string
	Owner      string
	Repository string
	Branch     string
	Path       string
	Message    string
	Paginate   bool
}

Jump to

Keyboard shortcuts

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