unstablegithubref

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CheckName = "unstable-github-ref"
)

Functions

func DetectIssues added in v0.3.0

func DetectIssues(parsedWorkflow workflowtypes.GitHubWorkflow, setProgressFunc progresstypes.SetProgressFunc) ([]*issue.Issue, error)

DetectIssues will analyze the parsedWorkflow and return a list of issues

func RemediateIssue added in v0.3.0

func RemediateIssue(content string, i *issue.Issue) (string, error)

Types

type Recommended struct {
	RecommendedRefType string   `json:"recommendedRefType"`
	RecommendedRefs    []string `json:"recommendedRefs"`
}

type UnstableReason

type UnstableReason int
const (
	IsStable           UnstableReason = iota
	UnknownReason      UnstableReason = iota
	UnsupportedRef     UnstableReason = iota
	NoSpecifiedVersion UnstableReason = iota
	IsMaster           UnstableReason = iota
	IsBranch           UnstableReason = iota
	HasUnstableHistory UnstableReason = iota
	TagNotFound        UnstableReason = iota
	NotRecommendedTag  UnstableReason = iota
)

Jump to

Keyboard shortcuts

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