Skip to content

Commit b42841f

Browse files
authored
Merge pull request #1649 from qodo-ai/hl/global_best_practices
docs: update configuration options and improve wiki documentation cla…
2 parents 839b609 + 9a21069 commit b42841f

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

docs/docs/tools/improve.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,10 @@ Use triple quotes to write multi-line instructions. Use bullet points or numbers
122122

123123
> `💎 feature. Platforms supported: GitHub, GitLab, Bitbucket`
124124
125-
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` file in your repository's root directory.
126126
This page can contain a list of best practices, coding standards, and guidelines that are specific to your repo/organization.
127127

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
129129
best practice`.
130130

131131
Example for a python `best_practices.md` content:
@@ -149,16 +149,16 @@ Tips for writing an effective `best_practices.md` file:
149149
- Long files tend to contain generic guidelines already known to AI
150150

151151
#### 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.
153153

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:
155155

156156
```toml
157157
[best_practices]
158158
enable_global_best_practices = true
159159
```
160160

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`.
162162

163163
#### Best practices for multiple languages
164164
For a git organization working with multiple programming languages, you can maintain a centralized global `best_practices.md` file containing language-specific guidelines.

docs/docs/usage-guide/configuration_options.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ Create a dedicated project to hold a global configuration file that affects all
8787

8888
1. Create a new project with both the name and key: PR_AGENT_SETTINGS.
8989
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).
9192

9293
Repositories across your entire Bitbucket organization will inherit the configuration from this file.
9394

docs/docs/usage-guide/enabling_a_wiki.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ For optimal functionality of Qodo Merge, we recommend enabling a wiki for each r
66
**Key Wiki Features: 💎**
77

88
- Storing a [configuration file](https://qodo-merge-docs.qodo.ai/usage-guide/configuration_options/#wiki-configuration-file)
9-
- Defining a [`best_practices.md`](https://qodo-merge-docs.qodo.ai/tools/improve/#best-practices) file
109
- Track [accepted suggestions](https://qodo-merge-docs.qodo.ai/tools/improve/#suggestion-tracking)
1110
- Facilitates learning over time by creating an [auto_best_practices.md](https://qodo-merge-docs.qodo.ai/core-abilities/auto_best_practices) file
1211

@@ -26,7 +25,7 @@ To enable a wiki for your repository:
2625
### Why Wiki?
2726

2827
- 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.
3029
- A repository wiki page provides an ideal balance:
3130
- It lives within your repository, making it suitable for code-related documentation
3231
- It enables quick updates without the overhead of pull requests

0 commit comments

Comments
 (0)