Documentation
¶
Index ¶
- Constants
- func CreateOrgRepository(provider gitprovider.Client, orgRepoRef gitprovider.OrgRepositoryRef, ...) error
- func CreatePullRequestToOrgRepo(provider gitprovider.Client, orgRepRef gitprovider.OrgRepositoryRef, ...) error
- func CreatePullRequestToUserRepo(provider gitprovider.Client, userRepRef gitprovider.UserRepositoryRef, ...) error
- func CreateUserRepository(provider gitprovider.Client, userRepoRef gitprovider.UserRepositoryRef, ...) error
- func GetGitlabProvider() (gitprovider.Client, error)
- func GithubProvider() (gitprovider.Client, error)
- func NewOrgRepositoryRef(domain, org, repoName string) gitprovider.OrgRepositoryRef
- func NewRepositoryInfo(description string, visibility gitprovider.RepositoryVisibility) gitprovider.RepositoryInfo
- func NewUserRepositoryRef(domain, user, repoName string) gitprovider.UserRepositoryRef
Constants ¶
View Source
const GITHUB_DOMAIN string = "github.com"
View Source
const GITLAB_DOMAIN string = "gitlab.com"
Variables ¶
This section is empty.
Functions ¶
func CreateOrgRepository ¶
func CreateOrgRepository(provider gitprovider.Client, orgRepoRef gitprovider.OrgRepositoryRef, repoInfo gitprovider.RepositoryInfo, opts ...gitprovider.RepositoryCreateOption) error
func CreatePullRequestToOrgRepo ¶
func CreatePullRequestToOrgRepo(provider gitprovider.Client, orgRepRef gitprovider.OrgRepositoryRef, targetBranch string, newBranch string, files []gitprovider.CommitFile, commitMessage string, prTitle string, prDescription string) error
func CreatePullRequestToUserRepo ¶
func CreatePullRequestToUserRepo(provider gitprovider.Client, userRepRef gitprovider.UserRepositoryRef, targetBranch string, newBranch string, files []gitprovider.CommitFile, commitMessage string, prTitle string, prDescription string) error
func CreateUserRepository ¶
func CreateUserRepository(provider gitprovider.Client, userRepoRef gitprovider.UserRepositoryRef, repoInfo gitprovider.RepositoryInfo, opts ...gitprovider.RepositoryCreateOption) error
func GetGitlabProvider ¶
func GetGitlabProvider() (gitprovider.Client, error)
func GithubProvider ¶
func GithubProvider() (gitprovider.Client, error)
func NewOrgRepositoryRef ¶
func NewOrgRepositoryRef(domain, org, repoName string) gitprovider.OrgRepositoryRef
func NewRepositoryInfo ¶
func NewRepositoryInfo(description string, visibility gitprovider.RepositoryVisibility) gitprovider.RepositoryInfo
func NewUserRepositoryRef ¶
func NewUserRepositoryRef(domain, user, repoName string) gitprovider.UserRepositoryRef
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.