Repository navigation
docs: document how to auto-trigger /add_docs via pr_commands - #1795
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨No code suggestions found for the PR. |
|
|
||
| ## Automatic triggering | ||
|
|
||
| To automatically run the `add_docs` tool when a pull request is opened, configure your `.pr_agent.yaml` or `configuration.toml` as follows: |
There was a problem hiding this comment.
Further clarification: As in the above two tools, no need to explicitly state the names of the configuration files. Instead, better to use the same wording: "... define in a configuration file:" (and link to the page: https://qodo-merge-docs.qodo.ai/usage-guide/configuration_options/ )
There was a problem hiding this comment.
Thank you for the clarification!
I’ve updated the phrasing to align with the conventions used in review and improve, and replaced the file names with a general reference to the configuration file.
Please let me know if there’s anything else I should adjust!
| ``` | ||
|
|
||
| !!! note | ||
| This behavior is **opt-in**; by default `/add_docs` only runs on manual invocation. |
There was a problem hiding this comment.
Can you please explain what you meant by opt-in ? Do you mean to state that the default is add_docs by default does not trigger automatically?
There was a problem hiding this comment.
Yes 🙂
Thank you very much for the clear feedback! 🙇
I’ve updated the Automatic triggering section based on the conventions used in review and improve:
Added a Manual triggering subsection for consistency
Clarified that /add_docs must be explicitly listed in pr_commands to run automatically
Included a note that this applies only when the Qodo Merge GitHub App is installed and active
Please let me know if anything else should be adjusted!
| ``` | ||
|
|
||
| The `pr_commands` list defines commands that run automatically when a PR is opened. | ||
| This applies only if the Qodo Merge GitHub App is installed and active for the repository. |
There was a problem hiding this comment.
I recommend to clarify that since this is under github_app section, it will only apply for when running in GitHub environment.
There was a problem hiding this comment.
Thanks again for the helpful feedback!
I've updated the note to clarify that this setting only applies when using the GitHub App, as it's defined under the [github_app] section.
Let me know if you'd like anything else adjusted
User description
Related Issue
#1768 - Support auto‐run of add_docs on PR open
Summary
This PR updates the official documentation for the
/add_docstool by introducing a new section: Automatic triggering.The section explains how to configure the tool to run automatically on PR open, by adding it to the
pr_commandslist in.pr_agent.yamlorconfiguration.toml.Background
In #1768, it was clarified that
/add_docsis not enabled by default for automatic execution.However, users can opt into this behavior by including the command in their configuration, as is done with
/describe,/review, and/improve.Currently, this setup detail was not documented anywhere, which could lead to confusion for teams attempting to activate the tool.
What’s included
docs/docs/tools/documentation.mdnamed "Automatic triggering"/add_docsinpr_commandsMotivation
This contribution aims to:
/add_docscan be triggered automatically through configuration/describeand/review, which already include such instructionsThis PR includes documentation only, and does not introduce any code changes or behavioral modifications.
It addresses the maintainer’s suggestion here.
I’d greatly appreciate your review and feedback.
Please let me know if any adjustments are needed.
Thank you for your continued guidance!
PR Type
Documentation
Description
Add section on automatic triggering of
/add_docsProvide configuration example for auto-running on PR open
Clarify opt-in nature of this feature
Changes walkthrough 📝
documentation.md
Add documentation for auto-triggering /add_docs via configurationdocs/docs/tools/documentation.md
/add_docs