Documentation ¶
Index ¶
- func SetCredentials(cfg config.ServerConfig, vcsClient vcs.Client) error
- type Repo
- func (r *Repo) Clone(ctx context.Context) error
- func (r *Repo) GetListOfChangedFiles(ctx context.Context) ([]string, error)
- func (r *Repo) GetRemoteHead() (string, error)
- func (r *Repo) MergeIntoTarget(ctx context.Context, sha string) error
- func (r *Repo) Update(ctx context.Context) error
- func (r *Repo) Wipe()
- type RepoManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetCredentials ¶
func SetCredentials(cfg config.ServerConfig, vcsClient vcs.Client) error
SetCredentials ensures Git auth is set up for cloning
Types ¶
type Repo ¶
type Repo struct { // informational BranchName string Config config.ServerConfig CloneURL string // exposed state Directory string }
func (*Repo) GetListOfChangedFiles ¶
GetListOfChangedFiles returns a list of files that have changed between the current branch and the target branch
func (*Repo) GetRemoteHead ¶ added in v1.5.1
func (*Repo) MergeIntoTarget ¶
type RepoManager ¶
type RepoManager struct {
// contains filtered or unexported fields
}
func NewRepoManager ¶
func NewRepoManager(cfg config.ServerConfig) *RepoManager
func (*RepoManager) Cleanup ¶
func (rm *RepoManager) Cleanup()
Click to show internal directories.
Click to hide internal directories.