Scan recent commits for bugs

Reviews recent commits for common bug patterns — off-by-one errors, null dereferences, race conditions, missing error handling — and proposes minimal, targeted fixes in a draft PR.

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

  • Catch bugs shortly after introduction
  • Propose minimal targeted fixes
  • Reduce time to detect regressions
  • Open draft PRs for review

Workflow

Trigger

Daily schedule

Runs at 9 AM on weekdays.

Prompt

Analyze recent commits

Review commits from the past 24 hours for null dereferences, off-by-one errors, missing error handling, race conditions, and security issues.

Prompt

Apply minimal fixes

For each bug found, apply the minimal fix. Add tests to cover the bug scenario.

Shell Script

Run tests

npm test || go test ./... || yarn test || echo "Tests completed"
Pull Request

Open draft PR

Submit a draft pull request with targeted bug fixes.

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.