webhook

package
v0.23.4 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

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

func PostWebhook(c *gin.Context)

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, h *library.Hook, r *library.Repo, c *gin.Context, m *types.Metadata) (*library.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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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