Canonical: https://botbento.com/usecases/draft-pull-requests-from-issue-descriptions/
Format: Markdown representation of the public HTML page.

[Home](/) / [Use cases](/usecases/) / [Coding](/usecases/?category=coding)

Coding · Intermediate

# Draft pull requests from issue descriptions

Turn repository issues into initial code patches, unit tests, and draft pull requests for review

[Use with BotBento ](https://app.botbento.com/?ref=usecases&utm_source=botbento.com&utm_medium=usecases&utm_campaign=draft-pull-requests-from-issue-descriptions)Copy promptShare[Markdown](/text/usecases/draft-pull-requests-from-issue-descriptions/index.md)[العربية](/ar/usecases/draft-pull-requests-from-issue-descriptions/)

Opens BotBento. Paste the prompt into a bot; nothing is preconfigured.

- When something happensIssue assigned in repository
- ThenDraft patch and run test suite
- ResultRequest approval to open draft PR

Automate the first draft of bug fixes and feature tickets. When a new issue is filed, the bot reads the description, locates the relevant files in the codebase, applies standard project conventions, writes companion unit tests, and verifies that linter checks pass before proposing a pull request.

## Prompt to start with

BotBentoRecommended

```
When assigned a repository issue, inspect the codebase and identify files that require changes. Follow project style rules and linters configured in the repository. Generate targeted code adjustments and accompanying unit tests, then run local validation commands in the terminal. Do not push branches or open pull requests until the user explicitly reviews and approves the generated diff.
```

Copy

## Tools it uses

GitHubTerminal

## Works with

BotBento

## Tags

- pull requests
- git
- code review
- unit tests
- automation

## Source

[Ask HN: How are you LLM-coding in an established code base?](https://news.ycombinator.com/item?id=46292682)
Hacker News · checked 2026-10-15

Summarized in our own words. Any results described there are the authors’ own, not measured by BotBento.

By BotBento Editorial · Added 2026-10-15 · Updated 2026-10-15 · [Suggest a correction](/contact/)

## Related use cases

-

Codingintermediate

## [Automate scheduled codebase maintenance tasks](/usecases/automate-scheduled-codebase-maintenance-tasks/)

Run automated background coding agents to diagnose issues and prepare pull requests

GitHubTerminalChat
-

Codingadvanced

## [Automated codebase repair and test verification](/usecases/automated-codebase-repair-and-test-verification/)

Diagnose test failures, apply source patches, and validate test suites in a local environment

TerminalGitHubChat
-

Codingintermediate

## [Automated coding agent in an isolated terminal workspace](/usecases/automated-coding-agent-in-an-isolated-terminal/)

Run development scripts, update repositories, and verify build tasks in an isolated environment.

TerminalGitHubChat
