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 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.

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