Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Clone ¶
func Clone(cfg *config.AssignmentConfig, noSpinner bool)
func GetAuth ¶
func GetAuth() (ssh.AuthMethod, error)
func ProjectRepoUrl ¶ added in v2.4.0
func ProjectRepoUrl(cfg *config.AssignmentConfig, suffix string) string
func PushBranch ¶ added in v2.4.0
func PushBranch(assignmentCfg *config.AssignmentConfig, projectname string, sourceRepo *SourceRepo, toBranch string, force bool, project *gitlab.Project) error
Types ¶
type SourceRepo ¶ added in v2.4.0
type SourceRepo struct {
Repo *git.Repository
Ref plumbing.ReferenceName
Auth ssh.AuthMethod
}
func CloneBranch ¶ added in v2.4.0
func CloneBranch(url, fromBranch string, singleCommit bool, commitMessage string) (*SourceRepo, error)
func PrepareSourceRepo ¶ added in v2.4.0
func PrepareSourceRepo(url, fromBranch string) (*SourceRepo, error)
Click to show internal directories.
Click to hide internal directories.