Help us shape the future of Go! Take the 2026 Go Developer Survey

github

package
v0.23.1 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 License: Apache-2.0 Imports: 13 Imported by: 3

Documentation

Index

Constants

View Source
const (
	OKToTestCommentRegexp = `(^|\n)\/ok-to-test(\r\n|\r|\n|$)`
)

Variables

View Source
var ErrInvalidContentType = errors.New("form parameter encoding not supported, please change the hook to send JSON payloads")

ErrInvalidContentType is returned when the content-type is not a JSON body.

Functions

func MatchRegexp added in v0.23.0

func MatchRegexp(reg, comment string) bool

Types

type Interceptor

type Interceptor struct {
	SecretGetter interceptors.SecretGetter
}

func NewInterceptor

func NewInterceptor(sg interceptors.SecretGetter) *Interceptor

func (*Interceptor) Process added in v0.11.0

type OwnersConfig added in v0.23.0

type OwnersConfig struct {
	Approvers []string `json:"approvers,omitempty"`
	Reviewers []string `json:"reviewers,omitempty"`
}

type OwnersPayloadDetails added in v0.23.0

type OwnersPayloadDetails struct {
	PrNumber         int
	Sender           string
	Owner            string
	Repository       string
	IssueCommentBody string
}

Jump to

Keyboard shortcuts

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