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

# Get GitHub issue

> Get one GitHub issue or pull request by repository-local number.

`getGitHubIssue` gets an issue or pull request through GitHub's shared Issues API.

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

export default automation("Get GitHub issue", () => {
  onHttpRequest({ scope: "automation" })
  getGitHubIssue({
    owner: "SentsCo",
    repository: "automate.ax",
    issueNumber: 179,
  })
})
```

`owner`, `repository`, and positive integer `issueNumber` are required. Optional `account` defaults to the project's GitHub binding. Inputs accept compatible signals.

Returns GitHub's complete typed issue object, including identifiers, state, title, body, labels, assignees, milestone, comments, timestamps, and URLs. Pull requests include a `pull_request` marker. GitHub returns an error when the installation cannot access the repository or the number does not exist.
