Documentation ¶
Index ¶
- Constants
- func AddLabelToRepo(ctx context.Context, client *github.Client, repo *github.Repository) 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 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 NewCmdListOrgs() *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
Constants ¶
View Source
const (
OwnerTypeUser = "User"
)
Variables ¶
This section is empty.
Functions ¶
func AddLabelToRepo ¶ added in v0.2.0
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 ListRepos ¶
func ListRepos(ctx context.Context, client *github.Client, user string, opt *github.RepositoryListOptions) ([]*github.Repository, error)
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 NewCmdListOrgs ¶
func NewCmdProtect ¶
func NewCmdRelease ¶
func NewCmdStarReport ¶
func NewCmdStopWatch ¶
func NewRootCmd ¶
func ProtectBranch ¶
func ProtectRepo ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.