OperationsAutomation

Release pipelines, CI, and observability hooks

Watch GitHub Actions, npm publishes, Sentry noise, and shipping workflows—then notify or triage from your assistant.

In short

CoWork OS can check GitHub Actions runs and error trackers on a schedule, read the failing job log, and post a short summary to Slack or another channel. It reads Sentry, CircleCI, Buildkite, Datadog and Grafana through connectors. Scheduled runs are unattended, so anything that needs approval is denied, not done. Fixes and new tickets wait for you.

What you build

Shipping awareness people describe as “monitor my release workflow” or “Sentry triage”:

  • CI/CD signals: pipeline success/failure, publish complete, artifact ready.
  • Error budgets: new issues vs known noise; summaries for humans, not raw dumps.
  • Actionable follow-ups: open issue, link run log, suggest owner—within policy.

This pairs with developer workflows but focuses on hooks and notifications, not writing code.

How it works in CoWork OS

  • Observability connectors: Sentry, CircleCI, Buildkite, Datadog and Better Stack connect with OAuth. Grafana and Honeycomb take an API key. Install them from Settings > Connectors so the agent queries issues and pipelines instead of you pasting stack traces.
  • Task automations: run a check once, then choose Add automation... from the task menu to repeat it. Built-in templates include "CI failure summary" and "regression watch", with presets from every 30 minutes to weekly.
  • Scheduled results in chat: type /schedule Every weekday at 9am, ... in Slack, Teams or another connected channel and the result comes back to that chat. Set deliverOnlyIfResult so runs with nothing to report stay quiet.
  • Event triggers and webhooks: inbound webhooks and MCP connector events can create a task, send a message or wake an agent. Conditions and a cooldown (one minute by default) stop a burst of failures from firing again and again.
  • DevOps pack: Incident Response, Deployment Checklist and Post-mortem Report skills turn a failure summary into a rollback checklist or a blameless write-up.
  • CLI runs: call cowork run "..." --json --exit-on-input --timeout-ms 600000 from a release script. Exit code 3 means a person must act.
  • Approval rules: scheduled and headless runs have nobody to answer an approval card, so those requests are denied. Keep recurring checks read-only.

Worked example

You tag v2.3.0 after lunch. Your repo uses GitHub Actions, the GitHub CLI is installed, and the Sentry connector is connected. In a task opened on the repo folder, you type:

Check GitHub Actions runs on main since tag v2.3.0. For each failed run, read the failed job log and name the step and the likely cause. Then list Sentry issues in project web-app first seen after the tag. Give me five lines, worst first. Do not rerun jobs or change anything.
  1. The agent runs gh run list and gh run view --log-failed with its command tool. Under the Ask for approval profile, each command shows a Deny / Allow once card first.
  2. It finds that the migrate step failed on a missing column and links the run.
  3. It queries the Sentry connector and finds one new TypeError in checkout, first seen 14 minutes after the deploy.
  4. It returns the five-line summary and stops. Nothing was rerun.

You reply "open a Jira issue for the migration failure". Creating an issue is a write, so an approval card shows the exact project, summary and fields before anything is sent. After it runs, the Jira connector reads the issue back and records a receipt on the task.

Last, you choose Add automation... from the task menu, pick Every 30m and New task. Each later run appears in Settings > Automations > Scheduled Tasks with its status and duration.

Why CoWork OS is a strong fit

  • Webhook-friendly automation patterns fit “tell me when npm publish finishes.”
  • Channels deliver alerts where you will actually see them.
  • Approvals before auto-opening PRs or closing incidents.
  • Incident workflows overlap—see incidents and on-call for postmortems.

How to use

  1. Inventory signals: which events matter vs noise?
  2. Normalize payloads from GitHub, Sentry, or your CI into a short internal schema.
  3. Route severity: page for sev1, daily digest for low priority.
  4. Test with synthetic events before production traffic.
  5. Rotate webhook secrets on the same schedule as API keys.

Prerequisites

  • Inbound HTTPS endpoint or polling strategy that fits your network.
  • Idempotency handling—webhooks retry.
  • Ownership: who acks an alert at 2am?

Steps

  1. Connect one pipeline end to end with a test repo.
  2. Add deduplication so the same failure does not spam.
  3. Add links to runs, commits, and dashboards in every alert.
  4. Measure time-to-ack and time-to-resolve.
  5. Iterate templates from missed signals and false positives.

Suggested prompts

  • “Summarize this Sentry issue cluster in five bullets for a non-expert.”
  • “What questions should we ask before merging a hotfix?”
  • “Draft a customer-safe status update from this CI failure.”

Launch readiness

  • Load test webhook volume from a burst of failures.
  • Runbook links in every alert body.
  • On-call rotation matches alert routing.

Common pitfalls

  • Alert fatigue from unfiltered stack traces.
  • Auto-remediation without guardrails on prod.
  • Missing correlation id between CI job and deployed revision.
  • Secrets in build logs forwarded to chat.

Frequently asked questions

How do I get a Slack message when a GitHub Actions workflow fails?

GitHub can email you about failed workflow runs, and the GitHub app for Slack can post workflow events to a channel. Those tell you that a run failed, not why. If you want the cause, schedule a CoWork OS task that reads the failed job log and delivers a short summary to Slack, with deliverOnlyIfResult set so quiet days send nothing.

Can AI summarize CI failure logs?

Yes. Give it the failed job log, not the whole run, and ask for the failing step, the error line and the likely cause. In CoWork OS the agent can pull the log itself with the GitHub CLI and link the run. Check its guess against the log before you act, because a wrong root cause can cost more time than no summary.

Can I run an AI agent from a script or CI job?

You can call cowork run from a script and add --json for machine-readable events. Add --exit-on-input and --timeout-ms so an unattended run always ends. Exit code 0 is success, 1 is failure and 3 means a person must act. Approval requests are denied in these runs, so give the task read and report work only.