> ## 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 issue event

> Start an automation from any GitHub issue webhook action.

`onGitHubIssueEvent` exposes the broad GitHub `issues` webhook family. Use it for actions that do not have a semantic trigger.

```ts automations/watch-github-issues.automation.ts theme={null}
import { automation } from "automate.ax"
import { onGitHubIssueEvent } from "automate.ax/github"

export default automation("Watch GitHub issues", () => {
  const event = onGitHubIssueEvent()
  event.transform(({ action, issue, repository }) => ({
    action,
    issueNumber: issue.number,
    repository: repository.full_name,
  }))
})
```

Optional static `account` defaults to the project's GitHub App installation binding and cannot be a signal. The installation receives events only for repositories it can access and needs Issues read permission.

Returns `Signal<GitHubIssueEvent>`, GitHub's typed issue webhook union. It includes `action`, `issue`, `repository`, `sender`, `installation`, and action-specific fields. Prefer [On GitHub issue opened](/reference/integrations/github/triggers/on-issue-opened), reopened, or closed for those common cases.
