v1

package
v0.0.0-...-42af38f Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApprovedCandidate

type ApprovedCandidate struct {
	PullRequest ApprovedPullRequest `yaml:"pullRequest"`
}

type ApprovedCandidateList

type ApprovedCandidateList struct {
	Items []ApprovedCandidate `yaml:items`
}

ApprovedCandidateList represents a list of approved candidates This is used for parsing candidate list YAML, ignoring YAML comments.

type ApprovedPullRequest

type ApprovedPullRequest struct {
	URL            string  `yaml:"url"`
	Decision       string  `yaml:"decision"`
	DecisionReason string  `yaml:"decisionReason"`
	Score          float32 `yaml:"score"`
}

type Candidate

type Candidate struct {
	yaml.CommentedMapSlice `yaml:"pullRequest"`

	Decision       string  `yaml:"-"`
	DecisionReason string  `yaml:"-"`
	PMScore        string  `yaml:"-"`
	Score          float32 `yaml:"-"`
	Description    string  `yaml:"-"`
	PullRequestURL string  `yaml:"-"`
	BugNumber      string  `yaml:"-"`
	Component      string  `yaml:"-"`
	Severity       string  `yaml:"-"`
}

Candidate represents a single pull request that is candidate for approval. This type contain pullRequest field that is used to describe the candidate metadata (bug, severity, etc) as YAML comments.

type CandidateList

type CandidateList struct {
	Items []Candidate `yaml:"items"`
}

CandidateList represets a list of candidates to approve

Jump to

Keyboard shortcuts

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