Documentation ¶
Index ¶
- Constants
- Variables
- func CloneRepo(gitURL string) (string, error)
- func CommitChanges(repoDir, message string) error
- func GetDefaultBranch(repoDir string) string
- func GetOriginURL() (string, error)
- func PushBranch(repoDir, branchName string) error
- func RemoveRepo(path string) error
- func UpdateCommitter(gitURL, dirPath string) error
Constants ¶
View Source
const (
DefaultDefaultBranch = "main"
)
Variables ¶
View Source
var (
ErrNoUserID = errors.New("app user ID is not set")
)
Functions ¶
func CommitChanges ¶
func GetDefaultBranch ¶
func GetOriginURL ¶
GetGitOriginURL returns url of `origin` remote of the current git repo
func PushBranch ¶
func RemoveRepo ¶
func UpdateCommitter ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.