Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ListRepos = func(ctx context.Context, token, user string) ([]*github.Repository, error) { client := newGithubClient(ctx, token) repos, _, err := client.Repositories.List(ctx, "", &github.RepositoryListOptions{ Visibility: "all", Affiliation: "owner,collaborator,organization_member", }) if err != nil { return nil, repositoryI18n.ErrorListRepositories(user, err) } return repos, nil }
Var to allow override in tests
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.