Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BitbucketCodeHostingDriver ¶
type BitbucketCodeHostingDriver struct{}
BitbucketCodeHostingDriver provides functionality for working with repositories hosted on Bitbucket
func (BitbucketCodeHostingDriver) GetNewPullRequestURL ¶
func (driver BitbucketCodeHostingDriver) GetNewPullRequestURL(repository string, branch string, parentBranch string) string
GetNewPullRequestURL returns the URL of the page to create a new pull request on Bitbucket
func (BitbucketCodeHostingDriver) GetRepositoryURL ¶
func (driver BitbucketCodeHostingDriver) GetRepositoryURL(repository string) string
GetRepositoryURL returns the URL where the given repository can be found on Bitbucket.com
type CodeHostingDriver ¶
type CodeHostingDriver interface {
GetRepositoryURL(repository string) string
GetNewPullRequestURL(repository string, branch string, parentBranch string) string
}
CodeHostingDriver defines the interface of drivers for the different code hosting services
func GetCodeHostingDriver ¶
func GetCodeHostingDriver() CodeHostingDriver
GetCodeHostingDriver returns an instance of the code hosting driver to use for the repository in the current working directory
type GithubCodeHostingDriver ¶
type GithubCodeHostingDriver struct{}
GithubCodeHostingDriver provides tools for working with repositories hosted on Github
func (GithubCodeHostingDriver) GetNewPullRequestURL ¶
func (driver GithubCodeHostingDriver) GetNewPullRequestURL(repository string, branch string, parentBranch string) string
GetNewPullRequestURL returns the URL of the page to create a new pull request on Github
func (GithubCodeHostingDriver) GetRepositoryURL ¶
func (driver GithubCodeHostingDriver) GetRepositoryURL(repository string) string
GetRepositoryURL returns the URL of the given repository on github.com
type GitlabCodeHostingDriver ¶
type GitlabCodeHostingDriver struct{}
GitlabCodeHostingDriver provides tools for working with repositories on Gitlab.
func (GitlabCodeHostingDriver) GetNewPullRequestURL ¶
func (driver GitlabCodeHostingDriver) GetNewPullRequestURL(repository string, branch string, parentBranch string) string
GetNewPullRequestURL returns the URL of the page to create a new pull request on Gitlab
func (GitlabCodeHostingDriver) GetRepositoryURL ¶
func (driver GitlabCodeHostingDriver) GetRepositoryURL(repository string) string
GetRepositoryURL returns the URL of the given repository on Gitlab