github

package
v0.0.34 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const MaxEventSize = 64 * 1024

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Integration string `json:"integration"`
	Repository  string `json:"repository"`
	EventType   string `json:"eventType"`
}

type GitHub

type GitHub struct{}

func (*GitHub) Actions

func (g *GitHub) Actions() []core.Action

func (*GitHub) Color

func (g *GitHub) Color() string

func (*GitHub) Configuration

func (g *GitHub) Configuration() []configuration.Field

func (*GitHub) Description

func (g *GitHub) Description() string

func (*GitHub) HandleAction

func (g *GitHub) HandleAction(ctx core.TriggerActionContext) (map[string]any, error)

func (*GitHub) HandleWebhook

func (g *GitHub) HandleWebhook(ctx core.WebhookRequestContext) (int, error)

func (*GitHub) Icon

func (g *GitHub) Icon() string

func (*GitHub) Label

func (g *GitHub) Label() string

func (*GitHub) Name

func (g *GitHub) Name() string

func (*GitHub) Setup

func (g *GitHub) Setup(ctx core.TriggerContext) error

type Metadata

type Metadata struct {
	Repository *Repository `json:"repository"`
}

type Repository

type Repository struct {
	ID   string `json:"id"`
	Name string `json:"name"`
	URL  string `json:"url"`
}

Jump to

Keyboard shortcuts

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