# Can a bug report in Slack turn into a fix pull request automatically?


URL: https://getunblocked.com/answers/slack-bug-report-to-fix-pull-request/
Published: 2026-11-27T14:00:00Z
Updated: 2026-11-25T12:31:13Z
Author: Brandon Waselnuk
Categories: Context Engine, Engineering Insights

**Short answer:** Yes, for small, well-scoped fixes, and a person still reviews and merges. With Unblocked, a Routine with a Slack trigger reads each new bug report in a channel, researches it across code, pull requests, past issues and Slack, then starts a coding task that opens a draft pull request and replies in the thread. Larger or unclear bugs get findings only.

---
Yes, for small, well-scoped fixes, and a person still reviews and merges the result. With Unblocked, you set up a Routine with a Slack trigger on your bug channel. Each new report starts a run that researches the bug across code, pull requests, past issues and Slack threads. If the fix is small, the routine starts an Unblocked Code task that opens a draft pull request, and replies in the Slack thread with what it found and a link. **Slack-to-PR automation** is this loop from a Slack bug report to a pull request, with no one copying the report into a ticket first. In the Unblocked version, the routine researches, a coding task writes the change, and your normal review decides whether it ships. Teams we work with run this on their bug channels, and one team runs it hundreds of times a month.

## What the routine needs before it can open a pull request

**The Slack trigger.** Unblocked's docs say "Slack triggers start a run when someone posts in the channel you choose." Thread replies, edits and Unblocked's own messages don't start runs, and each channel is rate-limited to 300 messages an hour from people. A run started this way "can also reply directly in the triggering thread" ([Unblocked Routines docs](https://docs.getunblocked.com/routines.md)).

**Repository write access.** A routine can "start a coding task, and Unblocked opens a pull request when the task finishes". That needs Unblocked Code, and its setup note says the source code integration "must have permission to push code and open pull or merge requests." On GitHub, an organization owner may need to set Contents to Read and write ([Unblocked Code docs](https://docs.getunblocked.com/unblocked-code.md)).

**A scope limit** is the rule in the instructions that says which bugs the routine may try to fix. Write it down, because a routine "can't stop to ask follow-up questions." For example: attempt a fix only when the cause is in one repository, the change is a few files, and a test can cover it. Narrow the routine's data sources too. A routine "runs as the team member who created it, using that person's permissions," so its Slack reply can show people things they could not otherwise see ([Unblocked Routines docs](https://docs.getunblocked.com/routines.md)).

## What it asks before writing any code

An agent that starts from the message alone fixes the symptom. A routine that asks first can find the cause, because [the context engine ranks current code and recent pull requests](https://getunblocked.com/blog/inside-the-unblocked-context-engine/) above an old wiki page. Keep 2 to 4 fixed questions, for example:

- Which code handles the behavior in this report, and what changed there recently?
- Has this bug, or one like it, been reported or fixed before, and how?
- Was the current behavior a deliberate decision in a past pull request, ticket or thread?
- Who owns this code, and who should review a change to it?

The second question matters. A January 2026 study asked why AI agents' fix pull requests go unmerged. Its research method: count outcomes for 8,106 of them from five agents, then hand-check 326 that were closed unmerged. It found that "test case failures and prior resolution of the same issues by other PRs are the most common causes" ([arXiv 2602.00164](https://arxiv.org/abs/2602.00164)).

The third question stops it from "fixing" deliberate behavior. Our answer on [telling a bug from expected behavior](https://getunblocked.com/answers/support-triage-bug-or-expected-behavior/) covers that check. For reports filed as tickets, [ticket enrichment](https://getunblocked.com/answers/attach-codebase-context-new-linear-jira-ticket/) asks the same questions in a comment.

Lemuel Dulfo, Senior Software Developer at Clio: "I left myself an inline TODO because I wasn't sure how to resolve a bug. Unblocked came back with, 'when you converted your Objective C code to Swift, you missed this line,' and it was exactly right. That level of precision is wild."

## When it should reply with findings and stop

**A findings-only reply** is a thread reply with the research and no code change. The [Routines docs](https://docs.getunblocked.com/routines.md) advise you to "tell Unblocked which events don't need a response." Reply with findings only when:

- The cause spans several services or repositories.
- The fix touches authentication, billing, data deletion or a database migration.
- The research turns up an earlier decision that the current behavior is intended.
- The report is vague, or it reads as a feature request.
- The routine cannot find the code path with confidence.

The reply still has 3 parts: the likely code, links to related pull requests and threads, and the owner.

A customer told us they run this split: small fixes come back as a pull request, and everything else comes back as a short summary in the thread. Teams we work with also run a variant for flaky and slow test reports. It checks whether the test failed before and what changed near it. Our post on [Unblocked Routines](https://getunblocked.com/blog/routines/) shows more examples, and [context for support and ops agents](https://getunblocked.com/blog/context-for-support-and-ops-agents/) covers the support side.

## Where a person stays in the loop

The pull request is a draft. Unblocked Code "opens a draft pull or merge request for you to review" ([Unblocked Code docs](https://docs.getunblocked.com/unblocked-code.md)). Nothing merges until a reviewer approves it under your normal branch rules. The routine can be wrong about the cause, and a tidy diff with a confident summary makes that easy to miss.

Start with one channel for 2 weeks. Read every pull request it opens, and track how many you merged, how many you rewrote and how many you closed. If most get rewritten, tighten the scope limit before you widen the channel list.

## How Cursor, Copilot and Devin handle Slack bug reports

All 3 can take a bug from Slack to a pull request.

| Tool | How a run starts in Slack | Pull request |
| --- | --- | --- |
| Cursor | "by mentioning @cursor with a prompt," or a direct message | Automatic; autopr=false turns it off |
| GitHub Copilot coding agent (now "cloud agent") | @mention @GitHub in a thread, or a direct message | Created under the app identity in shared channels |
| Devin | "@Devin in any channel," or an Automation on Slack activity | Listed as tabs in a session's code channel |
| Unblocked Routine | Any new top-level message in the chosen channel | Draft, via an Unblocked Code task |


Cursor posts a short plan before changing code on bug fixes ([Cursor Slack docs](https://cursor.com/docs/integrations/slack)). Copilot lets only people with write access to the selected repositories trigger changes, and for shared-channel pull requests "one more approval is required before merging, as long as the repository already requires at least one approval" ([GitHub Docs](https://docs.github.com/en/copilot/how-tos/use-copilot-agents/coding-agent/integrate-coding-agent-with-slack)). Devin's Automations include "Devin monitoring a channel and jumping in when it can help," the closest of the 3 to a channel trigger ([Devin Slack docs](https://docs.devin.ai/integrations/slack)).

If your team already tags a coding agent on bugs, any of these works. The [Devin, Cursor and Claude Code comparison](https://getunblocked.com/answers/devin-vs-cursor-background-agents-vs-claude-code/) covers what each does after the pull request opens.

## Read more

- [Introducing Unblocked Routines](https://getunblocked.com/blog/routines/)
- [Inside the Unblocked context engine: how we decide what your agent needs to know](https://getunblocked.com/blog/inside-the-unblocked-context-engine/)

## Related answers

- [What enterprise search works for a 50 to 300 person engineering team when Glean feels like too much?](https://getunblocked.com/answers/enterprise-search-mid-size-engineering-team/)
- [How do we cut ramp-up time for engineers joining a large existing codebase?](https://getunblocked.com/answers/cut-ramp-up-time-large-codebase/)
- [How do I give Claude Code docs for our internal SDK that isn't on the public internet?](https://getunblocked.com/answers/claude-code-docs-internal-sdk/)
- [Which AI assistants answer engineering questions in Slack with links to their sources?](https://getunblocked.com/answers/ai-assistant-engineering-questions-slack-sources/)
