Skip to content

Trying to make the add_repo_metadata flag to work with Azure Devops #2174

@georgechond94

Description

@georgechond94

Git provider (optional)

Azure

System Info (optional)

No response

Issues details

Hi 👋

I’m trying to enable add_repo_metadata so that PR-Agent picks up and uses our AGENTS.md file located at the root of the repository.

When I run /config, the setting is correctly shown as add_repo_metadata: true. However, based on the logs, this setting does not seem to be applied. The repository metadata (including AGENTS.md) is neither taken into account nor sent to the AI agent.

From the logs, I can only see the default system prompt being sent:

You are PR-Reviewer, a language model designed to review a Git Pull Request (PR).
We are using PR-Agent with webhooks on Azure DevOps, and everything else appears to be working correctly—except for loading and passing the contents of AGENTS.md.

Is your AGENTS.md file in the root of the head branch (the branch being merged)?

Yes it is in the root of the head branch

What is the exact filename and case (AGENTS.md vs AGENTS.MD)?

AGENTS.md

Are you using Azure DevOps webhook or pipeline setup?

Azure DevOps webhook setup

Any guidance on what might be missing or how to debug this further would be appreciated.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions