Callog GitHub

Open-source routing for CI notifications. Routes live in git, and every mention finds its person.

  • GitHub
  • GitHub Actions
  • Slack
  • Telegram
  • Docker
  • PostgreSQL
  • Prometheus

e2e Attempt 1Re-run: attempt 2

  1. Set up job400 ms
  2. npm test3 failedpassed
  3. Notify with Callog202 accepted

#fe-alerts

  • Callog app edited

    e2e failed on maine2e passed on main

    Failed tests: 30. Author: @maya

    Open run
  • M

    maya

    On it, looks flaky. Re-running.

Setup, planned

  1. Install the Callog GitHub Appyour org
  2. Add Callog to Slackone click
  3. Point it at a config repofrom a template
  4. Send a test alertdelivered

#fe-alerts

  • Callog app

    Test alert

    Routed by routes/fe-e2e.yaml to @maya

1. The route lives in git

Channels, template and data schema in one file, reviewed in a pull request.

routes/fe-e2e.yaml
id: fe-e2e
allowed_sources:
  github_repos: [company/fe-e2e]
destinations:
  - slack: "#fe-alerts"
  - team: frontend
schema:
  type: object
  required: [status, branch, run_url]
  properties:
    status: { enum: [failed, passed] }
    branch: { type: string }
    failed: { type: integer }
    run_url: { type: string, format: uri }
template:
  - header: "e2e {{ data.status }} on {{ data.branch }}"
  - text: "Failed tests: **{{ data.failed }}**. Author: {{ recipients | mention }}"
  - buttons:
      - { text: "Open run", url: "{{ data.run_url }}" }

e2e failed on main

Failed tests: 3. Author: @maya

Open run

Posted to #fe-alerts and #fe-team

e2e failed on main

Failed tests: 3. Author: @maya

Open run

Posted to fe-team-chat

The pull request preview, rendered from the route’s example.

2. Checked and previewed in the PR

The config repo runs the server’s own checks and shows each changed alert before merge.

Callog validateFailing

routes/fe-e2e.yaml

destinations.1.team: unknown team "frontend-ops" (not defined in teams.yaml)

✖ Config has 1 error — the server would keep the previous version

Callog validate✔ Config is valid: 1 route, 1 team

github-actions commented

notify preview

Mentions show as plain names here; real ones resolve to people when sent.

fe-e2e, e2e results on main

To: Slack #fe-alerts, team frontend (#fe-team, fe-team-chat)
From: company/fe-e2e

Slack open in Block Kit Builder

e2e failed on main

Failed tests: 3. Author: maya

Open run

Telegram

e2e failed on main

Failed tests: 3. Author: maya

Open run

Ready to paste

callog-dev/callog/packages/action
Sends from any workflow over GitHub OIDC: author mention, threads, edits.
callog-dev/callog/packages/cli
Validates the config repo on every pull request and posts the preview.
notify validate, notify preview
The same checks and preview on a laptop.
notify send
Sends from any service with an API key.
Set up the config repo checks

3. OIDC instead of webhook secrets

The workflow names a route. The Action signs in with the job’s OIDC token.

.github/workflows/e2e.yml
 jobs:
   e2e:
     runs-on: ubuntu-latest
+    permissions:
+      id-token: write # the job may request a GitHub OIDC token
+      contents: read
     steps:
-      - run: npm test
+      - run: npm test -- --json --outputFile=report.json
+      - id: report
+        if: failure()
+        run: echo "failed=$(jq .numFailedTests report.json)" >> "$GITHUB_OUTPUT"
-      - uses: slackapi/slack-github-action@v2
-        if: failure()
-        with:
-          webhook: ${{ secrets.SLACK_WEBHOOK_FE_ALERTS }}
-          webhook-type: incoming-webhook
-          payload: |
-            text: "e2e failed on ${{ github.ref_name }}"
+      - uses: callog-dev/callog/packages/action@v0.4.0
+        if: failure() || (success() && github.run_attempt > 1) # a passing first attempt stays quiet
+        with:
+          url: https://callog.example.com
+          route: fe-e2e # allows only company/fe-e2e
+          mention-author: true
+          thread-key: e2e/${{ github.sha }}
+          update: ${{ github.run_attempt > 1 }} # a re-run edits the first message
+          data: |
+            {
+              "status": "${{ job.status == 'success' && 'passed' || 'failed' }}",
+              "branch": "${{ github.ref_name }}",
+              "failed": ${{ steps.report.outputs.failed || 0 }},
+              "run_url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
+            }

A new channel is one pull request to the config repo.

4. One person across GitHub, Slack and Telegram

People come from Slack and are matched to GitHub.

GitHubSlackTelegramLinked byMentioned
maya@maya@maya/notify link githubYes, verified
monalisa@monaNot linkedOrg verified domain emailYes, verified
hubot@hubotNot linkedCommit emailAfter an admin confirms it
ghostNot linkedNot linkedNothing yetNo, listed as unmapped

Sample people. No logins or emails live in git.

5. No noise in the channel

A retried step, a matrix leg and a passing re-run make one alert, not four.

#fe-alerts with a webhook per workflow
  • e2e failed on main

    14:02, attempt 1

  • e2e failed on main

    14:03, the retried step

  • e2e failed on main

    14:03, matrix leg 2

  • e2e passed on main

    14:19, a new message

#fe-alerts with Callog
  • e2e passed on main edited

    Author: @maya

    14:02, edited at 14:19, 2 replies in the thread

Sample runs on one branch.

idempotency-key
Derived from the run, attempt and job, so a retried step is delivered once.
thread-key
One thread per key, such as a commit or a branch. Replies keep their order.
update: true
A re-run edits the thread’s first message instead of posting again.
dm: true
Personal copies only on the routes that ask for them.
/notify prefs
Everyone picks Slack or Telegram for DMs, or mutes a route.
Retries
Eight attempts over about 29 minutes when Slack is down.

6. Your server, or ours

The same code in both. Self-host it today, or let us run it.

Self-hosted

Free AGPL-3.0

Image
ghcr.io/callog-dev/callog, amd64 and arm64
Database
Postgres 14+, bundled or your own; migrations as SQL
Chat
Your Slack App over Socket Mode, your Telegram bot
Health
/healthz, /readyz, Prometheus /metrics
Read the setup guide

Cloud

Soon free up to 8 people

Sign-up
Install the Callog GitHub App on your org
Chat
Add to Slack in one click; a shared Telegram bot
Hosting
EU region, managed Postgres with backups
Price
Per active person above the free eight

Questions

Who gets mentioned when a workflow fails?
With mention-author: true in the GitHub Action, Callog adds the commit or pull request author, or the actor, and mentions the person linked to that account. A route can also name a team.
How are GitHub accounts matched to Slack and Telegram?
People are imported from Slack and matched to GitHub by a verified organization email or repeated commits with one email. Anyone can link their own account with /notify link github or /notify link telegram. A weak match waits for an admin, and an unmatched account is listed instead of mentioned.
Do repositories need Slack webhook secrets?
No. The workflow names a route and signs in with the job’s GitHub OIDC token. Each route lists the repositories allowed to send to it.
Can one alert go to both Slack and Telegram?
Yes. A route lists its destinations and has one template, which is rendered for each chat. Telegram is optional and uses your own bot from BotFather.
Can anything besides GitHub Actions send alerts?
Yes, any service with an API key can call the HTTP API or run notify send. Callog works with GitHub, Slack and Telegram; GitLab and Microsoft Teams are not supported.
What does self-hosting need?
Docker and Postgres 14+, with a bundled Postgres to start. There is no Redis or message broker. A Helm chart is available for Kubernetes.
First start
$ docker compose --profile db --profile app up -d
$ curl $CALLOG/readyz
{"status":"ok"}
$ docker compose logs app | grep "Tenant "
Tenant <TENANT_ID> active for org "<org>"

Self-host with one compose up.