gitea

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(baseURL, token string, hc *http.Client) forge.Forge

New creates a Gitea/Forgejo forge backend.

func ParseWebhook added in v0.11.0

func ParseWebhook(r *http.Request, secret string) (*forge.WebhookEvent, error)

ParseWebhook verifies and parses a Gitea or Forgejo webhook delivery. When secret is non-empty the X-Forgejo-Signature or X-Gitea-Signature header must match the JSON payload, which is what both servers sign whether it arrives as a JSON body, a form body or a GET query parameter.

Types

This section is empty.

Jump to

Keyboard shortcuts

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