hooks

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PreReceiveHook  = "pre-receive"
	UpdateHook      = "update"
	PostReceiveHook = "post-receive"
	PostUpdateHook  = "post-update"
)

The names of git server-side hooks.

Variables

This section is empty.

Functions

func GenerateHooks

func GenerateHooks(ctx context.Context, cfg *config.Config, repo string) error

GenerateHooks generates git server-side hooks for a repository. Currently, it supports the following hooks: - pre-receive - update - post-receive - post-update

This function should be called by the backend when a repository is created. TODO: support context

Types

This section is empty.

Jump to

Keyboard shortcuts

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