Automations/Code Quality/Scan recent commits for bugs

Scan recent commits for bugs

Scans recent commits for likely bugs and proposes minimal fixes in a draft PR.

Use this template

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 that supercharge your development workflow with Ona.

Start shipping with Ona

No commitment. No setup. Just start.

Copied to clipboard!

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