Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider interface {
// RaisePullRequest will automatically create a commit, create a branch, and open a pull request, and return the URL to the PR.
RaisePullRequest(branch string, commitMessage string, path string, content []byte) (string, error)
// CreateCommit creates a commit with the given content
CreateCommit(commitMessage string, path string, content []byte) (string, error)
// GetFolders returns all available folders in the configured repository
GetFolders() ([]string, error)
// SetRepository will configure the owner and repository name for the provider. If not set, the default values from the git package will be used.
SetRepository(owner string, repository string)
}
func GetProvider ¶
func GetProvider() Provider
func GetProviderForType ¶ added in v1.1.1
Click to show internal directories.
Click to hide internal directories.