Skip to main content

Module gitea

Module gitea 

Source
Expand description

Gitea backend — self-hosted Gitea instances.

Codeberg piggybacks on this module (see crate::codeberg) by pinning host to codeberg.org.

§Authentication

Personal Access Token via Authorization: token <token> header (Gitea’s documented convention; unlike GitHub, Gitea rejects Bearer for PATs).

§URL shape

REST API under <host>/api/v1. The backend appends that path automatically; users supply the bare host.

§Lint exception

Same as the other REST backends.

Structs§

GiteaProvider
Gitea-specific release provider. Codeberg uses the same impl via crate::codeberg’s factory, which constructs a GiteaParams with host = "codeberg.org".

Functions§

build_provider
Shared constructor. crate::codeberg calls this directly with Codeberg’s hard-coded host.
factory
Factory for the gitea source type.