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
stepsin order, check-then-apply, stopping at the first failure. - base_
url https://<host>/, orbasechecked the way the adapter checks its instance URL:https, orhttponly on loopback (the token travels on every request).basemust be onhost, 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.