event

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2026 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package event provides a type for the event that triggered the webhook.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsEnabled

func IsEnabled(eventType Type) bool

IsEnabled returns true if the event type is enabled.

Types

type Type

type Type string

Type represents the type of event that triggered the webhook.

const (
	// Push represents a push event type.
	Push Type = "push"
	// PullRequest represents a pull request event type.
	PullRequest Type = "pull_request"
	// PullRequestReview represents a pull request review event type.
	PullRequestReview Type = "pull_request_review"
	// CheckSuite represents a check suite event type.
	CheckSuite Type = "check_suite"
	// DeploymentStatus represents a deployment status event type.
	DeploymentStatus Type = "deployment_status"
	// Status represents a status event type.
	Status Type = "status"
	// WorkflowRun represents a workflow run event type.
	WorkflowRun Type = "workflow_run"
)

Jump to

Keyboard shortcuts

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