github

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RepoFilter added in v0.6.0

type RepoFilter struct {
	Owner        string         // The owner name. Can be a user or an organization.
	Repo         string         // The repository name when in single-repo mode.
	RepoRegexp   *regexp.Regexp // The pattern to match repository names.
	Archived     bool           // Include archived repositories.
	NoPrivate    bool           // Don't inlucde private repositories.
	NoPublic     bool           // Don't include public repositories.
	NoFork       bool           // Don't include forks.
	NoRepoRegexp *regexp.Regexp // The pattern to reject repository names.
}

RepoFilter represents criteria used to filter repositories.

type RepoFinder

type RepoFinder struct {
	Client *github.Client
}

RepoFinder finds GitHub repository given RepoFilter.

func NewRepoFinder added in v0.6.0

func NewRepoFinder(client *github.Client) *RepoFinder

NewRepoFinder creates a new RepoFinder instance.

func (*RepoFinder) Find

func (f *RepoFinder) Find(ctx context.Context, filter RepoFilter) ([]*github.Repository, error)

Find repositories using a given filter.

Jump to

Keyboard shortcuts

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