Documentation
¶
Index ¶
Constants ¶
View Source
const ( LogLevelInfo = 0 LogLevelDebug = -4 LogLevelWarn = 4 LogLevelError = 8 )
Variables ¶
This section is empty.
Functions ¶
func ParseFlags ¶
func ParseFlags(f *Flags)
func SetupLoggingStdout ¶
func ValidateFlags ¶
Types ¶
type Flags ¶
type Flags struct {
// required
GithubToken string // set by env var GITHUB_TOKEN
Org string
Cmd string
// optional
Repos string // comma-separated list of repositories
BaseURL string // default: github.com
DefaultBranch string // default: taken from api
PRTitle string
PRBody string
PRBranch string
PRCommitMsg string
Parallel int
NoInteractive bool
Dry bool
LogLevel int
Version bool
}
type GithubHandler ¶
type GithubHandler struct {
// contains filtered or unexported fields
}
func NewGithubHandler ¶
func NewGithubHandler(flags Flags) (*GithubHandler, error)
func (*GithubHandler) GetRepos ¶
func (h *GithubHandler) GetRepos() ([]string, error)
func (*GithubHandler) Handle ¶
func (h *GithubHandler) Handle(repo string) error
Click to show internal directories.
Click to hide internal directories.