> ## Documentation Index
> Fetch the complete documentation index at: https://docs.automate.ax/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# On GitHub check run waiting

> Start an automation when a GitHub check run enters the waiting state.

`github.onCheckRunWaiting` emits when GitHub creates a check run with `check_run.status: "waiting"`, including GitHub Actions jobs awaiting deployment protection. It also preserves GitHub's documented completed payload variant with `check_run.conclusion: "waiting"`.

```ts automations/github-check-run-waiting.automation.ts theme={null}
import { automation } from "automate.ax"
import { github } from "automate.ax/github"

export default automation("check run waiting", () => {
  const event = github.onCheckRunWaiting()
  // Update the GitHub check in the CI dashboard.
})
```

Optional static `account` defaults to the project binding. Returns the complete typed GitHub webhook payload narrowed to either the created waiting-status or completed waiting-conclusion variant. GitHub reserves the waiting status for GitHub Actions. Requires Checks read permission.
