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

approve

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: Apache-2.0 Imports: 9 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

func (*Handler) Name added in v0.4.2

func (h *Handler) Name() string

Name returns a name of the approval plugin

Jump to

Keyboard shortcuts

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