mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-11 00:00:38 +08:00
Merge pull request #1038 from Codium-ai/tr/readme
example best practice
This commit is contained in:
@ -7,22 +7,24 @@
|
|||||||
3. **Improved support** - PR-Agent Pro users will receive priority support, and will be able to request new features and capabilities.
|
3. **Improved support** - PR-Agent Pro users will receive priority support, and will be able to request new features and capabilities.
|
||||||
|
|
||||||
4. **Additional tools**
|
4. **Additional tools**
|
||||||
- [**Analyze PR components**](./tools/analyze.md/)
|
- [**Custom Prompt Suggestions**](./tools/custom_prompt.md/)
|
||||||
- [**Custom Prompt Suggestions**](./tools/custom_prompt.md/)
|
- [**Tests**](./tools/test.md/)
|
||||||
- [**Tests**](./tools/test.md/)
|
- [**PR documentation**](./tools/documentation.md/)
|
||||||
- [**PR documentation**](./tools/documentation.md/)
|
- [**Improve Component**](https://pr-agent-docs.codium.ai/tools/improve_component/)
|
||||||
- [**Improve Component**](https://pr-agent-docs.codium.ai/tools/improve_component/)
|
- [**Similar code search**](https://pr-agent-docs.codium.ai/tools/similar_code/)
|
||||||
- [**Similar code search**](https://pr-agent-docs.codium.ai/tools/similar_code/)
|
- [**CI feedback**](./tools/ci_feedback.md/)
|
||||||
- [**CI feedback**](./tools/ci_feedback.md/)
|
- [**Analyze PR components**](./tools/analyze.md/)
|
||||||
|
|
||||||
|
|
||||||
5. **Additional features**
|
5. **Additional features**
|
||||||
- [**Global and wiki configuration**](./usage-guide/configuration_options.md/#wiki-configuration-file)
|
- [**Global and wiki configuration**](./usage-guide/configuration_options.md/#wiki-configuration-file)
|
||||||
- [**Interactive triggering**](./usage-guide/automations_and_usage.md/#interactive-triggering)
|
- [**Interactive triggering**](./usage-guide/automations_and_usage.md/#interactive-triggering)
|
||||||
- [**Apply suggestions**](https://pr-agent-docs.codium.ai/tools/improve/#example-usage)
|
- [**Apply suggestions**](https://pr-agent-docs.codium.ai/tools/improve/#example-usage)
|
||||||
- [**Advanced usage statistics**](https://www.codium.ai/contact/#/)
|
- [**Advanced usage statistics**](https://www.codium.ai/contact/#/)
|
||||||
- [**SOC2 compliance check**](./tools/review.md/#soc2-ticket-compliance)
|
- [**Incorporating companies' best practices**](https://pr-agent-docs.codium.ai/tools/improve/#best-practices)
|
||||||
- [**Custom labels**](./tools/describe.md/#handle-custom-labels-from-the-repos-labels-page)
|
- [**SOC2 compliance check**](./tools/review.md/#soc2-ticket-compliance)
|
||||||
- [**Inline file summary**](https://pr-agent-docs.codium.ai/tools/describe/#inline-file-summary)
|
- [**Custom labels**](./tools/describe.md/#handle-custom-labels-from-the-repos-labels-page)
|
||||||
- More ...
|
- [**Inline file summary**](https://pr-agent-docs.codium.ai/tools/describe/#inline-file-summary)
|
||||||
|
- More ...
|
||||||
|
|
||||||
6. **Supporting self-hosted git servers** - PR-Agent Pro can be installed on GitHub Enterprise Server, GitLab, and BitBucket. For more information, see the [installation guide](https://pr-agent-docs.codium.ai/installation/pr_agent_pro/).
|
6. **Supporting self-hosted git servers** - PR-Agent Pro can be installed on GitHub Enterprise Server, GitLab, and BitBucket. For more information, see the [installation guide](https://pr-agent-docs.codium.ai/installation/pr_agent_pro/).
|
@ -102,8 +102,9 @@ This page can contain a list of best practices, coding standards, and guidelines
|
|||||||
The AI model will use this page as a reference, and in case the PR code violates any of the guidelines, it will suggest improvements accordingly, with a dedicated label: `Organization
|
The AI model will use this page as a reference, and in case the PR code violates any of the guidelines, it will suggest improvements accordingly, with a dedicated label: `Organization
|
||||||
best practice`.
|
best practice`.
|
||||||
|
|
||||||
Example for a `best_practices.md` content can be found [here](https://pr-agent-docs.codium.ai/usage-guide/EXAMPLE_BEST_PRACTICE.md) (adapted from Google's [pyguide](https://google.github.io/styleguide/pyguide.html)).
|
Example for a `best_practices.md` content can be found [here](https://github.com/Codium-ai/pr-agent/blob/main/docs/docs/usage-guide/EXAMPLE_BEST_PRACTICE.md) (adapted from Google's [pyguide](https://google.github.io/styleguide/pyguide.html)).
|
||||||
This file is only an example. Since it is used as a prompt for an AI model, we want to emphasize the following:
|
This file is only an example. Since it is used as a prompt for an AI model, we want to emphasize the following:
|
||||||
|
|
||||||
- It should be written in a clear and concise manner
|
- It should be written in a clear and concise manner
|
||||||
- If needed, it should give short relevant code snippets as examples
|
- If needed, it should give short relevant code snippets as examples
|
||||||
- Up to 800 lines are allowed
|
- Up to 800 lines are allowed
|
||||||
|
@ -43,15 +43,23 @@ num_code_suggestions = ...
|
|||||||
- The `pr_commands` lists commands that will be executed automatically when a PR is opened.
|
- The `pr_commands` lists commands that will be executed automatically when a PR is opened.
|
||||||
- The `[pr_reviewer]` section contains the configurations for the `review` tool you want to edit (if any).
|
- The `[pr_reviewer]` section contains the configurations for the `review` tool you want to edit (if any).
|
||||||
|
|
||||||
### Incremental Mode
|
[//]: # ()
|
||||||
Incremental review only considers changes since the last PR-Agent review. This can be useful when working on the PR in an iterative manner, and you want to focus on the changes since the last review instead of reviewing the entire PR again.
|
[//]: # (### Incremental Mode)
|
||||||
For invoking the incremental mode, the following command can be used:
|
|
||||||
```
|
|
||||||
/review -i
|
|
||||||
```
|
|
||||||
Note that the incremental mode is only available for GitHub.
|
|
||||||
|
|
||||||
{width=512}
|
[//]: # (Incremental review only considers changes since the last PR-Agent review. This can be useful when working on the PR in an iterative manner, and you want to focus on the changes since the last review instead of reviewing the entire PR again.)
|
||||||
|
|
||||||
|
[//]: # (For invoking the incremental mode, the following command can be used:)
|
||||||
|
|
||||||
|
[//]: # (```)
|
||||||
|
|
||||||
|
[//]: # (/review -i)
|
||||||
|
|
||||||
|
[//]: # (```)
|
||||||
|
|
||||||
|
[//]: # (Note that the incremental mode is only available for GitHub.)
|
||||||
|
|
||||||
|
[//]: # ()
|
||||||
|
[//]: # ({width=512})
|
||||||
|
|
||||||
[//]: # (### PR Reflection)
|
[//]: # (### PR Reflection)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user