Code review

Automatically reviews pull requests for code quality, security issues, and test coverage. Posts inline comments on specific lines and can optionally approve PRs that pass all checks.

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 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.