github

package
v0.0.0-...-782204f Latest Latest
Warning

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

Go to latest
Published: May 16, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetUserCommits

func GetUserCommits(commits []*go_github.RepositoryCommit, authors []string) []*go_github.RepositoryCommit

Types

type BranchList

type BranchList struct {
	Branches []string
}

type Client

type Client interface {
	ListRepoCommits(ListRepoCommitsOpts) (*CommitList, error)
	ListRepos(string) ([]string, error)
	ListRepoBranches(string, string) (*BranchList, error)
	GetCommitContentDiff(*github.RepositoryCommit, string, string) (string, error)
	GetLatestReleaseOrZero(string, string) (string, error)
	GetUserSignatures(string) ([]string, error)
}

func NewClient

func NewClient(ctx context.Context, logger *pterm.Logger, opts ClientOpts) (Client, error)

type ClientOpts

type ClientOpts struct {
	Token         string
	EnterpriseURL string
}

type CommitList

type CommitList struct {
	Commits []*go_github.RepositoryCommit
}

func (*CommitList) Append

func (cl *CommitList) Append(from *CommitList)

type ListRepoCommitsOpts

type ListRepoCommitsOpts struct {
	Org        string
	Repo       string
	Authors    []string
	Branches   []string
	UniqueOnly bool
	Since      time.Time
	Until      time.Time
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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