repository

package
v0.0.0-...-97ef875 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnknownRepository = xerrors.New("unknown repository")
)

Functions

This section is empty.

Types

type Repository

type Repository interface {
	OnPush(event *github.PushEvent) error

	OnCheckSuite(event *github.CheckSuiteEvent) error

	OnCreate(event *github.CreateEvent) error

	FullName() string
}

Repository handles webhook events for each repository

type RepositoryBundler

type RepositoryBundler struct {
	// contains filtered or unexported fields
}

func NewRepositoryBundler

func NewRepositoryBundler() *RepositoryBundler

func (*RepositoryBundler) OnCheckSuite

func (rb *RepositoryBundler) OnCheckSuite(event *github.CheckSuiteEvent) error

func (*RepositoryBundler) OnCreate

func (rb *RepositoryBundler) OnCreate(event *github.CreateEvent) error

func (*RepositoryBundler) OnPush

func (rb *RepositoryBundler) OnPush(event *github.PushEvent) error

func (*RepositoryBundler) RegisterRepository

func (rb *RepositoryBundler) RegisterRepository(repository Repository)

RegisterRepository registers a new target repository to update code

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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