You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- 💎 means this feature is available only in [Qodo-Merge](https://www.qodo.ai/pricing/)
136
137
137
138
[//]: #(- Support for additional git providers is described in [here](./docs/Full_environments.md))
@@ -147,6 +148,8 @@ ___
147
148
\
148
149
‣ **Update Changelog ([`/update_changelog`](https://qodo-merge-docs.qodo.ai/tools/update_changelog/))**: Automatically updating the CHANGELOG.md file with the PR changes.
149
150
\
151
+
‣ **Help Docs ([`/help_docs`](https://qodo-merge-docs.qodo.ai/tools/help_docs/))**: Answers a question on any repository by utilizing given documentation.
152
+
\
150
153
‣ **Add Documentation 💎 ([`/add_docs`](https://qodo-merge-docs.qodo.ai/tools/documentation/))**: Generates documentation to methods/functions/classes that changed in the PR.
151
154
\
152
155
‣ **Generate Custom Labels 💎 ([`/generate_labels`](https://qodo-merge-docs.qodo.ai/tools/custom_labels/))**: Generates custom labels for the PR, based on specific guidelines defined by the user.
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.
4
-
It can be invoked manually by commenting on any PR:
3
+
The `help_docs` tool answers a question based on a given relative path of documentation (which defaults to docs/), either from the repository of this merge request or from a given one.
4
+
It can be invoked manually by commenting on any PR or Issue:
5
5
```
6
6
/help_docs "..."
7
7
```
8
8
9
9
## Example usage
10
-
10
+
#### Asking a question about this repository:
11
11
{width=512}
12
12
13
+
#### Asking a question about another repository under branch: main:
13
14
{width=512}
Under the section `--pr_help_docs`, the [configuration file](https://github.com/Codium-ai/pr-agent/blob/main/pr_agent/settings/configuration.toml#L50) contains options to customize the 'help docs' tool:
21
+
Under the section `pr_help_docs`, the [configuration file](https://github.com/Codium-ai/pr-agent/blob/main/pr_agent/settings/configuration.toml#L50) contains options to customize the 'help docs' tool:
20
22
21
23
-`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.
22
24
-`repo_default_branch`: The branch to use in case repo_url overwritten, otherwise - has no effect.
23
25
-`docs_path`: Relative path from root of repository (either the one this PR has been issued for, or above repo url).
24
26
-`exclude_root_readme`: Whether or not to exclude the root README file for querying the model.
25
27
-`supported_doc_exts` : Which file extensions should be included for the purpose of querying the model.
28
+
29
+
---
30
+
## Run as a GitHub Action
31
+
32
+
You can use our pre-built Github Action Docker image to run help_docs on any newly created issue, as a Github Action. Here's how:
33
+
34
+
1) Follow the steps depicted under [Run as a Github Action](https://qodo-merge-docs.qodo.ai/installation/github/#run-as-a-github-action) to create a new workflow, such as:`.github/workflows/help_docs.yml`:
35
+
36
+
2) Edit your yaml file to the following:
37
+
38
+
```yaml
39
+
name: Run pr agent on every opened issue, respond to user comments on an issue
0 commit comments