Documentation
¶
Overview ¶
Package webhook provides the webhook handlers for the Vela API.
Usage:
import "github.com/go-vela/server/api/webhook"
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PostWebhook ¶
PostWebhook represents the API handler to capture a webhook from a source control provider and publish it to the configure queue.
func RenameRepository ¶ added in v0.23.0
func RenameRepository(ctx context.Context, l *logrus.Entry, db database.Interface, h *types.Hook, r *types.Repo, m *internal.Metadata) (*types.Repo, error)
RenameRepository is a helper function that takes the old name of the repo, queries the database for the repo that matches that name and org, and updates that repo to its new name in order to preserve it. It also updates the secrets associated with that repo as well as build links for the UI.
the caller is responsible for returning errors to the client.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.