preve

package module
v0.0.0-...-72431e1 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2020 License: MIT Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

preve

preve is concourse custom resource for github pull reqeust.

Author

Nao Yonashiro (@orisano)

License

MIT

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsOlderVersion

func IsOlderVersion(current, version *Version) bool

func IsValidPullRequestAction

func IsValidPullRequestAction(action string) bool

func MustGitHubClient

func MustGitHubClient(baseURL string) *github.Client

func NewValidator

func NewValidator() *validator.Validate

Types

type MetadataField

type MetadataField struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

type Source

type Source struct {
	Repo string `json:"repo" validate:"repository"`
	When string `json:"when" validate:"pr_action"`

	BaseURL string `json:"base_url" validate:"omitempty,url"` // for GitHub Enterprise
}

type Version

type Version struct {
	EventID       string `json:"event_id" validate:"required"`
	PullRequestID string `json:"pull_request_id" validate:"required"`
}

Directories

Path Synopsis
cmd
check command
in command

Jump to

Keyboard shortcuts

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