Bug fixer

Picks the next bug from GitHub Issues and fixes it autonomously. Investigates the root cause, writes a regression test, runs the full test suite, and opens a PR linked back to the bug.

Requires: GitHub. Set up integrations

How to use this template

  1. 1Click "Use this template" or create a new automation in Ona
  2. 2Set your trigger (manual, scheduled, or event-based)
  3. 3Copy each step below into the automation builder
  4. 4Customize the prompts for your specific use case

What this does

  • Priority-1 bugs get fixed first, automatically
  • Fixes root causes, not symptoms
  • Adds regression tests with every fix
  • Routes infra/config bugs to a human

Workflow

Trigger

Scheduled run

Runs every 10 minutes.

Prompt

Pre-flight checks

Stop if 3+ open PRs. Pick the next bug with status:backlog (priority:1 first). Skip if a PR for the issue already exists.

Prompt

Triage

Code bug → proceed. Infra/config bug → comment and add needs-human.

Prompt

Fix and test

Reproduce the bug. Create branch fix/<N>-<slug>. Fix the root cause. Add a regression test.

Shell Script

Run tests

pnpm test && pnpm test:e2e
Pull Request

Open PR

Open a PR with "Closes #N".

More automations to explore.

Ready to try a template?

Start building with a free Ona account.

Copied to clipboard!

This website uses cookies to enhance the user experience. Read our cookie policy for more info.