Skip to content

feat: repo/org-specific review tool config for pr-review #59

Description

@cardene777

Summary

The existing pr-review workflow assumes a single review agent / trigger across repositories, but in practice the review tool differs by organization and repository.

A concrete example:

  • Borderless-company/Borderless-Contract uses Gemini review, triggered with @gemini review
  • other repositories may use a different reviewer / trigger phrase

Because of this, the current flow is brittle:

  • the wrong review command can be posted
  • follow-up polling may look for the wrong reviewer account
  • the automation cannot reliably complete the review-fix-review loop across multiple repos

Proposal

Add repository-aware review tool configuration to pr-review so the workflow can choose the correct reviewer and trigger phrase based on org/repo context.

Examples of configuration shape:

  • review provider / reviewer identity
  • trigger comment text (for example @gemini review)
  • how to detect review results (review author, comments, thread matching rules)
  • optional fallback/default provider when no repo-specific config exists

Desired behavior

  1. pr-review resolves the active repository context.
  2. It loads the review-tool config for that repo or organization.
  3. It posts the correct trigger comment automatically.
  4. It polls the correct reviewer output.
  5. It continues the fix -> push -> re-review loop without repo-specific manual intervention.

Why this matters

This is not just a wording issue. The review loop currently depends on hardcoded assumptions about which review agent is in use. In multi-org setups, that breaks automation and forces manual correction.

Supporting repo/org-specific review tools would make pr-review reusable across teams that standardize on different reviewers, such as Gemini in one org and a different agent elsewhere.

Scope suggestion

A good first version would support:

  • global default reviewer config
  • organization-level override
  • repository-level override
  • clear docs for how to configure trigger phrases and reviewer matching

Example target case

For Borderless-company/Borderless-Contract, pr-review should know to use Gemini-specific behavior instead of assuming the default reviewer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions