Versions in this module Expand all Collapse all v0 v0.9.1 Dec 2, 2020 Changes in this version + var ErrNoChange = errors.New("no change") + func AddSSHConfig(cfg config.PipedGit) error + func MakeCommitURL(repoURL, hash string) (string, error) + func MakeDirURL(repoURL, dir, branch string) (string, error) + func MakeFileCreationURL(repoURL, dir, branch, filename, value string) (string, error) + func NewRepo(dir, gitPath, remote, clonedBranch string) *repo + type Client interface + Clean func() error + Clone func(ctx context.Context, repoID, remote, branch, destination string) (Repo, error) + func NewClient(username, email string, logger *zap.Logger) (Client, error) + type Commit struct + AbbreviatedHash string + Author string + Body string + Committer string + CreatedAt int + Hash string + Message string + type Repo interface + ChangedFiles func(ctx context.Context, from, to string) ([]string, error) + Checkout func(ctx context.Context, commitish string) error + CheckoutPullRequest func(ctx context.Context, number int, branch string) error + Clean func() error + CommitChanges func(ctx context.Context, branch, message string, newBranch bool, ...) error + Copy func(dest string) (Repo, error) + GetClonedBranch func() string + GetCommitHashForRev func(ctx context.Context, rev string) (string, error) + GetLatestCommit func(ctx context.Context) (Commit, error) + GetPath func() string + ListCommits func(ctx context.Context, visionRange string) ([]Commit, error) + Pull func(ctx context.Context, branch string) error + Push func(ctx context.Context, branch string) error