DocsRecipesGitHub Release Tracker

Recipe: GitHub Release Tracker

Watch a GitHub repository and post to Slack whenever it publishes a new release. The monitor reads GitHub's REST API rather than the HTML releases page, so the fields are stable JSON and no selector can break when GitHub changes its layout.

Create the monitor

POST /v1/monitors
curl -X POST https://api.verid.dev/v1/monitors \
  -H "Authorization: Bearer $VERID_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Next.js Releases",
    "url": "https://api.github.com/repos/vercel/next.js/releases/latest",
    "schedule_interval_seconds": 3600,
    "extract_config": {
      "method": "json_path",
      "fields": {
        "tag_name": "$.tag_name",
        "name": "$.name",
        "published_at": "$.published_at",
        "html_url": "$.html_url"
      }
    },
    "diff_predicate": { "type": "field_changes", "field": "tag_name" },
    "deliveries": [
      { "type": "slack", "webhookUrl": "https://hooks.slack.com/services/..." }
    ]
  }'

The predicate fires only when tag_name changes. name, published_at and html_url ride along so the alert can link straight to the release notes. Change the owner and repo in the URL to track any public repository.

Why /releases/latest

GitHub's /releases/latest endpoint returns the most recent full release and skips drafts and prereleases, so release candidates and canary builds never trigger the alert. To hear about prereleases too, point the monitor at /releases?per_page=1 and use $[0].tag_name as the path.

Webhook payload

Slack receives a formatted message. If you add a webhook delivery instead, your endpoint gets this signed JSON (see Webhooks to verify it):

json
{
  "id": "uuid",
  "version": "2026-05-01",
  "monitor_id": "uuid",
  "run_id": "uuid",
  "fired_at": "2026-10-22T09:00:00Z",
  "diff": {
    "fields_changed": ["tag_name", "name", "published_at", "html_url"],
    "before": {
      "tag_name": "v16.4.1",
      "name": "v16.4.1",
      "published_at": "2026-10-08T17:02:11Z",
      "html_url": "https://github.com/vercel/next.js/releases/tag/v16.4.1"
    },
    "after": {
      "tag_name": "v16.4.2",
      "name": "v16.4.2",
      "published_at": "2026-10-20T16:45:03Z",
      "html_url": "https://github.com/vercel/next.js/releases/tag/v16.4.2"
    }
  },
  "monitor": {
    "url":  "https://api.github.com/repos/vercel/next.js/releases/latest",
    "name": "Next.js Releases"
  }
}

Verify it worked

Trigger a run and inspect it
curl -X POST https://api.verid.dev/v1/monitors/$MONITOR_ID/run \
  -H "Authorization: Bearer $VERID_API_KEY" \
  -H "Content-Type: application/json" -d '{}'

curl "https://api.verid.dev/v1/monitors/$MONITOR_ID/runs?limit=1" \
  -H "Authorization: Bearer $VERID_API_KEY"

The first check has nothing to compare with, so every field counts as new and Slack gets one baseline message with the current release. That message is your proof that the delivery works. After that, alerts arrive only when a new tag ships.

Common failure

Combining field_changes on tag_name with field_equals on prerelease in an AND looks right but never fires. Predicates only see the fields that changed on this check, and prerelease stays false, so the equality check finds nothing. Filter prereleases by choosing the endpoint, as above, not with a predicate. Also note that unauthenticated GitHub API calls are rate limited per IP; an hourly check is well inside that.

Or: use the template

POST /v1/monitors/from-template/github-new-release
curl -X POST https://api.verid.dev/v1/monitors/from-template/github-new-release \
  -H "Authorization: Bearer $VERID_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Next.js Releases",
    "url": "https://api.github.com/repos/vercel/next.js/releases/latest",
    "deliveries": [
      { "type": "slack", "webhookUrl": "https://hooks.slack.com/services/..." }
    ]
  }'

For the field-by-field breakdown and SDK variant, see the GitHub Release Monitoring use case.