githubapi

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GitHubAPIBaseURLPath = "/api-v3"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GitHubAPI added in v1.0.1

type GitHubAPI struct {
	Client *github.Client
}

func NewGitHubAPI added in v1.0.1

func NewGitHubAPI(ctx context.Context, auth string) (*GitHubAPI, error)

func (*GitHubAPI) ListForks added in v1.0.1

func (api *GitHubAPI) ListForks(ctx context.Context, owner string, repo string,
	opts *github.RepositoryListForksOptions) ([]*github.Repository, error)

ListForks lists the forks of the specified repository.

func (*GitHubAPI) ListOrganizations added in v1.0.1

func (api *GitHubAPI) ListOrganizations(ctx context.Context, username string,
	opts *github.ListOptions) ([]*github.Organization, error)

func (*GitHubAPI) ListRepositories added in v1.0.1

func (api *GitHubAPI) ListRepositories(ctx context.Context, user string,
	opts *github.RepositoryListOptions) ([]*github.Repository, error)

ListRepositories list the repositories of the specified user.

func (*GitHubAPI) MergeUpstream added in v1.0.1

func (api *GitHubAPI) MergeUpstream(ctx context.Context, owner string, repo string,
	branch string) (*github.RepoMergeUpstreamResult, error)

MergeUpstream merges the upstream repository into the fork for the specified branch.

func (*GitHubAPI) MergeUpstreamFork added in v1.0.1

func (api *GitHubAPI) MergeUpstreamFork(ctx context.Context, repoOwner string,
	repoName string, repoBranch string, verbose bool) error

func (*GitHubAPI) SyncForks added in v1.0.1

func (api *GitHubAPI) SyncForks(ctx context.Context, userName string, verboseFlag bool, debugFlag bool) error

Jump to

Keyboard shortcuts

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