helpers

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SyncAllUsageText = `
This process will pull all repositories associated with a User or Organization
and perform the sync label action on all qualifying repositories.

A repository qualifies for label sync if is is NOT archived and NOT a fork.
` + customConfigText
View Source
var SyncRepoUsageText = `
This process will perform the sync label action on all a single repository
provided via the ` + "`--repo, r`" + ` flag.
` + customConfigText

Functions

func DetermineConfig

func DetermineConfig(c *cli.Context) (*types.Config, error)

func ExtractQualifiedRepos

func ExtractQualifiedRepos(repos []*github.Repository) []*types.Repo

ExtractQualifiedRepos ensures we only action on non-archived and non-fork repos

func GetAllRepos

func GetAllRepos(c *cli.Context, client *types.Client) []*github.Repository

GetAllRepos retrieves all repos for an Organization or User

func GetDefaultConfig

func GetDefaultConfig() string

func SyncLabels

func SyncLabels(repo *types.Repo, client *types.Client, labels *types.Config, id int) error

SyncLabels will apply the provided Labels Config to a given repo.

func ValidateOrgUserArgs

func ValidateOrgUserArgs(c *cli.Context) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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