webhook

package
v0.1.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WebhookHandler

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

func NewWebhookHandler

func NewWebhookHandler(repo repository.Repository, config *server.Config) *WebhookHandler

func (*WebhookHandler) NewPlanFromPR

func (w *WebhookHandler) NewPlanFromPR(
	team *models.Team,
	mod *models.Module,
	vcsRepo vcs.VCSRepository,
	pr vcs.VCSRepositoryPullRequest,
) error

func (*WebhookHandler) ProcessPullRequestEdited

func (w *WebhookHandler) ProcessPullRequestEdited(
	team *models.Team,
	mod *models.Module,
	vcsRepo vcs.VCSRepository,
	pr vcs.VCSRepositoryPullRequest,
) error

func (*WebhookHandler) ProcessPullRequestMerged

func (w *WebhookHandler) ProcessPullRequestMerged(
	team *models.Team,
	mod *models.Module,
	vcsRepo vcs.VCSRepository,
	pr vcs.VCSRepositoryPullRequest,
) error

func (*WebhookHandler) ProcessPullRequestOpened

func (w *WebhookHandler) ProcessPullRequestOpened(
	team *models.Team,
	mod *models.Module,
	vcsRepo vcs.VCSRepository,
	pr vcs.VCSRepositoryPullRequest,
) error

func (*WebhookHandler) ShouldTrigger

func (w *WebhookHandler) ShouldTrigger(
	mod *models.Module,
	kind models.ModuleRunKind,
	pr vcs.VCSRepositoryPullRequest,
	vcsRepository vcs.VCSRepository,
) (bool, string, error)

Jump to

Keyboard shortcuts

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