# Rami repository configuration
#
# Copy this file into a repository as .rami.yaml to change how Rami reviews
# it. Every value below is the default, so an unedited copy changes nothing.
# Rami reads the first file it finds, in this order:
#
#   .rami.yaml
#   .rami.yml
#   .github/.rami.yaml
#   .github/.rami.yml
#
# The file is read from the commit under review, so a change applies to the
# next pull request. Unknown keys are ignored, and an invalid value falls
# back to its default instead of failing the review.
#
# Guide: https://rami.reviews/docs/repository-configuration

webhook:
  # Review automatically when a pull request opens or a commit is pushed.
  # Turning this off only stops webhook-triggered reviews; reviews requested
  # through MCP, the CLI, or a "/rami review" comment still run.
  trigger-review: true

  # Review draft pull requests on every push. Off by default: a draft is
  # reviewed when it is marked ready for review, and opting in makes each
  # push to a draft a billable review.
  review-drafts: false

repo:
  # Language for review comments: en, ko, or ja. When unset, Rami uses the
  # reviewed account's language preference. Uncomment to pin one language
  # for everyone reviewing this repository.
  # lang: en

review:
  # Communication tone of review comments: "cat" (playful) or "professional".
  personality: cat

  # Approve the pull request with a green check when no findings remain
  # open. When off, Rami still posts an LGTM comment but never a formal
  # approval, for repositories whose branch protection reserves approvals
  # for humans.
  auto-approve: true

  # Let the check run conclude as failure. When off, the check run always
  # reports neutral, so Rami never blocks CI; findings still post as
  # comments.
  allow-ci-block: true

  # Attach a collapsed, paste-ready "prompt for AI agent" block to each
  # inline comment.
  agent-fix-prompt: true

  # Flag AI-slop inline comments (restating comments, change narration,
  # section dividers, verbose docstrings) as Low-severity findings.
  comment-hygiene: true

  # Minimum severity at which open findings fail the check run: blocking,
  # high, medium, low, or none. Open findings below the threshold conclude
  # as action_required instead.
  fail-on: blocking

instructions:
  # Read project instruction files (CLAUDE.md, AGENT.md, and similar) into
  # the review prompt, truncated to the first 4,000 characters.
  enabled: true
