webhooks

package
v0.0.0-...-d42cbe4 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2023 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeliverLegacyRepoCreate

func DeliverLegacyRepoCreate(ctx context.Context, repo *model.Repository)

func DeliverLegacyRepoDeleted

func DeliverLegacyRepoDeleted(ctx context.Context, repo *model.Repository)

func DeliverLegacyRepoUpdate

func DeliverLegacyRepoUpdate(ctx context.Context, repo *model.Repository)

func DeliverRepoEvent

func DeliverRepoEvent(ctx context.Context,
	event model.WebhookEvent, repository *model.Repository)

Types

type RepoWebhookPayload

type RepoWebhookPayload struct {
	ID          int       `json:"id"`
	Created     time.Time `json:"created"`
	Updated     time.Time `json:"updated"`
	Name        string    `json:"name"`
	Description *string   `json:"description"`
	Visibility  string    `json:"visibility"`

	Owner struct {
		CanonicalName string `json:"canonical_name"`
		Name          string `json:"name"`
	} `json:"owner"`
}

Jump to

Keyboard shortcuts

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