event

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const PullRequestClosed = "closed"
View Source
const PullRequestOpened = "opened"

Variables

This section is empty.

Functions

func ParseRevision

func ParseRevision(ref string) string

Types

type ChangeInfo

type ChangeInfo struct {
	ShaBefore string
	ShaAfter  string
}

type Event

type Event interface {
	Handle(client.Client) error
}

type PullRequestEvent

type PullRequestEvent struct {
	Provider string
	URL      string
	Revision string
	Base     string
	Action   string
	ID       string
	Commit   string
}

func (*PullRequestEvent) Handle

func (e *PullRequestEvent) Handle(c client.Client) error

type PushEvent

type PushEvent struct {
	URL      string
	Revision string
	ChangeInfo
	Changes []string
}

func (*PushEvent) Handle

func (e *PushEvent) Handle(c client.Client) error

Jump to

Keyboard shortcuts

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