# GitHub Automated AEO Pull Requests

> Ship robots.txt, llms.txt, JSON-LD schema, and page copy updates directly as reviewable GitHub Pull Requests.

For code-managed marketing sites (Next.js, Astro, Remix, Hugo, static HTML), **GitHub Pull Requests** are the safest way to apply AEO fixes without giving any external tool direct production write access.

## Setup

1. Go to **Settings → Integrations → GitHub**.
2. Connect via **GitHub OAuth** or a scoped **Personal Access Token (PAT)** with `repo` access to your marketing repository.
3. Select the target repository and default branch (for example, `main`).

## How Automated AEO PRs Work

- When an action targets a code-managed file (`public/robots.txt`, `public/llms.txt`, metadata/JSON-LD components, or MDX pages), click **Open Pull Request** (`POST /api/v1/orgs/{orgId}/integrations/github/{connectionId}/prs`).
- Weelkit creates an isolated branch, commits the surgical diff, and opens a GitHub PR with the citation gap context and expected lift.
- Weelkit's background **On-Site Action Monitor** watches your PR status—once you merge it, Weelkit automatically verifies the live deployed change and starts the **Day +7/+14/+30 Proof-of-Lift** clock.
