Open Source Consulting for Digital Independence
EN DE ES FR

do-bot-smart

A modular automation bot framework — one adapter per platform, one module per use-case.

do-bot-smart connects external platforms (GitLab, Telegram, and more) and composes them into automation workflows. It is aimed at small teams who want GitLab and chat tooling glued together without running a heavyweight automation stack.

Features

Platform adapters

  • GitLab adapter (shipped): webhook ingestion plus a broad REST surface across merge requests, issues, pipelines/jobs, packages, and boards/labels/milestones, with shared-secret webhook verification.
  • Telegram adapter (shipped): long-poll loop, send/edit message, callback answers, forum-topic threads, and address validation at startup.

Chat workflows

  • gitlab_status module (shipped): posts pipeline, merge-request, and deployment status to a configured chat, with a per-commit staging preview link and a host allowlist that drops any payload link from an untrusted host (fail-safe by default).

Core architecture

  • Thin adapters hold the platform specifics; modules hold the use-case logic and wire adapters together through a shared in-process event bus. Swapping the chat platform means changing one line of config, not touching the workflow.
  • Config-driven wiring with compile-time registration — no plugin loader, no reflection.

Storage and deployment

  • Pluggable persistence behind a small core.Store key/value interface, with two pure-Go (no-cgo) backends — bbolt (default) and SQLite — held to one shared conformance suite.
  • Secrets kept out of config via environment expansion, designed for an Ansible-Vault → systemd-credentials deployment on a dedicated system user.

Roadmap

  • mr_approval module (planned, not yet built): interactive Approve & Merge / Reject buttons in chat, gated by approver identity and live pipeline status.
  • Phase 2 hardening (planned): multi-project config, pipeline-green guard, force-push approval reset, reject flow, retry/backoff, structured logging.
  • Phase 3 modules (planned): issue notifier, deploy trigger, on-call rotation, scheduled jobs.
  • Additional adapters (not started): Trello, Slack, email.
  • Prometheus metrics exporter (requested).
  • Nagios/Icinga health check (requested).
  • GitLab container-registry tag operations (deferred — blocked on an upstream registry API error) and in-Go token self-rotation (blocked on token-creation permissions).