Documentation ¶
Overview ¶
Package source provides a tools to use version control systems.
Package source provides a tools to use version control systems.
Index ¶
Constants ¶
View Source
const (
// RepoDir defines a directory to clone and extract repository.
RepoDir = "/tmp/ci_checker"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GHProvider ¶
type GHProvider struct {
// contains filtered or unexported fields
}
GHProvider declares GitHub code provider.
func NewCodeProvider ¶
func NewCodeProvider(ctx context.Context, cfg *Config) *GHProvider
NewCodeProvider create a new code provider
type Opts ¶
type Opts struct { Owner string `json:"owner"` Repo string `json:"repo"` Ref string `json:"ref"` Branch string `json:"branch"` BranchLink string `json:"branch_link"` Commit string `json:"commit"` CommitLink string `json:"commit_link"` RequestLink string `json:"request_link"` DiffLink string `json:"diff_link"` }
Opts declares repository options.
Click to show internal directories.
Click to hide internal directories.