mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-05 13:20:39 +08:00
Merge pull request #265 from szecsip/feature_azure_devops_docs
Add docs and dependencies for Azure DevOps provider
This commit is contained in:
@ -91,8 +91,33 @@ key = ...
|
|||||||
|
|
||||||
Also review the [AiHandler](pr_agent/algo/ai_handler.py) file for instruction how to set keys for other models.
|
Also review the [AiHandler](pr_agent/algo/ai_handler.py) file for instruction how to set keys for other models.
|
||||||
|
|
||||||
|
#### Changing a GIT provider
|
||||||
|
See [here](pr_agent/git_providers/__init__.py) for the list of GIT providers.
|
||||||
|
|
||||||
|
To use GitHub, for example, set:
|
||||||
|
```
|
||||||
|
[config]
|
||||||
|
git_provider="github"
|
||||||
|
```
|
||||||
|
|
||||||
#### Extra instructions
|
#### Extra instructions
|
||||||
|
##### General
|
||||||
All PR-Agent tools have a parameter called `extra_instructions`, that enables to add free-text extra instructions. Example usage:
|
All PR-Agent tools have a parameter called `extra_instructions`, that enables to add free-text extra instructions. Example usage:
|
||||||
```
|
```
|
||||||
/update_changelog --pr_update_changelog.extra_instructions="Make sure to update also the version ..."
|
/update_changelog --pr_update_changelog.extra_instructions="Make sure to update also the version ..."
|
||||||
```
|
```
|
||||||
|
|
||||||
|
##### Azure DevOps provider
|
||||||
|
To use Azure DevOps provider use the following settings in configuration.toml:
|
||||||
|
```
|
||||||
|
[config]
|
||||||
|
git_provider="azure"
|
||||||
|
use_repo_settings_file=false
|
||||||
|
```
|
||||||
|
|
||||||
|
And use the following settings (you have to replace the values) in .secrets.toml:
|
||||||
|
```
|
||||||
|
[azure_devops]
|
||||||
|
org = "https://dev.azure.com/YOUR_ORGANIZATION/"
|
||||||
|
pat = "YOUR_PAT_TOKEN"
|
||||||
|
```
|
42
README.md
42
README.md
@ -75,27 +75,27 @@ CodiumAI `PR-Agent` is an open-source tool aiming to help developers review pull
|
|||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
`PR-Agent` offers extensive pull request functionalities across various git providers:
|
`PR-Agent` offers extensive pull request functionalities across various git providers:
|
||||||
| | | GitHub | Gitlab | Bitbucket | CodeCommit |
|
| | | GitHub | Gitlab | Bitbucket | CodeCommit | Azure DevOps |
|
||||||
|-------|---------------------------------------------|:------:|:------:|:---------:|:----------:|
|
|-------|---------------------------------------------|:------:|:------:|:---------:|:----------:|:----------:|
|
||||||
| TOOLS | Review | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
|
| TOOLS | Review | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
|
||||||
| | ⮑ Inline review | :white_check_mark: | :white_check_mark: | | |
|
| | ⮑ Inline review | :white_check_mark: | :white_check_mark: | | | |
|
||||||
| | Ask | :white_check_mark: | :white_check_mark: | :white_check_mark: |
|
| | Ask | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark:
|
||||||
| | Auto-Description | :white_check_mark: | :white_check_mark: | | :white_check_mark: |
|
| | Auto-Description | :white_check_mark: | :white_check_mark: | | :white_check_mark: | :white_check_mark: |
|
||||||
| | Improve Code | :white_check_mark: | :white_check_mark: | | |
|
| | Improve Code | :white_check_mark: | :white_check_mark: | | | |
|
||||||
| | ⮑ Extended | :white_check_mark: | :white_check_mark: | | |
|
| | ⮑ Extended | :white_check_mark: | :white_check_mark: | | | |
|
||||||
| | Reflect and Review | :white_check_mark: | | | |
|
| | Reflect and Review | :white_check_mark: | | | | :white_check_mark: |
|
||||||
| | Update CHANGELOG.md | :white_check_mark: | | | |
|
| | Update CHANGELOG.md | :white_check_mark: | | | | |
|
||||||
| | | | | | |
|
| | | | | | | |
|
||||||
| USAGE | CLI | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
|
| USAGE | CLI | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
|
||||||
| | App / webhook | :white_check_mark: | :white_check_mark: | | |
|
| | App / webhook | :white_check_mark: | :white_check_mark: | | | |
|
||||||
| | Tagging bot | :white_check_mark: | | | |
|
| | Tagging bot | :white_check_mark: | | | | |
|
||||||
| | Actions | :white_check_mark: | | | |
|
| | Actions | :white_check_mark: | | | | |
|
||||||
| | | | | | |
|
| | | | | | | |
|
||||||
| CORE | PR compression | :white_check_mark: | :white_check_mark: | :white_check_mark: | |
|
| CORE | PR compression | :white_check_mark: | :white_check_mark: | :white_check_mark: | | :white_check_mark: |
|
||||||
| | Repo language prioritization | :white_check_mark: | :white_check_mark: | :white_check_mark: | |
|
| | Repo language prioritization | :white_check_mark: | :white_check_mark: | :white_check_mark: | | :white_check_mark: |
|
||||||
| | Adaptive and token-aware<br />file patch fitting | :white_check_mark: | :white_check_mark: | :white_check_mark: | |
|
| | Adaptive and token-aware<br />file patch fitting | :white_check_mark: | :white_check_mark: | :white_check_mark: | | :white_check_mark: |
|
||||||
| | Multiple models support | :white_check_mark: | :white_check_mark: | :white_check_mark: | |
|
| | Multiple models support | :white_check_mark: | :white_check_mark: | :white_check_mark: | | :white_check_mark: |
|
||||||
| | Incremental PR Review | :white_check_mark: | | | |
|
| | Incremental PR Review | :white_check_mark: | | | | |
|
||||||
|
|
||||||
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
|
||||||
|
@ -17,3 +17,5 @@ litellm~=0.1.504
|
|||||||
boto3~=1.28.25
|
boto3~=1.28.25
|
||||||
google-cloud-storage==2.10.0
|
google-cloud-storage==2.10.0
|
||||||
ujson==5.8.0
|
ujson==5.8.0
|
||||||
|
azure-devops==7.1.0b3
|
||||||
|
msrest==0.7.1
|
Reference in New Issue
Block a user