Versions in this module Expand all Collapse all v2 v2.4.0 Jul 9, 2021 Changes in this version + const RepoDir + type Config struct + Token string + Type string + type GHProvider struct + func NewCodeProvider(ctx context.Context, cfg *Config) *GHProvider + func (cp *GHProvider) Download(ctx context.Context, opts Opts, outputFile string) error + func (cp *GHProvider) Extract(file string) (string, error) + type Opts struct + Branch string + BranchLink string + Commit string + CommitLink string + DiffLink string + Owner string + Ref string + Repo string + RequestLink string + type Provider interface + Download func(ctx context.Context, opts Opts, output string) error + Extract func(file string) (sourceCodeDir string, err error)