Skip to content

Gitea: .pr_agent.toml review instructions are not applied #2341

@acherkashin

Description

@acherkashin

Git provider

Other

System Info

Environment

  • Git provider: Gitea
  • PR-Agent deployed as Gitea webhook app
  • Model: GPT-5.4

Bug details

Summary

Gitea repo-level settings are confusing / not working as expected. We tried to store PR-Agent review instructions in .pr_agent.toml inside the repository root, but the review output does not follow them.

What we expected

PR-Agent should load repository-specific settings from .pr_agent.toml and apply pr_reviewer.extra_instructions during /review.

What we configured

In PR-Agent config we updated the following properties:

[config]
use_repo_settings_file = true

[gitea]
repo_setting = ".pr_agent.toml"

[pr_help_docs]
repo_default_branch = "master"

And in the repository we added .pr_agent.toml:

[pr_reviewer]
extra_instructions = """
## Feedback style
- Use "Blocking" prefix for issues that must be fixed before merge.
- Use "Suggestion" prefix for improvements that are optional but recommended.
- Keep comments concise — one sentence for the problem, one sentence for the fix or direction.
"""

Actual behavior

PR-Agent reviews are generated, but they do not follow the instructions from .pr_agent.toml.

Expected behavior

The reviewer should pick up the repo-level configuration and reflect the requested style, for example:

  • findings prefixed with Blocking or Suggestion
  • concise two-sentence comments
  • visible effect of pr_reviewer.extra_instructions

Question

What is the officially supported way to enable repo-level .pr_agent.toml for Gitea?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions