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

approve

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CommandTypeApprove       = "approve"
	CommandTypeGitLabApprove = "ci-approve"
)

Command types for approve handler

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	Client client.Client
}

Handler is an implementation of both ChatOps Handler and Webhook Plugin for approve

func (*Handler) Handle

func (h *Handler) Handle(wh *git.Webhook, ic *cicdv1.IntegrationConfig) error

Handle handles a raw webhook

func (*Handler) HandleChatOps

func (h *Handler) HandleChatOps(command chatops.Command, webhook *git.Webhook, config *cicdv1.IntegrationConfig) error

HandleChatOps handles comment commands

Jump to

Keyboard shortcuts

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