Files
pr-agent/docs/docs/tools/help_docs.md
Eyal Sharon 88a17848eb - Documentation
- Better error handling in case could not deduce repo url
2025-03-23 20:04:33 +02:00

1.4 KiB

Overview

The help_docs tool answers a question based on a given relative path of documentation, either from the repository of this merge request or from a given one. It can be invoked manually by commenting on any PR:

/help_docs "..."

Example usage

TODO help_docs on the documentation of this repository{width=512}

TODO help_docs on the documentation of another repository{width=512}

TODO help_docs{width=512}

Configuration options

Under the section --pr_help_docs, the configuration file contains options to customize the 'help docs' tool:

  • repo_url: If not overwritten, will use the repo from where the context came from (issue or PR), otherwise - use the given repo as context.
  • repo_default_branch: The branch to use in case repo_url overwritten, otherwise - has no effect.
  • docs_path: Relative path from root of repository (either the one this PR has been issued for, or above repo url).
  • exclude_root_readme: Whether or not to exclude the root README file for querying the model.
  • supported_doc_exts : Which file extensions should be included for the purpose of querying the model.