> ## 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 suite rerequested

> Start an automation when someone requests another check suite run.

`github.onCheckSuiteRerequested` starts an automation when someone asks the owning GitHub App to rerun a check suite.

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

export default automation("Rerun GitHub check suite", () => {
  const event = github.onCheckSuiteRerequested()
  github.createCheckRun({
    owner: event.repository.owner.login,
    repository: event.repository.name,
    headSha: event.check_suite.head_sha,
    name: "Automate.ax policy",
  })
})
```

Returns the typed check-suite payload with `action: "rerequested"`. GitHub sends it only to the App that owns the suite. Requires Checks write permission.
