utils

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnvLoadError

func EnvLoadError(env string, envName string)

func GetFileType

func GetFileType(filename string) string

GetFileType returns the content type of the file.

func GetPREvent added in v1.0.0

func GetPREvent() *github.PullRequestEvent

func GetPushEvent added in v1.0.0

func GetPushEvent() *github.PushEvent

func GetURL added in v0.4.0

func GetURL(bucket string) string

func ParseGithubEvent added in v1.0.0

func ParseGithubEvent() interface{}

func RunCommand added in v0.4.0

func RunCommand(command string) error

Execute runs the process with the supplied environment.

Types

type ProjectInfo added in v0.4.0

type ProjectInfo struct {
	PrNumber     int
	RepoOwner    string
	Branch       string
	RepoName     string
	DistFolder   string
	Bucket       string
	IsBuild      bool
	CloudfrontId string // cloud front distribution id
}

func GetInfo added in v0.4.0

func GetInfo(repo ProjectInfo, action string) ProjectInfo

func GetPRInfo added in v0.3.0

func GetPRInfo(repo ProjectInfo) ProjectInfo

Jump to

Keyboard shortcuts

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