Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitializeGitSettings ¶
InitializeGitSettings ensures Git auth is set up for cloning
Types ¶
type Repo ¶
type Repo struct { BaseRef string // base ref is the branch that the PR is being merged into HeadRef string // head ref is the branch that the PR is coming from DefaultBranch string // Some repos have default branches we need to capture RepoDir string // The directory where the repo is cloned Remote string // Remote address CloneURL string // Where we clone the repo from Name string // Name of the repo Owner string // Owner of the repo (in Gitlab this is the namespace) CheckID int // MR/PR id that generated this Repo SHA string // SHA of the MR/PRs head FullName string // Owner/Name combined (ie zapier/kubechecks) Username string // Username of auth'd client Email string // Email of auth'd client Labels []string // Labels associated with the MR/PR }
Repo represents a local Repostiory on disk, based off of a PR/MR
func (*Repo) CloneRepoLocal ¶
func (*Repo) GetListOfChangedFiles ¶
GetListOfChangedFiles returns a list of files that have changed between the current branch and the target branch
func (*Repo) GetListOfRepoFiles ¶
GetListOfRepoFiles returns a list of all files in the local repository
Click to show internal directories.
Click to hide internal directories.