Type something to search...
Browse documentation

Forgejo

Everything needed to connect ProPR to a Forgejo host: what to enter, where to get it, and how to register the webhook. The fields themselves are described once in common provider connection fields.

Forgejo supports only personalAccessToken.

ProPR fieldExpected valueWhere to get it
hostBaseUrlYour Forgejo host base URLExample: https://codeberg.org
authenticationKindpersonalAccessTokenThe only mode Forgejo accepts
secretForgejo access tokenForgejo -> user settings -> applications or access-token page
oAuthTenantId, oAuthClientIdleave emptyNot used

The token must be able to authenticate the /api/v1/user endpoint and access the repositories and pull requests ProPR needs.

The Forgejo family has to be enabled before a connection can be created.

Provider scope

Every connection needs at least one enabled scope before it counts as ready, Forgejo included. The four fields are stored as you enter them - only Azure DevOps interprets scopeType - so what matters is that they name the owner your repositories live under, on the same host as the connection.

ProPR fieldValueExample
scopeTypeorganizationorganization
externalScopeIdThe organization or user that owns the repositoriesmy-org
scopePathThat owner’s URL on your instancehttps://forgejo.example.com/my-org
displayNameAny label you want in the UIMy Org

Webhook registration

Create the configuration in ProPR first; see create the webhook configuration.

Register the listener under Repository → Settings → Webhooks with the Forgejo or Gitea webhook type, pasting the generated secret into the Secret field. The host signs the body and sends X-Gitea-Signature.

Event mapping:

ProPR eventForgejo or Gitea event
PR Createdpull_request, action opened
PR Updatedpull_request, any other action
PR Commentedpull request comment events

Testing the listener

The Forgejo invocation of the synthetic-event helpers:

# -r is the repository id, -O the owner
bash scripts/send-forgejo-webhook.sh \
  -u "https://propr.example.com/webhooks/v1/providers/forgejo/<pathKey>" \
  -s "<generated-secret>" -r "101" -O "acme" -i 24

Troubleshooting

Nothing here is Forgejo-specific. Connection and reviewer-identity problems are in SCM platforms, and every other symptom routes from troubleshooting.