> ## 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.

# Create GitHub issue

> Create an issue with content, assignment, labels, and a milestone.

`createGitHubIssue` creates an issue in a repository available to the GitHub App installation.

```ts automations/create-github-issue.automation.ts theme={null}
import { automation, onHttpRequest } from "automate.ax"
import { createGitHubIssue } from "automate.ax/github"

export default automation("Create GitHub issue", () => {
  onHttpRequest({ scope: "automation" })
  createGitHubIssue({
    owner: "SentsCo",
    repository: "automate.ax",
    title: "Investigate webhook delivery",
    body: "Review the production delivery logs.",
    labels: ["bug"],
  })
})
```

`owner`, `repository`, and non-empty `title` are required. Optional fields are `body`, singular `assignee`, `assignees`, `labels` (names or objects with `id` or `name`), positive integer `milestone`, and `account`. Inputs accept compatible signals.

Returns the complete created GitHub issue. The installation needs Issues write permission, and GitHub rejects assignees, labels, or milestones that are unavailable in the repository.
