generate_pr
Create a draft GitHub pull request applying atomic accessibility patches from UX audit suggestions. Prevents conflicts and invalid code, can output patch locally.
Instructions
[pr] OPENS a draft GitHub PR with N a11y patches applied ATOMICALLY via Git Trees (all-or-nothing commit). Refuses overlapping patches (CONFLICT) and unparseable JS/TS/JSX/Vue/Svelte (AST_INVALID via Babel/vue-eslint-parser/svelte/compiler gate). Inputs from suggest_fix (preferred) or generate_patch (legacy). Requires GITHUB_TOKEN; without it, set local_only=true to get patch content. Always creates DRAFT, never auto-merges.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| owner | Yes | GitHub repo owner (user or org) | |
| repo | Yes | GitHub repo name | |
| base_branch | No | Base branch for PR | main |
| patches | Yes | Patches from suggest_fix tool | |
| title | No | PR title (auto-generated if not provided) | |
| body | No | PR description (auto-generated if not provided) | |
| draft | No | Create as draft PR (recommended) | |
| local_only | No | Just return patch content, do not create PR |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |