pullvet

package
v0.5.12 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultNoteRegex = "[\\*]*([^\\*\r\n:]+)[\\*]*:\\s+```[^\n]*\n((?s).*?)\n```"

Variables

This section is empty.

Functions

func GetPullRequestBody

func GetPullRequestBody(owner, repo string, prNumber int) (string, error)

Types

type Action

type Action struct {
	Labels     actions.StringSlice
	NoteTitles actions.StringSlice

	LabelMatches     actions.StringSlice
	MilestoneMatches actions.StringSlice

	NoteRegex string

	Milestone string

	AnyMilestone bool
	RequireAny   bool
	RequireAll   bool

	MinApprovals       int
	RequireApprovalsBy actions.StringSlice

	GetPullRequestBody func(string, string, int) (string, error)
}

func New

func New() *Action

func (*Action) HandlePullRequest

func (c *Action) HandlePullRequest(owner, repo string, pullRequest *github.PullRequest) error

func (*Action) Run

func (c *Action) Run() error

Jump to

Keyboard shortcuts

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