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: ? 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.

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