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: 0

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