Skip to main content

Module forgejo

Module forgejo 

Source
Expand description

Forgejo (and Gitea), with the person’s own token.

The plan, the merge-settings body and the branch-protection body — and the tests for “already done” — are the Forgejo adapter’s own; this module only carries them over HTTP as the repository’s admin instead of the community’s bot.

Structs§

Client
A Forgejo API client acting as the token’s owner.

Constants§

TOKEN_ENV
The environment variable holding the person’s token.

Functions§

apply
Run steps in order, check-then-apply, stopping at the first failure.
base_url
https://<host>/, or base checked the way the adapter checks its instance URL: https, or http only on loopback (the token travels on every request). base must be on host, the repository’s own host (any port), so the token never goes to a server the resource does not name.
plan
The adapter’s plan, with the adapter’s defaults: fast-forward-only merges, DIDs written into the workflow.
whoami
The token owner’s login.