> ## 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 release note created

> Run an automation when Linear reports release note created.

`linear.onReleaseNoteCreated` handles release note created in the connected Linear workspace.

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

export default automation("On release note created", () => {
  const event = linear.onReleaseNoteCreated()
  // Update the Linear release announcement.
})
```

Optional static `account` defaults to the project binding. Linear webhook triggers require an OAuth connection with read access. The workspace can't change at runtime.

## Trigger data

Returns a `Signal<LinearReleaseNoteTrigger>`:

```ts theme={null}
type LinearReleaseNoteTrigger = LinearReleaseNote & {
  event: LinearWebhookEvent<LinearReleaseNote, "create">
}

interface LinearReleaseNote {
  archivedAt?: string | null
  content?: string | null
  createdAt: string
  id: string
  pipelineId: string
  releaseIds: string[]
  slugId: string
  title?: string | null
  updatedAt: string
  url: string
}

interface LinearWebhookEvent<TData, TAction extends string> {
  action: TAction
  actor?: LinearActor | null
  createdAt: string
  data: TData
  organizationId: string
  type: "ReleaseNote"
  updatedFrom?: Record<string, JSONValue> | null
  url?: string | null
  webhookId: string
  webhookTimestamp: number
}

interface LinearActor {
  email?: string
  id?: string
  name?: string
  type?: string
  url?: string
}
```

Release notes can span several releases. `releaseIds` contains every linked release. Resource objects and the webhook envelope retain extra Linear fields.
