> ## 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 Linear comment event

> Start an automation when a Linear comment is created, updated, or removed.

`onLinearCommentEvent` watches all comment lifecycle events in the workspace.

```ts automations/watch-linear-comments.automation.ts theme={null}
import { automation } from "automate.ax"
import { onLinearCommentEvent } from "automate.ax/linear"

export default automation("Watch Linear comments", () => {
  onLinearCommentEvent()
})
```

Optional static `account` defaults to the project binding.

## Trigger data

Returns a `Signal<LinearCommentEvent>`:

```ts theme={null}
type LinearCommentEvent = LinearComment & {
  event: LinearWebhookEvent<LinearComment, "Comment">
}

interface LinearComment {
  archivedAt?: string | null
  body: string
  createdAt: string
  editedAt?: string | null
  id: string
  issue?: LinearIssueReference | null
  issueId?: string | null
  parentId?: string | null
  quotedText?: string | null
  resolvedAt?: string | null
  updatedAt: string
  user?: LinearUser | null
  userId?: string | null
}

interface LinearIssueReference {
  id: string
  identifier: string
  team: LinearTeam
  teamId: string
  title: string
  url: string
}
```

`LinearWebhookEvent` has the [shared webhook envelope shape](/reference/integrations/linear/triggers/on-issue-event#trigger-data). The comment is exposed directly; inspect `event.action` to distinguish lifecycle actions or `event.updatedFrom` for previous values. Call `getLinearComment` when you need the latest normalized comment.
