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

chatops

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(c client.Client) *chatOps

New is a constructor fo chatOps

Types

type Command added in v0.3.0

type Command struct {
	Type string
	Args []string
}

Command is a structure extracted by the comment body

func ExtractCommands added in v0.5.3

func ExtractCommands(comment string) []Command

ExtractCommands extracts commands (i.e. /[a-z], e.g., /test /retest /assign) from the comment body

type CommandHandler added in v0.3.0

type CommandHandler func(command Command, webhook *git.Webhook, config *cicdv1.IntegrationConfig) error

CommandHandler is a handler function type for chat ops events

Directories

Path Synopsis
plugins

Jump to

Keyboard shortcuts

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