Documentation
¶
Index ¶
- Constants
- func Clone(repoName string, baseBranchName string, headBranchName string)
- func Commit(repoName string, commitMsg string) error
- func Config(base_branch string) string
- func GetGitHubClient() (client *github.Client, ctx context.Context)
- func PR(repoName string, repoOwner string, title string, draft bool, baseBranch string, ...)
- func Push(repoName string, headBranchName string, deleteBranch bool)
- type CloneJob
- type ConfigInterface
- type NoChangesError
Constants ¶
View Source
const ConcurrentClones int = 3
View Source
const Script = `` /* 130-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func Commit ¶
Commits the staged changes in a repo. Returns NoChangesError if there are no staged changes in the repo.
Types ¶
type ConfigInterface ¶
type ConfigInterface struct { PR struct { RepoOwner string `yaml:"repo_owner"` BaseBranch string `yaml:"base_branch"` MaintainersModify bool `yaml:"maintainers_can_modify"` Draft bool `yaml:"draft"` Title string `yaml:"title"` Body string `yaml:"body"` Labels []string `yaml:"labels"` } `yaml:"pr"` Repos []string `yaml:"repos"` BranchName string `yaml:"branch_name"` CommitMsg string `yaml:"commit_msg"` }
func ReadConfig ¶
func ReadConfig() (config ConfigInterface)
type NoChangesError ¶
type NoChangesError struct{}
func (*NoChangesError) Error ¶
func (e *NoChangesError) Error() string
Click to show internal directories.
Click to hide internal directories.