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
Another option to give additional guidance to the AI model is by creating a `best_practices.md` file, either in your repository's root directory or as a [**wiki page**](https://github.com/Codium-ai/pr-agent/wiki) (we recommend the wiki page, as editing and maintaining it over time is easier).
125
+
Another option to give additional guidance to the AI model is by creating a `best_practices.md` filein your repository's root directory.
126
126
This page can contain a list of best practices, coding standards, and guidelines that are specific to your repo/organization.
127
127
128
-
The AI model will use this wiki page as a reference, and in case the PR code violates any of the guidelines, it will create additional suggestions, with a dedicated label: `Organization
128
+
The AI model will use this `best_practices.md` file as a reference, and in case the PR code violates any of the guidelines, it will create additional suggestions, with a dedicated label: `Organization
129
129
best practice`.
130
130
131
131
Example for a python `best_practices.md` content:
@@ -149,16 +149,16 @@ Tips for writing an effective `best_practices.md` file:
149
149
- Long files tend to contain generic guidelines already known to AI
150
150
151
151
#### Local and global best practices
152
-
By default, Qodo Merge will look for a local `best_practices.md`wiki file in the root of the relevant local repo.
152
+
By default, Qodo Merge will look for a local `best_practices.md` in the root of the relevant local repo.
153
153
154
-
If you want to enable also a global `best_practices.md`wiki file, set first in the global configuration file:
154
+
If you want to enable also a global `best_practices.md` file, set first in the global configuration file:
155
155
156
156
```toml
157
157
[best_practices]
158
158
enable_global_best_practices = true
159
159
```
160
160
161
-
Then, create a `best_practices.md`wiki file in the root of [global](https://qodo-merge-docs.qodo.ai/usage-guide/configuration_options/#global-configuration-file) configuration repository, `pr-agent-settings`.
161
+
Then, create a `best_practices.md` file in the root of [global](https://qodo-merge-docs.qodo.ai/usage-guide/configuration_options/#global-configuration-file) configuration repository, `pr-agent-settings`.
162
162
163
163
#### Best practices for multiple languages
164
164
For a git organization working with multiple programming languages, you can maintain a centralized global `best_practices.md` file containing language-specific guidelines.
Copy file name to clipboardExpand all lines: docs/docs/usage-guide/configuration_options.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -87,7 +87,8 @@ Create a dedicated project to hold a global configuration file that affects all
87
87
88
88
1. Create a new project with both the name and key: PR_AGENT_SETTINGS.
89
89
2. Inside the PR_AGENT_SETTINGS project, create a repository named pr-agent-settings.
90
-
3. In this repository, add a .pr_agent.toml configuration file—structured similarly to the global configuration file described above.
90
+
3. In this repository, add a `.pr_agent.toml` configuration file—structured similarly to the global configuration file described above.
91
+
4. Optionally, you can add organizational-level [global best practices file](https://qodo-merge-docs.qodo.ai/usage-guide/configuration_options/#global-configuration-file).
91
92
92
93
Repositories across your entire Bitbucket organization will inherit the configuration from this file.
- Facilitates learning over time by creating an [auto_best_practices.md](https://qodo-merge-docs.qodo.ai/core-abilities/auto_best_practices) file
12
11
@@ -26,7 +25,7 @@ To enable a wiki for your repository:
26
25
### Why Wiki?
27
26
28
27
- Your code (and its derivatives, including accepted code suggestions) is yours. Qodo Merge will never store it on external servers.
29
-
- Repository changes typically require pull requests, which create overhead and are time-consuming. This process is too cumbersome for auto data aggregation, and is not very convenient even for managing frequently updated content like configuration files and best practices.
28
+
- Repository changes typically require pull requests, which create overhead and are time-consuming. This process is too cumbersome for auto data aggregation, and is not very convenient even for managing frequently updated content like configuration files.
30
29
- A repository wiki page provides an ideal balance:
31
30
- It lives within your repository, making it suitable for code-related documentation
32
31
- It enables quick updates without the overhead of pull requests
0 commit comments