github

package
v0.0.0-...-64e8fac Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const Kind = "github"

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, config *gitconfig.Repo) (git.Helper, error)

Types

type Helper

type Helper struct {
	// contains filtered or unexported fields
}

func (Helper) GetCommit

func (h Helper) GetCommit(ctx context.Context, gitURL string, refType string, ref string) (*git.Commit, error)
func (h Helper) GetCommitHistoryLink(gitURL string, commit string) (string, error)
func (h Helper) GetHTTPLink(gitURL string) (string, error)

func (Helper) GetTagArchive

func (h Helper) GetTagArchive(ctx context.Context, gitURL, tagName string) (*git.Tag, error)

func (Helper) ListBranch

func (h Helper) ListBranch(ctx context.Context, gitURL string, params *git.SearchParams) ([]string, error)

func (Helper) ListTag

func (h Helper) ListTag(ctx context.Context, gitURL string, params *git.SearchParams) ([]string, error)

Jump to

Keyboard shortcuts

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