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 ¶
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.
Click to show internal directories.
Click to hide internal directories.