[INFRA] Set up Deepseek AI merge request reviewer in a jail #41

Closed
opened 2026-04-11 09:07:00 -05:00 by blakeridgway · 1 comment
Owner

Description

Deploy a custom bot in a FreeBSD jail on srv01 that automatically reviews merge requests using the Deepseek API. This includes:

  • Create a minimal jail on srv01 (reference: FreeBSD Jails Are Simple and Easy)
  • Create a dedicated Gitea bot account for posting reviews
  • Write a bot service (Go or Python) that:
    • Listens for Gitea webhooks on merge request open/update events
    • Fetches the diff from the Gitea API
    • Sends the diff to the Deepseek API with a code review prompt
    • Posts review comments back to the merge request via Gitea API
  • Configure webhooks on repos in Gitea to trigger the bot
  • Store the Deepseek API key securely in Vaultwarden
  • Set up logging and error handling
  • Set up Zabbix monitoring for the bot service

Request Type

New Service

Justification

Automated code reviews will catch issues early and improve code quality across all repos.

Impact

No response

Additional Context

  • Dependencies:
    • [INFRA] Migrate srv01 from Proxmox to FreeBSD
    • [INFRA] Set up Vaultwarden in a jail (for API key storage)
### Description Deploy a custom bot in a FreeBSD jail on srv01 that automatically reviews merge requests using the Deepseek API. This includes: - Create a minimal jail on srv01 (reference: [FreeBSD Jails Are Simple and Easy](https://freebsdfoundation.org/blog/freebsd-jails-are-simple-and-easy/)) - Create a dedicated Gitea bot account for posting reviews - Write a bot service (Go or Python) that: - Listens for Gitea webhooks on merge request open/update events - Fetches the diff from the Gitea API - Sends the diff to the Deepseek API with a code review prompt - Posts review comments back to the merge request via Gitea API - Configure webhooks on repos in Gitea to trigger the bot - Store the Deepseek API key securely in Vaultwarden - Set up logging and error handling - Set up Zabbix monitoring for the bot service ### Request Type New Service ### Justification Automated code reviews will catch issues early and improve code quality across all repos. ### Impact _No response_ ### Additional Context - **Dependencies:** - [INFRA] Migrate srv01 from Proxmox to FreeBSD - [INFRA] Set up Vaultwarden in a jail (for API key storage)
blakeridgway added the
infrastructure
label 2026-04-11 09:07:00 -05:00
Author
Owner

This is implemented now.

Gitea PR Reviewer

This is implemented now. [Gitea PR Reviewer](https://git.ridgwaysystems.org/RidgwaySystems/gitea-pr-reviewer)
Sign in to join this conversation.
No description provided.