mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-16 10:40:16 +08:00
update
This commit is contained in:
@ -2,6 +2,11 @@
|
|||||||
|
|
||||||
The different tools and sub-tools used by CodiumAI PR-Agent are adjustable via the **[configuration file](pr_agent/settings/configuration.toml)**
|
The different tools and sub-tools used by CodiumAI PR-Agent are adjustable via the **[configuration file](pr_agent/settings/configuration.toml)**
|
||||||
|
|
||||||
|
The `git_provider` field in the configuration file determines the GIT provider that will be used by PR-Agent. Currently, the following providers are supported:
|
||||||
|
`
|
||||||
|
"github", "gitlab", "azure", "codecommit","local"
|
||||||
|
`
|
||||||
|
|
||||||
Options that are available in the configuration file can be specified at run time when calling actions. Two examples:
|
Options that are available in the configuration file can be specified at run time when calling actions. Two examples:
|
||||||
```
|
```
|
||||||
- /review --pr_reviewer.extra_instructions="focus on the file: ..."
|
- /review --pr_reviewer.extra_instructions="focus on the file: ..."
|
||||||
@ -13,20 +18,18 @@ When running from source (CLI), your local configuration file will be initially
|
|||||||
|
|
||||||
Examples for invoking the different tools via the CLI:
|
Examples for invoking the different tools via the CLI:
|
||||||
|
|
||||||
```
|
|
||||||
- **Review**: python cli.py --pr_url=<pr_url> review
|
- **Review**: python cli.py --pr_url=<pr_url> review
|
||||||
- **Describe**: python cli.py --pr_url=<pr_url> describe
|
- **Describe**: python cli.py --pr_url=<pr_url> describe
|
||||||
- **Improve**: python cli.py --pr_url=<pr_url> improve
|
- **Improve**: python cli.py --pr_url=<pr_url> improve
|
||||||
- **Ask**: python cli.py --pr_url=<pr_url> ask "Write me a poem about this PR"
|
- **Ask**: python cli.py --pr_url=<pr_url> ask "Write me a poem about this PR"
|
||||||
- **Reflect**: python cli.py --pr_url=<pr_url> reflect
|
- **Reflect**: python cli.py --pr_url=<pr_url> reflect
|
||||||
- **Update Changelog**: python cli.py --pr_url=<pr_url> update_changelog
|
- **Update Changelog**: python cli.py --pr_url=<pr_url> update_changelog
|
||||||
```
|
|
||||||
|
|
||||||
"<pr_url>" is the url of the relevant PR (for example: https://github.com/Codium-ai/pr-agent/pull/50).
|
`<pr_url>` is the url of the relevant PR (for example: https://github.com/Codium-ai/pr-agent/pull/50).
|
||||||
|
|
||||||
Notes:
|
Notes:
|
||||||
|
|
||||||
(1) In addition to general configurations, each tool has its own configurations. For example, the 'review' tool will use parameters from the `[pr_reviewer]` section.
|
(1) In addition to general configurations, each tool has its own configurations. For example, the 'review' tool will use parameters from the `[pr_reviewer]` section in the [configuration file](pr_agent/settings/configuration.toml)
|
||||||
|
|
||||||
(2) You can print results locally, without publishing them, by setting in `configuration.toml`:
|
(2) You can print results locally, without publishing them, by setting in `configuration.toml`:
|
||||||
```
|
```
|
||||||
|
@ -91,7 +91,6 @@ CodiumAI `PR-Agent` is an open-source tool aiming to help developers review pull
|
|||||||
- [How it works](#how-it-works)
|
- [How it works](#how-it-works)
|
||||||
- [Why use PR-Agent](#why-use-pr-agent)
|
- [Why use PR-Agent](#why-use-pr-agent)
|
||||||
- [Roadmap](#roadmap)
|
- [Roadmap](#roadmap)
|
||||||
- [Similar projects](#similar-projects)
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@ -133,6 +132,7 @@ And the agent will respond with a review of your PR
|
|||||||
|
|
||||||
|
|
||||||
To set up your own PR-Agent, see the [Installation](#installation) section below.
|
To set up your own PR-Agent, see the [Installation](#installation) section below.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
Reference in New Issue
Block a user