Code review

Reviews PRs for code quality, security, and test coverage. Posts inline comments and optionally approves clean PRs.

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 issues before human review
  • Enforce consistent coding standards
  • Identify security vulnerabilities early
  • Reduce review cycle time

Workflow

Trigger

PR opened

Triggered when a pull request is opened or marked ready for review.

Prompt

Gather context

Fetch PR description, commit messages, linked issues, existing comments, and code diff against the default branch.

Prompt

Review code changes

Analyze diff for correctness, security vulnerabilities, performance issues, test coverage, and consistency with existing patterns.

Prompt

Post review

Submit inline comments for medium/high severity issues. Add a summary comment with overall assessment. Optionally add approval label if no concerns.

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.