project

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: MIT Imports: 37 Imported by: 0

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

func New

func New() common.Basic

Types

This section is empty.

Jump to

Keyboard shortcuts

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