Files
pr-agent/pr_agent/settings/configuration.toml

161 lines
5.1 KiB
TOML
Raw Normal View History

2023-07-06 00:21:08 +03:00
[config]
model="gpt-4" # "gpt-4-1106-preview"
2023-07-26 20:36:05 +03:00
fallback_models=["gpt-3.5-turbo-16k"]
2023-07-06 00:21:08 +03:00
git_provider="github"
2023-07-26 16:29:42 +03:00
publish_output=true
2023-09-14 08:23:34 +03:00
publish_output_progress=true
2023-09-28 20:12:36 +03:00
verbosity_level=0 # 0,1,2
use_extra_bad_extensions=false
use_repo_settings_file=true
ai_timeout=180
2023-08-09 12:17:54 +03:00
max_description_tokens = 500
max_commits_tokens = 500
max_model_tokens = 32000 # even if a model supports more tokens, quality may degrade. Hence, enable to limit the number of tokens.
2023-10-05 08:38:43 +03:00
patch_extra_lines = 3
2023-08-24 16:33:51 +03:00
secret_provider="google_cloud_storage"
cli_mode=false
2023-07-06 00:21:08 +03:00
2023-07-30 11:43:44 +03:00
[pr_reviewer] # /review #
2023-08-22 20:10:36 +03:00
require_focused_review=false
2023-07-19 11:00:28 +03:00
require_score_review=false
2023-07-06 00:21:08 +03:00
require_tests_review=true
require_security_review=true
2023-09-17 16:31:58 +03:00
require_estimate_effort_to_review=true
2023-08-22 20:10:36 +03:00
num_code_suggestions=4
inline_code_comments = false
2023-07-17 15:49:29 +03:00
ask_and_reflect=false
automatic_review=true
remove_previous_review_comment=false
2023-11-06 09:13:04 +02:00
extra_instructions = ""
# specific configurations for incremental review (/review -i)
require_all_thresholds_for_incremental_review=false
minimal_commits_for_incremental_review=0
minimal_minutes_for_incremental_review=0
2023-07-06 00:21:08 +03:00
2023-07-30 11:43:44 +03:00
[pr_description] # /describe #
2023-09-04 12:11:39 -04:00
publish_labels=true
2023-07-17 08:18:42 +03:00
publish_description_as_comment=false
add_original_user_description=false
keep_original_user_title=false
2023-10-19 10:45:42 +03:00
use_bullet_points=true
2023-09-14 08:20:36 +03:00
extra_instructions = ""
2023-11-06 11:58:26 +02:00
enable_pr_type=true
2023-10-23 16:29:33 +03:00
2023-09-14 08:20:36 +03:00
# markers
2023-09-04 12:11:39 -04:00
use_description_markers=false
include_generated_by_header=true
2023-07-17 08:18:42 +03:00
2023-10-24 22:28:57 +03:00
#custom_labels = ['Bug fix', 'Tests', 'Bug fix with tests', 'Refactoring', 'Enhancement', 'Documentation', 'Other']
2023-10-23 16:29:33 +03:00
2023-07-30 11:43:44 +03:00
[pr_questions] # /ask #
2023-07-08 08:52:11 +03:00
2023-07-30 11:43:44 +03:00
[pr_code_suggestions] # /improve #
num_code_suggestions=4
2023-07-30 11:43:44 +03:00
extra_instructions = ""
2023-08-22 09:42:59 +03:00
rank_suggestions = false
# params for '/improve --extended' mode
2023-08-21 09:07:21 +03:00
num_code_suggestions_per_chunk=8
2023-08-22 09:42:59 +03:00
rank_extended_suggestions = true
2023-08-21 09:07:21 +03:00
max_number_of_calls = 5
2023-08-22 09:42:59 +03:00
final_clip_factor = 0.9
2023-08-21 09:07:21 +03:00
2023-10-01 13:52:00 +03:00
[pr_add_docs] # /add_docs #
2023-09-27 16:48:17 +03:00
extra_instructions = ""
2023-10-01 19:51:15 +03:00
docs_style = "Sphinx Style" # "Google Style with Args, Returns, Attributes...etc", "Numpy Style", "Sphinx Style", "PEP257", "reStructuredText"
2023-09-27 16:48:17 +03:00
2023-07-30 11:43:44 +03:00
[pr_update_changelog] # /update_changelog #
2023-07-26 20:03:22 +03:00
push_changelog_changes=false
2023-07-30 11:43:44 +03:00
extra_instructions = ""
2023-07-26 09:21:31 +03:00
[pr_config] # /config #
[github]
# The type of deployment to create. Valid values are 'app' or 'user'.
deployment_type = "user"
ratelimit_retries = 5
2023-09-25 18:01:32 +03:00
[github_action]
2023-09-25 18:30:20 +03:00
# auto_review = true # set as env var in .github/workflows/pr-agent.yaml
2023-09-25 18:01:32 +03:00
# auto_describe = true # set as env var in .github/workflows/pr-agent.yaml
# auto_improve = true # set as env var in .github/workflows/pr-agent.yaml
[github_app]
# these toggles allows running the github app from custom deployments
bot_user = "github-actions[bot]"
override_deployment_type = true
# in some deployments it's possible to get duplicate requests if the handling is long,
# these settings are used to avoid handling duplicate requests.
duplicate_requests_cache = false
duplicate_requests_cache_ttl = 60 # in seconds
# settings for "pull_request" event
handle_pr_actions = ['opened', 'reopened', 'ready_for_review', 'review_requested']
pr_commands = [
"/describe --pr_description.add_original_user_description=true --pr_description.keep_original_user_title=true",
"/auto_review",
]
# settings for "pull_request" event with "synchronize" action - used to detect and handle push triggers for new commits
handle_push_trigger = false
push_trigger_ignore_bot_commits = true
push_trigger_ignore_merge_commits = true
push_trigger_wait_for_initial_review = true
push_trigger_pending_tasks_backlog = true
push_trigger_pending_tasks_ttl = 300
push_commands = [
"/describe --pr_description.add_original_user_description=true --pr_description.keep_original_user_title=true",
"""/auto_review -i \
--pr_reviewer.require_focused_review=false \
--pr_reviewer.require_score_review=false \
--pr_reviewer.require_tests_review=false \
--pr_reviewer.require_security_review=false \
--pr_reviewer.require_estimate_effort_to_review=false \
--pr_reviewer.num_code_suggestions=0 \
--pr_reviewer.inline_code_comments=false \
--pr_reviewer.remove_previous_review_comment=true \
--pr_reviewer.require_all_thresholds_for_incremental_review=false \
--pr_reviewer.minimal_commits_for_incremental_review=5 \
--pr_reviewer.minimal_minutes_for_incremental_review=30 \
--pr_reviewer.extra_instructions='' \
"""
]
2023-07-08 08:52:11 +03:00
[gitlab]
# URL to the gitlab service
2023-07-12 18:02:28 +03:00
url = "https://gitlab.com"
2023-07-08 08:52:11 +03:00
# Polling (either project id or namespace/project_name) syntax can be used
projects_to_monitor = ['org_name/repo_name']
2023-07-08 08:52:11 +03:00
# Polling trigger
2023-07-08 11:49:11 +03:00
magic_word = "AutoReview"
2023-07-08 10:26:41 +03:00
# Polling interval
polling_interval_seconds = 30
2023-07-24 12:49:57 +02:00
[local]
# LocalGitProvider settings - uncomment to use paths other than default
# description_path= "path/to/description.md"
2023-09-01 12:24:20 +01:00
# review_path= "path/to/review.md"
[gerrit]
# endpoint to the gerrit service
# url = "ssh://gerrit.example.com:29418"
# user for gerrit authentication
# user = "ai-reviewer"
# patch server where patches will be saved
# patch_server_endpoint = "http://127.0.0.1:5000/patch"
# token to authenticate in the patch server
# patch_server_token = ""
2023-09-09 17:35:45 +03:00
[litellm]
#use_client = false
2023-09-05 08:40:05 +03:00
[pr_similar_issue]
skip_comments = false
force_update_dataset = false
2023-09-06 09:43:23 +03:00
max_issues_to_scan = 500
2023-09-05 08:40:05 +03:00
[pinecone]
# fill and place in .secrets.toml
#api_key = ...
2023-10-23 21:34:12 -04:00
# environment = "gcp-starter"