Gitea Integration¶
Run as a Webhook Server¶
-
In Gitea, create a dedicated user with the Reporter role on the target group or project.
-
Generate a
personal_access_tokenwithapiaccess for that user. -
Create a random webhook secret:
-
Clone the repo:
-
Wire up your config. If you're not setting these as environment variables at runtime:
- Configuration: set
config.git_provider = "gitea" - Secrets: set your model provider key, then under
[gitea]fill inpersonal_access_token(from step 2) andwebhook_secret(from step 3)
- Configuration: set
-
Build and push the Docker image:
-
Provide the environment variables (exact method depends on your container runtime):
-
Create a webhook in your Gitea project. Set the URL to
http[s]://<YOUR_HOST>/api/v1/gitea_webhooks, the secret token to the value from step 3, and enable Push, Comments, and Pull request events. -
Test by opening a pull request or commenting on one with a MergeMate command.