Documentation ¶
Index ¶
- Constants
- func AddLabelToRepo(ctx context.Context, client *github.Client, repo *github.Repository) error
- func CreateTeamIfMissing(ctx context.Context, client *github.Client, org, team string) (int64, error)
- func LabelExists(labels []*github.Label, name string) (*github.Label, bool)
- func ListBranches(ctx context.Context, client *github.Client, repo *github.Repository) ([]*github.Branch, error)
- func ListLabels(ctx context.Context, client *github.Client, repo *github.Repository) ([]*github.Label, error)
- func ListOrgs(ctx context.Context, client *github.Client, opt *github.ListOptions) ([]*github.Organization, error)
- func ListPackageVersions(ctx context.Context, client *github.Client, owner, pkg string) ([]*github.PackageVersion, error)
- func ListReleases(ctx context.Context, client *github.Client, owner, repo string) ([]*github.RepositoryRelease, error)
- func ListRepos(ctx context.Context, client *github.Client, user string, ...) ([]*github.Repository, error)
- func ListStargazers(ctx context.Context, client *github.Client, repo *github.Repository, ...) ([]*github.Stargazer, error)
- func ListWatchedRepos(ctx context.Context, client *github.Client, opt *github.ListOptions) ([]*github.Repository, error)
- func ListWatchers(ctx context.Context, client *github.Client, repo *github.Repository, ...) ([]*github.User, error)
- func NewCmdAddLabels() *cobra.Command
- func NewCmdChangelog() *cobra.Command
- func NewCmdCopyRelease() *cobra.Command
- func NewCmdDeletePackage() *cobra.Command
- func NewCmdDeleteRelease() *cobra.Command
- func NewCmdListOrgs() *cobra.Command
- func NewCmdListRepos() *cobra.Command
- func NewCmdProtect() *cobra.Command
- func NewCmdRelease() *cobra.Command
- func NewCmdStarReport() *cobra.Command
- func NewCmdStopWatch() *cobra.Command
- func NewRootCmd(version string) *cobra.Command
- func ProtectBranch(ctx context.Context, client *github.Client, owner, repo, branch string, ...) error
- func ProtectRepo(ctx context.Context, client *github.Client, repo *github.Repository) error
- func ShardOrgs(in []*github.Organization, shardIndex, shards int) []*github.Organization
- func TeamMaintainsRepo(ctx context.Context, client *github.Client, org, team, repo string) error
Constants ¶
View Source
const (
OwnerTypeUser = "User"
)
Variables ¶
This section is empty.
Functions ¶
func AddLabelToRepo ¶ added in v0.2.0
func CreateTeamIfMissing ¶ added in v0.2.11
func LabelExists ¶ added in v0.2.0
func ListBranches ¶
func ListLabels ¶ added in v0.2.0
func ListOrgs ¶
func ListOrgs(ctx context.Context, client *github.Client, opt *github.ListOptions) ([]*github.Organization, error)
func ListPackageVersions ¶ added in v0.2.14
func ListReleases ¶ added in v0.2.12
func ListStargazers ¶
func ListWatchedRepos ¶
func ListWatchedRepos(ctx context.Context, client *github.Client, opt *github.ListOptions) ([]*github.Repository, error)
func ListWatchers ¶
func NewCmdAddLabels ¶ added in v0.2.0
func NewCmdChangelog ¶
func NewCmdCopyRelease ¶ added in v0.2.12
func NewCmdDeletePackage ¶ added in v0.2.14
func NewCmdDeleteRelease ¶ added in v0.2.12
func NewCmdListOrgs ¶
func NewCmdListRepos ¶ added in v0.2.12
func NewCmdProtect ¶
func NewCmdRelease ¶
func NewCmdStarReport ¶
func NewCmdStopWatch ¶
func NewRootCmd ¶
func ProtectBranch ¶
func ProtectRepo ¶
func ShardOrgs ¶ added in v0.2.13
func ShardOrgs(in []*github.Organization, shardIndex, shards int) []*github.Organization
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.