---
name: automated-issue-resolution-and-pull-request-creation
description: "Implements code changes for an assigned tracker ticket in a sandbox, runs unit and integration tests, and prepares a pull request summary. Use when a ticket is assigned and needs a tested implementation."
license: CC-BY-4.0
compatibility: "Needs access to: GitHub, Linear, Terminal."
metadata:
  author: "BotBento Editorial"
  version: "2026-10-16"
  source: "https://botbento.com/usecases/automated-issue-resolution-and-pull-request-creation/"
  kind: workflow
  hermes:
    tags: ["git", "testing", "automation", "code-review"]
    category: coding
    requires_toolsets: ["terminal", "connections"]
---
# Automated issue resolution and pull request creation

Turn backlog tickets into tested pull requests using isolated execution environments

## When to use

When a ticket is assigned from your project tracker, this bot inspects the codebase, writes the necessary implementation in a sandbox, runs unit and integration tests to verify correctness, and packages the work into a clean pull request for team review.

## Inputs

- `ticket_id`: Identifier of the assigned tracker ticket that defines the work to implement.
- `repository`: Repository and branch to clone and modify for the ticket.
- `requirement_details` (optional): Acceptance criteria or clarifications supplied when the ticket description is unclear.

## Steps

1. When something happens: Ticket assigned in tracker (A ticket is assigned in the project tracker.)
2. Implement changes and execute tests
3. Open pull request pending approval

## Instructions

Inspect assigned tasks, clone the relevant repository branch, and apply the required code edits. Run the test suite in the environment and fix any regressions before finishing. If requirements are unclear, ask the user clarifying questions. When all tests pass, prepare a clear summary of your modifications and wait for user approval before pushing branches or opening pull requests.

## Approvals

- Pushing branches to the repository waits for user approval.
- Opening the pull request waits for user approval.

## Output

A tested pull request with a summary of code modifications and test results for team review. (format: pull_request)

## Source

Summarized in our own words from [Launch HN: Twill.ai (YC S25) – Delegate to cloud agents, get back PRs](https://news.ycombinator.com/item?id=47720418) (Hacker News, checked 2026-10-16). Any results described there are the authors’ own.

From the BotBento use-case directory: https://botbento.com/usecases/automated-issue-resolution-and-pull-request-creation/. Licence: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
