Documentation
¶
Index ¶
- Constants
- Variables
- func IsNotFound(err error) bool
- type Config
- type Github
- type Repository
- func (r *Repository) AddCollaborator(ctx context.Context, slug string, permission string) error
- func (r *Repository) Check(ctx context.Context) error
- func (r *Repository) CheckBranch(ctx context.Context) error
- func (r *Repository) CheckOrganization(ctx context.Context) error
- func (r *Repository) CheckRepository(ctx context.Context) error
- func (r *Repository) CreateBranch(ctx context.Context, mainbranch string) error
- func (r *Repository) CreateDirectory(ctx context.Context, content map[string]string, message string) error
- func (r *Repository) CreateFile(ctx context.Context, content []byte, path string) error
- func (r *Repository) CreatePrivateRepo(ctx context.Context, description string, template string) error
- func (r *Repository) CreatePullRequest(ctx context.Context, title string, base string) error
- func (r *Repository) GetDirectory(ctx context.Context, path string) (map[string]string, error)
- func (r *Repository) GetFile(ctx context.Context, path string) (string, error)
- func (r *Repository) GetFileSHA(ctx context.Context, path string) (string, error)
- func (r *Repository) GetStringFromFile(file *github.RepositoryContent) (string, error)
- func (r *Repository) SetupBranchProtection(ctx context.Context, branch string) error
Constants ¶
View Source
const ( MaxRedirects = 10 ActionNoChangesMarker = "# No changes" )
Variables ¶
View Source
var ErrInvalidFormat = errors.New("invalid format")
View Source
var ErrNotFound = errors.New("not found")
Functions ¶
func IsNotFound ¶
Types ¶
type Repository ¶
func (*Repository) AddCollaborator ¶
func (*Repository) CheckBranch ¶
func (r *Repository) CheckBranch(ctx context.Context) error
func (*Repository) CheckOrganization ¶
func (r *Repository) CheckOrganization(ctx context.Context) error
func (*Repository) CheckRepository ¶
func (r *Repository) CheckRepository(ctx context.Context) error
func (*Repository) CreateBranch ¶
func (r *Repository) CreateBranch(ctx context.Context, mainbranch string) error
func (*Repository) CreateDirectory ¶
func (*Repository) CreateFile ¶
func (*Repository) CreatePrivateRepo ¶
func (*Repository) CreatePullRequest ¶
func (*Repository) GetDirectory ¶
func (*Repository) GetFileSHA ¶
func (*Repository) GetStringFromFile ¶
func (r *Repository) GetStringFromFile(file *github.RepositoryContent) (string, error)
func (*Repository) SetupBranchProtection ¶
func (r *Repository) SetupBranchProtection(ctx context.Context, branch string) error
Click to show internal directories.
Click to hide internal directories.