Docs
Alerts
Events
Alerts are about your organization. Open Settings, then Notifications. Only admins change them.
| Event | API name | You hear about it when |
|---|---|---|
| Main fails | run.failed | A run of a push to the default branch fails. Pull requests stay in GitHub. |
| Spend limit near | spend.threshold | Spend passes 50% or 80% of your spend limit, or reaches it. |
| Cache limit | cache.limit | A repository’s cache outgrows its limit and the oldest entries are removed. At most once a month for a repository. |
Spend limit alerts apply when your organization has set a spend limit.
When a run on the default branch fails, we email whoever pushed the commit. Each person can turn that off under Settings, then Notifications under You. Spend limit, credit and payment emails always go to the admins, and to the billing email if you set one. The Weekly summary of spend and minutes per GitHub organization goes to the admins every Monday, once an admin switches it on.
Turn on Only when main breaks to get one alert when main goes red, then none until it passes again. It covers email and every destination.
Add a destination
- Under Notifications, choose Add a destination.
- Pick a channel and fill in its fields.
- Give it a name, like “#ci-alerts”.
- Pick the events it gets. Each destination gets only the alerts you pick for it.
| Channel | Fields |
|---|---|
| Slack | Webhook URL: an incoming webhook from your Slack app, made for the channel it posts to. |
| Telegram | Bot token from BotFather, and the Chat ID: the group’s id or a public channel’s @name. Add the bot to the chat first. |
| Address: a person or a team’s list. | |
| Webhook | URL and a signing secret of at least 16 characters. |
Secrets are encrypted and shown only once. A delivery that fails is tried again.
Webhook payload
A webhook must be an https URL on the public internet. Each alert is a POST with a JSON body:
{
"event": "run.failed",
"severity": "critical",
"title": "test failed on main in acme/web",
"text": "ci.yml #412 failed after a push to main.",
"fields": [{ "label": "Repository", "value": "acme/web" }],
"url": "https://checklane.sh/runs/…",
"occurredAt": "2026-11-24T09:30:00Z",
"data": {}
}severity is info, warning or critical. data is the event as it happened.
These headers come with it:
X-Checklane-Event: the event’s API name.X-Checklane-Timestamp: Unix seconds.X-Checklane-Signature:sha256=and the hex HMAC-SHA256 of the timestamp, a dot and the raw body, keyed with your secret.
To check it in Node:
import { createHmac, timingSafeEqual } from 'node:crypto';
const verify = (secret, timestamp, body, signature) => {
const expected =
'sha256=' + createHmac('sha256', secret).update(`${timestamp}.${body}`).digest('hex');
return timingSafeEqual(Buffer.from(expected), Buffer.from(signature));
};Reject a request whose timestamp is more than a few minutes old.