pkgciimpl

package
v0.0.0-...-6574dfe Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(cfg *Config) error

func PkgCI

func PkgCI() *pkgCIImpl

Types

type CIRepo

type CIRepo struct {
	Org  string `json:"org"     required:"true"`
	Repo string `json:"repo"    required:"true"`
	Link string `json:"link"    required:"true"`
}

type Config

type Config struct {
	WorkDir      string  `json:"work_dir"       required:"true"`
	GitUser      GitUser `json:"user"           required:"true"`
	PRScript     string  `json:"pr_script"      required:"true"`
	CloneScript  string  `json:"clone_script"   required:"true"`
	CIRepo       CIRepo  `json:"ci_repo"        required:"true"`
	CIComment    string  `json:"ci_comment"     required:"true"`
	CIService    string  `json:"ci_service"     required:"true"`
	TargetBranch string  `json:"target_branch"  required:"true"`
}

func (*Config) SetDefault

func (cfg *Config) SetDefault()

type GitUser

type GitUser struct {
	User  string `json:"user"   required:"true"`
	Email string `json:"email"  required:"true"`
	Token string `json:"token"  required:"true"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL