ghammer

package
v0.0.0-...-d598d68 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCodeOwners

func GetCodeOwners(repoName string, ownerLogin string) (codeOwners []string, err error)

GetCodeOwners returns a slice of strings, that are the possible code owners for a repository

func GetV3Client

func GetV3Client() (client *githubv3.Client)

GetV3Client returns a GitHub v3 API client

func GetV4Client

func GetV4Client() (client *githubv4.Client)

GetV4Client returns a GitHub v3 API client

Types

type RepoInfo

type RepoInfo struct {
	Name       string
	OwnerLogin string
	CodeOwners []string
	Repo       *githubv3.Repository
}

RepoInfo contains basic information about a repository, as well as the repository object

func GetRepoList

func GetRepoList(listOpts RepoListOptions) (repoList []RepoInfo, err error)

GetRepoList returns a slice of RepoInfo objects

type RepoListOptions

type RepoListOptions struct {
	Limit           int
	IncludeArchived bool
}

RepoListOptions controls how the repository list is returned

Jump to

Keyboard shortcuts

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