github-actions commented
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
- Set up job
npm test- Notify with Callog
#fe-alerts
-
Callog app edited
e2e failed on maine2e passed on main
Failed tests: 30. Author: @maya
-
M
maya
On it, looks flaky. Re-running.
Setup, planned
- Install the Callog GitHub App
- Add Callog to Slack
- Point it at a config repo
- Send a test alert
#fe-alerts
-
Callog app
Test alert
Routed by
routes/fe-e2e.yamlto @maya
1. The route lives in git
Channels, template and data schema in one file, reviewed in a pull request.
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
Posted to #fe-alerts and #fe-team
e2e failed on main
Failed tests: 3. Author: @maya
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.
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
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.
3. OIDC instead of webhook secrets
The workflow names a route. The Action signs in with the job’s OIDC token.
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.
| GitHub | Slack | Telegram | Linked by | Mentioned |
|---|---|---|---|---|
maya | @maya | @maya | /notify link github | Yes, verified |
monalisa | @mona | Not linked | Org verified domain email | Yes, verified |
hubot | @hubot | Not linked | Commit email | After an admin confirms it |
ghost | Not linked | Not linked | Nothing yet | No, 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 workflowe2e failed on main
e2e failed on main
e2e failed on main
e2e passed on main
#fe-alerts with Calloge2e passed on main edited
Author: @maya
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
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: truein 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 githubor/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.
$ 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>"
notify preview
Mentions show as plain names here; real ones resolve to people when sent.
fe-e2e, e2e results on mainTo: Slack #fe-alerts, team frontend (#fe-team, fe-team-chat)
From:
company/fe-e2eSlack open in Block Kit Builder
Telegram