{"modulePath":"github.com/giantswarm/mcli","version":"v0.3.72","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package github\n\n## Constants\n\n```go\nconst (\n\tMaxRedirects          = 10\n\tActionNoChangesMarker = \"# No changes\"\n)\n```\n\n## Variables\n\n```go\nvar ErrInvalidFormat = errors.New(\"invalid format\")\n```\n\n```go\nvar ErrNotFound = errors.New(\"not found\")\n```\n\n## Functions\n\n```go\nfunc IsNotFound(err error) bool\n```\n\n## Types\n\n```go\ntype Config struct {\n\tToken string\n}\n```\n\n```go\ntype Github struct {\n\t*github.Client\n\tGraph *githubv4.Client\n}\n```\n\n```go\nfunc New(config Config) *Github\n```\n\n```go\ntype Repository struct {\n\t*Github\n\tName         string\n\tOrganization string\n\tBranch       string\n}\n```\n\n```go\nfunc (r *Repository) AddCollaborator(ctx context.Context, slug string, permission string) error\n```\n\n```go\nfunc (r *Repository) Check(ctx context.Context) error\n```\n\n```go\nfunc (r *Repository) CheckBranch(ctx context.Context) error\n```\n\n```go\nfunc (r *Repository) CheckOrganization(ctx context.Context) error\n```\n\n```go\nfunc (r *Repository) CheckRepository(ctx context.Context) error\n```\n\n```go\nfunc (r *Repository) CreateBranch(ctx context.Context, mainbranch string) error\n```\n\n```go\nfunc (r *Repository) CreateDirectory(ctx context.Context, content map[string]string, message string) error\n```\n\n```go\nfunc (r *Repository) CreateFile(ctx context.Context, content []byte, path string) error\n```\n\n```go\nfunc (r *Repository) CreatePrivateRepo(ctx context.Context, description string, template string) error\n```\n\n```go\nfunc (r *Repository) CreatePullRequest(ctx context.Context, title string, base string) error\n```\n\n```go\nfunc (r *Repository) FileExists(ctx context.Context, path string) (bool, error)\n```\n\n```go\nfunc (r *Repository) GetDirectory(ctx context.Context, path string) (map[string]string, error)\n```\n\n```go\nfunc (r *Repository) GetFile(ctx context.Context, path string) (string, error)\n```\n\n```go\nfunc (r *Repository) GetFileSHA(ctx context.Context, path string) (string, error)\n```\n\n```go\nfunc (r *Repository) GetStringFromFile(file *github.RepositoryContent) (string, error)\n```\n\n```go\nfunc (r *Repository) PullRequestExists(ctx context.Context, title string) (bool, error)\n```\n\n```go\nfunc (r *Repository) SetupBranchProtection(ctx context.Context, branch string) error\n```\n\n","path":"github.com/giantswarm/mcli/pkg/github","name":"github","synopsis":"","isRedistributable":true}
